Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

cmt_branch.h

Go to the documentation of this file.
00001 //-----------------------------------------------------------
00002 // Copyright Christian Arnault LAL-Orsay CNRS
00003 // arnault@lal.in2p3.fr
00004 // See the complete license in cmt_license.txt "http://www.cecill.info". 
00005 //-----------------------------------------------------------
00006 
00007 #ifndef __cmt_branch_h__
00008 #define __cmt_branch_h__
00009 
00010 #include "cmt_parser.h"
00011 #include "cmt_system.h"
00012 
00013 class Branch
00014 {
00015 public:
00016   typedef cmt_vector<Branch> BranchVector;
00017 
00018   static void action (const CmtSystem::cmt_string_vector& words);
00019   static Branch* find (const cmt_string& name);
00020   static void add (const cmt_string& name);
00021   static void print_all (PrintMode mode);
00022   static void clear_all ();
00023   static BranchVector& branches ();
00024 
00025 public:
00026   Branch ();
00027   ~Branch ();
00028   const cmt_string& name () const;
00029   void print (PrintMode mode) const;
00030 
00031 private:
00032   cmt_string m_name;
00033 };
00034 
00035 #endif

Generated on Mon May 2 10:25:04 2005 for CMT by doxygen 1.3.5