Last change
on this file since 634 was
11,
checked in by arnault, 20 years ago
|
Changing eol-style property
|
-
Property svn:eol-style set to
native
|
File size:
973 bytes
|
Line | |
---|
1 | //----------------------------------------------------------- |
---|
2 | // Copyright Christian Arnault LAL-Orsay CNRS |
---|
3 | // arnault@lal.in2p3.fr |
---|
4 | // See the complete license in cmt_license.txt "http://www.cecill.info". |
---|
5 | //----------------------------------------------------------- |
---|
6 | |
---|
7 | #ifndef __cmt_group_h__ |
---|
8 | #define __cmt_group_h__ |
---|
9 | |
---|
10 | #include "cmt_parser.h" |
---|
11 | #include "cmt_system.h" |
---|
12 | |
---|
13 | class Group |
---|
14 | { |
---|
15 | public: |
---|
16 | |
---|
17 | typedef cmt_vector<Group> GroupVector; |
---|
18 | |
---|
19 | static Group* find (const cmt_string& name); |
---|
20 | static Group* add (const cmt_string& name); |
---|
21 | |
---|
22 | static GroupVector& groups (); |
---|
23 | static void clear_all (); |
---|
24 | static void show_all (); |
---|
25 | |
---|
26 | public: |
---|
27 | |
---|
28 | Group (); |
---|
29 | Group (const cmt_string& name); |
---|
30 | |
---|
31 | const cmt_string& name () const; |
---|
32 | void set (const cmt_string& new_name); |
---|
33 | void clear (); |
---|
34 | |
---|
35 | Group& operator = (const Group& other); |
---|
36 | bool operator == (const cmt_string& name) const; |
---|
37 | bool operator != (const cmt_string& name) const; |
---|
38 | |
---|
39 | private: |
---|
40 | cmt_string m_name; |
---|
41 | cmt_string m_macro; |
---|
42 | }; |
---|
43 | |
---|
44 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.