Rev | Line | |
---|
[58] | 1 | #ifndef NOMDELOGICIEL_SEEN |
---|
| 2 | #define NOMDELOGICIEL_SEEN |
---|
| 3 | |
---|
| 4 | #include <string> |
---|
| 5 | |
---|
[160] | 6 | using namespace std; |
---|
[58] | 7 | |
---|
| 8 | class nomDeLogiciel |
---|
| 9 | { |
---|
| 10 | |
---|
[431] | 11 | public : |
---|
| 12 | |
---|
[107] | 13 | enum Logiciel |
---|
[58] | 14 | { |
---|
[442] | 15 | parmela, transport, generator, test, madx, usersprogram, unknownSoftware |
---|
[316] | 16 | }; |
---|
[431] | 17 | |
---|
[401] | 18 | |
---|
[431] | 19 | private : |
---|
[58] | 20 | |
---|
[107] | 21 | Logiciel program_; |
---|
| 22 | std::string progString_; |
---|
[431] | 23 | |
---|
[160] | 24 | static Logiciel fromString( std::string s); |
---|
| 25 | static std::string toString( Logiciel lg); |
---|
[418] | 26 | std::string getWtColor( nomDeLogiciel::Logiciel lg) const; |
---|
[107] | 27 | |
---|
| 28 | public : |
---|
[431] | 29 | |
---|
[160] | 30 | nomDeLogiciel(); |
---|
| 31 | nomDeLogiciel(const string& s); |
---|
| 32 | nomDeLogiciel(int val); |
---|
| 33 | static int getNumberOfSoftwares(); |
---|
[107] | 34 | |
---|
| 35 | inline std::string getString() const {return progString_;} |
---|
[431] | 36 | inline nomDeLogiciel::Logiciel getLogiciel() const {return program_;} |
---|
[418] | 37 | |
---|
[431] | 38 | /** Color of the background of the sofware |
---|
| 39 | Should be a valid Css name as FFEEDD |
---|
| 40 | */ |
---|
[418] | 41 | inline std::string getColor() const {return getWtColor(program_);} |
---|
[107] | 42 | // operators |
---|
[160] | 43 | nomDeLogiciel& operator= (const nomDeLogiciel& nl); |
---|
| 44 | bool operator== (const nomDeLogiciel& nl); |
---|
| 45 | bool operator!= (const nomDeLogiciel& nl); |
---|
[58] | 46 | }; |
---|
| 47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.