Line | |
---|
1 | #ifndef __cmt_group_h__ |
---|
2 | #define __cmt_group_h__ |
---|
3 | |
---|
4 | #include "cmt_parser.h" |
---|
5 | #include "cmt_system.h" |
---|
6 | |
---|
7 | class Group |
---|
8 | { |
---|
9 | public: |
---|
10 | |
---|
11 | typedef cmt_vector<Group> GroupVector; |
---|
12 | |
---|
13 | static Group* find (const cmt_string& name); |
---|
14 | static Group* add (const cmt_string& name); |
---|
15 | |
---|
16 | static GroupVector& groups (); |
---|
17 | static void clear_all (); |
---|
18 | static void show_all (); |
---|
19 | |
---|
20 | public: |
---|
21 | |
---|
22 | Group (); |
---|
23 | Group (const cmt_string& name); |
---|
24 | |
---|
25 | const cmt_string& name () const; |
---|
26 | void set (const cmt_string& new_name); |
---|
27 | void clear (); |
---|
28 | |
---|
29 | Group& operator = (const Group& other); |
---|
30 | bool operator == (const cmt_string& name) const; |
---|
31 | bool operator != (const cmt_string& name) const; |
---|
32 | |
---|
33 | private: |
---|
34 | cmt_string m_name; |
---|
35 | cmt_string m_macro; |
---|
36 | }; |
---|
37 | |
---|
38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.