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