source: CMT/v1r16p20040901/src/cmt_branch.h @ 1

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

Import all tags

File size: 885 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_branch_h__
8#define __cmt_branch_h__
9
10#include "cmt_parser.h"
11#include "cmt_system.h"
12
13class Branch
14{
15public:
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
25public:
26  Branch ();
27  ~Branch ();
28  const cmt_string& name () const;
29  void print (PrintMode mode) const;
30
31private:
32  cmt_string m_name;
33};
34
35#endif
Note: See TracBrowser for help on using the repository browser.