Changeset 431 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/include/nomDeLogiciel.h
- Timestamp:
- Nov 15, 2013, 3:30:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/include/nomDeLogiciel.h
r418 r431 6 6 using namespace std; 7 7 8 9 10 8 class nomDeLogiciel 11 9 { 12 10 13 public: 14 15 11 public : 12 16 13 enum Logiciel 17 14 { 18 parmela, transport, generator, useraction, test, unknownSoftware15 parmela, transport, generator, useraction, test, madx, unknownSoftware 19 16 }; 20 17 21 18 22 private :19 private : 23 20 24 21 Logiciel program_; 25 22 std::string progString_; 26 // int value_; 27 23 28 24 static Logiciel fromString( std::string s); 29 25 static std::string toString( Logiciel lg); … … 31 27 32 28 public : 33 // constructors 34 29 35 30 nomDeLogiciel(); 36 31 nomDeLogiciel(const string& s); … … 39 34 40 35 inline std::string getString() const {return progString_;} 36 inline nomDeLogiciel::Logiciel getLogiciel() const {return program_;} 41 37 42 inline nomDeLogiciel::Logiciel getLogiciel() const { return program_; } 43 44 /** Color of the background of the sofware 45 Should be a valid Css name as FFEEDD 46 */ 38 /** Color of the background of the sofware 39 Should be a valid Css name as FFEEDD 40 */ 47 41 inline std::string getColor() const {return getWtColor(program_);} 48 42 // operators 49 50 43 nomDeLogiciel& operator= (const nomDeLogiciel& nl); 51 44 bool operator== (const nomDeLogiciel& nl); 52 45 bool operator!= (const nomDeLogiciel& nl); 53 54 46 }; 55 56 57 58 59 47 #endif
Note: See TracChangeset
for help on using the changeset viewer.