Line | |
---|
1 | #ifndef __cmt_branch_h__ |
---|
2 | #define __cmt_branch_h__ |
---|
3 | |
---|
4 | #include "cmt_parser.h" |
---|
5 | #include "cmt_system.h" |
---|
6 | |
---|
7 | class Branch |
---|
8 | { |
---|
9 | public: |
---|
10 | typedef cmt_vector<Branch> BranchVector; |
---|
11 | |
---|
12 | static void action (const CmtSystem::cmt_string_vector& words); |
---|
13 | static Branch* find (const cmt_string& name); |
---|
14 | static void add (const cmt_string& name); |
---|
15 | static void print_all (PrintMode mode); |
---|
16 | static void clear_all (); |
---|
17 | static BranchVector& branches (); |
---|
18 | |
---|
19 | public: |
---|
20 | Branch (); |
---|
21 | ~Branch (); |
---|
22 | const cmt_string& name () const; |
---|
23 | void print (PrintMode mode) const; |
---|
24 | |
---|
25 | private: |
---|
26 | cmt_string m_name; |
---|
27 | }; |
---|
28 | |
---|
29 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.