Ignore:
Timestamp:
Jun 21, 2013, 10:16:56 AM (11 years ago)
Author:
lemeur
Message:

definition des compatibilites des elements dans les software

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/controler/include/nomdElements.h

    r342 r418  
    44using namespace std;
    55
    6 enum typedElement {beam, RFgun, drift, cell, bend, soleno, fit, snapshot, inconnu};
     6// enum typedElement {beam, RFgun, drift, cell, bend, soleno, fit, snapshot, inconnu};
    77
    88
     
    1010class nomdElements
    1111{
     12
     13 public :
     14
     15enum typedElement {beam, RFgun, drift, cell, bend, soleno, fit, snapshot, inconnu};
     16
     17 private :
     18
    1219  typedElement e_;  // type entier (enum)
    13   std::string eName_;  // nom de l'element
    14   std::string eLabel_; // label affiche sous l'icone
     20  std::string expandedName_;  // nom generique de l'element
     21  std::string genericLabel_;
    1522  unsigned nbParam_;   // nombre de parametres a saisir
    1623
    1724  static   typedElement fromString(std::string s);
    18   static   typedElement fromLabel(std::string s);
    19   static   std::string toName(typedElement eType);
    20   static   std::string toLabel(typedElement eType);
     25  static   typedElement fromGenericLabel(std::string s);
     26  static   std::string toExpandedName(typedElement eType);
     27  static   std::string toGenericLabel(typedElement eType);
    2128  static   unsigned toNbParam(typedElement eType);
    2229
     
    3542
    3643  typedElement getElementType() const;
    37   std::string getElementName() const;
    38   std::string getElementLabel() const;
     44  std::string getExpandedName() const;
     45  std::string getGenericLabel() const;
    3946  unsigned getElementNbParameters() const;
    4047
Note: See TracChangeset for help on using the changeset viewer.