Last change
on this file since 401 was
401,
checked in by garnier, 12 years ago
|
merge avec la branche 12_03_12-managerComboBox
|
File size:
883 bytes
|
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, 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 | // static Logiciel fromValue( int v); |
---|
31 | // static int toValue( Logiciel lg); |
---|
32 | |
---|
33 | public : |
---|
34 | // constructors |
---|
35 | |
---|
36 | nomDeLogiciel(); |
---|
37 | nomDeLogiciel(const string& s); |
---|
38 | nomDeLogiciel(int val); |
---|
39 | static int getNumberOfSoftwares(); |
---|
40 | |
---|
41 | inline std::string getString() const {return progString_;} |
---|
42 | |
---|
43 | // operators |
---|
44 | |
---|
45 | nomDeLogiciel& operator= (const nomDeLogiciel& nl); |
---|
46 | bool operator== (const nomDeLogiciel& nl); |
---|
47 | bool operator!= (const nomDeLogiciel& nl); |
---|
48 | |
---|
49 | }; |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.