GET library
GETCfgSetup Class Reference

#include <GETCfgSetup.hh>

Public Member Functions

Constructors, affectation, destructor
 GETCfgSetup (GETSystem *p=NULL)
 
virtual ~GETCfgSetup ()
 
GET architecture related functions
virtual string GetFullId () const
 
GETSystemGetParentSystem () const
 
GETCfgCoBoGetCoBoConfig (u_int i) const
 
XML configuration functions
virtual int ReadXMLConfig (const string &fname)
 
virtual int GetXMLConfig (DOMNode *node)
 
ROOT related functions
 ClassDef (GETCfgSetup, 0)
 

Protected Attributes

GETCfgCoBo ** cfg_cobo
 Array of pointers to CoBo configurations.
 
u_int cfg_cobo_num
 Number of CoBo modules configurations.
 
GETSystemparent
 GET object the configuration is related to.
 

Private Member Functions

 GObject (GETCfgSetup)
 

Detailed Description

Setup configuration information:

  • for Reduced CoBo system
  • for full GET system (not yet ready)

Constructor & Destructor Documentation

GETCfgSetup::GETCfgSetup ( GETSystem p = NULL)

Constructor.

Parameters
pparent GET system

References cfg_cobo, cfg_cobo_num, GETSystem::GetChild(), GETSystem::GetCoBoNumber(), and parent.

GETCfgSetup::~GETCfgSetup ( )
virtual

Destructor. The configuration from children objects are deleted only if they are not connected to a GET object.

References cfg_cobo, cfg_cobo_num, GETSystem::config, and parent.

Member Function Documentation

GETCfgSetup::ClassDef ( GETCfgSetup  ,
 
)

for use within ROOT.

GETCfgCoBo * GETCfgSetup::GetCoBoConfig ( u_int  i) const
inline

Return the configuration of a GET children object. The range of the child number is not checked.

Parameters
ichild number

References cfg_cobo.

string GETCfgSetup::GetFullId ( ) const
virtual

Return the identifier of the parent GET object, if defined.

References GETObject::GetFullId(), and parent.

GETSystem * GETCfgSetup::GetParentSystem ( ) const
inline

Return the GET system the configuration is related to.

References parent.

int GETCfgSetup::GetXMLConfig ( DOMNode *  node)
virtual

Read the full setup configuration from DOM tree node. The function returns an error value.

Parameters
nodeconfiguration DOM tree node

References cfg_cobo, cfg_cobo_num, and GETCfgCoBo::GetXMLConfig().

Referenced by ReadXMLConfig().

GETCfgSetup::GObject ( GETCfgSetup  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
int GETCfgSetup::ReadXMLConfig ( const string &  fname)
virtual

Read the setup configuration file.

Parameters
fnamefile name

References GetXMLConfig().

Referenced by GETSystem::ReadXMLConfig().


The documentation for this class was generated from the following files: