Changeset 418 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/include/nomdElements.h
- Timestamp:
- Jun 21, 2013, 10:16:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/include/nomdElements.h
r342 r418 4 4 using namespace std; 5 5 6 enum typedElement {beam, RFgun, drift, cell, bend, soleno, fit, snapshot, inconnu};6 // enum typedElement {beam, RFgun, drift, cell, bend, soleno, fit, snapshot, inconnu}; 7 7 8 8 … … 10 10 class nomdElements 11 11 { 12 13 public : 14 15 enum typedElement {beam, RFgun, drift, cell, bend, soleno, fit, snapshot, inconnu}; 16 17 private : 18 12 19 typedElement e_; // type entier (enum) 13 std::string e Name_; // nomde l'element14 std::string eLabel_; // label affiche sous l'icone20 std::string expandedName_; // nom generique de l'element 21 std::string genericLabel_; 15 22 unsigned nbParam_; // nombre de parametres a saisir 16 23 17 24 static typedElement fromString(std::string s); 18 static typedElement from Label(std::string s);19 static std::string to Name(typedElement eType);20 static std::string to Label(typedElement eType);25 static typedElement fromGenericLabel(std::string s); 26 static std::string toExpandedName(typedElement eType); 27 static std::string toGenericLabel(typedElement eType); 21 28 static unsigned toNbParam(typedElement eType); 22 29 … … 35 42 36 43 typedElement getElementType() const; 37 std::string getE lementName() const;38 std::string get ElementLabel() const;44 std::string getExpandedName() const; 45 std::string getGenericLabel() const; 39 46 unsigned getElementNbParameters() const; 40 47
Note: See TracChangeset
for help on using the changeset viewer.