GET library
GETCfgSetup.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GETCfgSetup.hh
3  *
4  * Include file for the GETCfgSetup class.
5  */
6 //======================================================================
7 
8 #ifndef GET_CFG_SETUP_HH
9 #define GET_CFG_SETUP_HH
10 
11 //----------------------------------------------------------------------
12 #include "GETCommon.hh"
13 #include "GETCfgTools.hh"
14 #include "GETCfgCoBo.hh"
15 
16 class GETSystem;
17 
18 //======================================================================
19 /*! \class GETCfgSetup
20  *
21  * Setup configuration information:
22  * - for Reduced CoBo system
23  * - for full GET system (not yet ready)
24  *
25  */
27 {
28  //------------------------------------------------------------
29  /*! \object_doc */
31  //------------------------------------------------------------
32 
33  protected:
34  GETSystem * parent; ///< GET object the configuration is related to
35  GETCfgCoBo ** cfg_cobo; ///< Array of pointers to CoBo configurations
36  u_int cfg_cobo_num; ///< Number of CoBo modules configurations
37 
38  public:
39  //----------------------------------------------------------
40  /** @name Constructors, affectation, destructor */
41  //@{
42  GETCfgSetup ( GETSystem * p = NULL );
43  virtual ~GETCfgSetup ( );
44  //@}
45 
46  //----------------------------------------------------------
47  /** @name GET architecture related functions */
48  //@{
49  virtual string GetFullId ( ) const;
50 
51  GETSystem * GetParentSystem ( ) const; // inline
52  GETCfgCoBo * GetCoBoConfig ( u_int i ) const; // inline
53  //@}
54 
55  //----------------------------------------------------------
56  /** @name XML configuration functions */
57  //@{
58  virtual int ReadXMLConfig ( const string & fname );
59  virtual int GetXMLConfig ( DOMNode * node );
60  //@}
61 
62  //----------------------------------------------------------
63  /** @name ROOT related functions */
64  //@{
65  public:
66 
67  /*! for use within ROOT.*/
69  //@}
70 };
71 
72 
73 //----------------------------------------------------------------------
74 // Inline functions
75 #include "icc/GETCfgSetup.icc"
76 
77 
78 //======================================================================
79 #endif
ClassDef(GETCfgSetup, 0)
GETSystem * parent
GET object the configuration is related to.
Definition: GETCfgSetup.hh:34
u_int cfg_cobo_num
Number of CoBo modules configurations.
Definition: GETCfgSetup.hh:36
GObject(GETCfgSetup)
virtual int GetXMLConfig(DOMNode *node)
Definition: GETCfgSetup.cpp:134
virtual ~GETCfgSetup()
Definition: GETCfgSetup.cpp:53
Definition: GETCfgSetup.hh:26
Definition: GETCfgCoBo.hh:26
GETCfgSetup(GETSystem *p=NULL)
Definition: GETCfgSetup.cpp:18
virtual string GetFullId() const
Definition: GETCfgSetup.cpp:78
virtual int ReadXMLConfig(const string &fname)
Definition: GETCfgSetup.cpp:89
GETCfgCoBo * GetCoBoConfig(u_int i) const
Definition: GETCfgSetup.icc:20
GETSystem * GetParentSystem() const
Definition: GETCfgSetup.icc:13
Definition: GETSystem.hh:126
GETCfgCoBo ** cfg_cobo
Array of pointers to CoBo configurations.
Definition: GETCfgSetup.hh:35