Changeset 418 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/src/nomdElements.cc
- Timestamp:
- Jun 21, 2013, 10:16:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/src/nomdElements.cc
r373 r418 4 4 #include "nomdElements.h" 5 5 6 typedElement nomdElements::fromString(std::string s)6 nomdElements::typedElement nomdElements::fromString(std::string s) 7 7 { 8 8 if( strstr(s.c_str(),"beam") ) return beam; … … 17 17 } 18 18 19 typedElement nomdElements::fromLabel(std::string s)19 nomdElements::typedElement nomdElements::fromGenericLabel(std::string s) 20 20 { 21 21 if( s == "beam" ) return beam; … … 30 30 } 31 31 32 std::string nomdElements::to Name(typedElement eType)32 std::string nomdElements::toExpandedName(nomdElements::typedElement eType) 33 33 { 34 34 switch(eType) { … … 45 45 } 46 46 47 std::string nomdElements::to Label(typedElement eType)47 std::string nomdElements::toGenericLabel(nomdElements::typedElement eType) 48 48 { 49 49 switch(eType) { … … 60 60 } 61 61 62 unsigned nomdElements::toNbParam( typedElement eType)62 unsigned nomdElements::toNbParam(nomdElements::typedElement eType) 63 63 { 64 64 switch(eType) { … … 79 79 { 80 80 e_= fromString(""); 81 e Name_ = toName(e_);82 eLabel_ = toLabel(e_);81 expandedName_ = toExpandedName(e_); 82 genericLabel_ = toGenericLabel(e_); 83 83 nbParam_ = toNbParam(e_); 84 84 } … … 87 87 { 88 88 e_= ne.e_; 89 e Name_ = ne.eName_;90 eLabel_ = ne.eLabel_;89 expandedName_ = ne.expandedName_; 90 genericLabel_ = ne.genericLabel_; 91 91 nbParam_ = ne.nbParam_; 92 92 } … … 95 95 { 96 96 e_= ne.e_; 97 e Name_ = ne.eName_;98 eLabel_ = ne.eLabel_;97 expandedName_ = ne.expandedName_; 98 genericLabel_ = ne.genericLabel_; 99 99 nbParam_ = ne.nbParam_; 100 100 } … … 104 104 { 105 105 e_= fromString(s); 106 e Name_ = toName(e_);107 eLabel_ = toLabel(e_);106 expandedName_ = toExpandedName(e_); 107 genericLabel_ = toGenericLabel(e_); 108 108 nbParam_ = toNbParam(e_); 109 109 } 110 110 111 nomdElements::nomdElements( typedElement& eType)111 nomdElements::nomdElements(nomdElements::typedElement& eType) 112 112 { 113 113 e_= eType; 114 e Name_ = toName(e_);115 eLabel_ = toLabel(e_);114 expandedName_ = toExpandedName(e_); 115 genericLabel_ = toGenericLabel(e_); 116 116 nbParam_ = toNbParam(e_); 117 117 } … … 121 121 } 122 122 123 std::string nomdElements::getLabelFromType( typedElement tp)123 std::string nomdElements::getLabelFromType(nomdElements::typedElement tp) 124 124 { 125 return to Label(tp);125 return toGenericLabel(tp); 126 126 } 127 127 128 typedElement nomdElements::getTypeFromLabel(std::string lb)128 nomdElements::typedElement nomdElements::getTypeFromLabel(std::string lb) 129 129 { 130 return from Label(lb);130 return fromGenericLabel(lb); 131 131 } 132 132 133 133 134 typedElement nomdElements::getElementType() const {134 nomdElements::typedElement nomdElements::getElementType() const { 135 135 return e_; 136 136 } 137 137 138 std::string nomdElements::getE lementName() const {139 return e Name_;138 std::string nomdElements::getExpandedName() const { 139 return expandedName_; 140 140 } 141 141 142 std::string nomdElements::get ElementLabel() const {143 return eLabel_;142 std::string nomdElements::getGenericLabel() const { 143 return genericLabel_; 144 144 } 145 145 … … 156 156 { 157 157 e_= ne.e_; 158 e Name_ = ne.eName_;159 eLabel_ = ne.eLabel_;158 expandedName_ = ne.expandedName_; 159 genericLabel_ = ne.genericLabel_; 160 160 nbParam_ = ne.nbParam_; 161 161 return *this;
Note: See TracChangeset
for help on using the changeset viewer.