source: CMT/v1r14p20031120/src/cmt_group.h @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

File size: 742 bytes
Line 
1#ifndef __cmt_group_h__
2#define __cmt_group_h__
3
4#include "cmt_parser.h"
5#include "cmt_system.h"
6
7class Group
8{
9public:
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
20public:
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
33private:
34  cmt_string m_name;
35  cmt_string m_macro;
36};
37
38#endif
Note: See TracBrowser for help on using the repository browser.