Last change
on this file since 418 was
418,
checked in by lemeur, 11 years ago
|
definition des compatibilites des elements dans les software
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifndef NOMDELOGICIEL_SEEN |
---|
2 | #define NOMDELOGICIEL_SEEN |
---|
3 | |
---|
4 | #include <string> |
---|
5 | |
---|
6 | using namespace std; |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | class nomDeLogiciel |
---|
11 | { |
---|
12 | |
---|
13 | public: |
---|
14 | |
---|
15 | |
---|
16 | enum Logiciel |
---|
17 | { |
---|
18 | parmela, transport, generator, useraction, test, unknownSoftware |
---|
19 | }; |
---|
20 | |
---|
21 | |
---|
22 | private: |
---|
23 | |
---|
24 | Logiciel program_; |
---|
25 | std::string progString_; |
---|
26 | // int value_; |
---|
27 | |
---|
28 | static Logiciel fromString( std::string s); |
---|
29 | static std::string toString( Logiciel lg); |
---|
30 | std::string getWtColor( nomDeLogiciel::Logiciel lg) const; |
---|
31 | |
---|
32 | public : |
---|
33 | // constructors |
---|
34 | |
---|
35 | nomDeLogiciel(); |
---|
36 | nomDeLogiciel(const string& s); |
---|
37 | nomDeLogiciel(int val); |
---|
38 | static int getNumberOfSoftwares(); |
---|
39 | |
---|
40 | inline std::string getString() const {return progString_;} |
---|
41 | |
---|
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 | */ |
---|
47 | inline std::string getColor() const {return getWtColor(program_);} |
---|
48 | // operators |
---|
49 | |
---|
50 | nomDeLogiciel& operator= (const nomDeLogiciel& nl); |
---|
51 | bool operator== (const nomDeLogiciel& nl); |
---|
52 | bool operator!= (const nomDeLogiciel& nl); |
---|
53 | |
---|
54 | }; |
---|
55 | |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.