GET library
GETCfgTools.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GETCfgTools.hh
3  *
4  * Include file for GET configuration files tools.
5  */
6 //======================================================================
7 
8 #ifndef GET_CFG_TOOLS_HH
9 #define GET_CFG_TOOLS_HH
10 
11 //----------------------------------------------------------------------
12 #include "GETCommon.hh"
13 
14 // to read values in config files
15 static const string GETCfgLogicId[2] = { "false", "true" }; ///< String identifying logic values ("true", "false") in configuration files
16 static const bool GETCfgLogicValue[2] = { false, true }; ///< Logic values ("true", "false") in configuration files
17 
18 //----------------------------------------------------------------------
19 
20 // set data from dom nodes
21 int GETCfgSetData ( u_short & data, DOMElement * node );
22 int GETCfgSetData ( double & data, DOMElement * node );
23 int GETCfgSetLogic ( bool & data, DOMElement * node );
24 
25 // set data from strings extracted from dom tree
26 int GETCfgSetData ( u_short & data, const string & value, const string & range );
27 int GETCfgSetLogic ( bool & data, const string & value );
28 int GETCfgSetEnum ( u_short & data, const string & value, int nv, const string list[] );
29 
30 //----------------------------------------------------------------------
31 // Inline functions
32 #include "icc/GETCfgTools.icc"
33 
34 
35 //======================================================================
36 #endif
int GETCfgSetLogic(bool &data, DOMElement *node)
Definition: GETCfgTools.cpp:98
static const string GETCfgLogicId[2]
String identifying logic values (&quot;true&quot;, &quot;false&quot;) in configuration files.
Definition: GETCfgTools.hh:15
int GETCfgSetEnum(u_short &data, const string &value, int nv, const string list[])
Definition: GETCfgTools.cpp:187
int GETCfgSetData(u_short &data, DOMElement *node)
Definition: GETCfgTools.cpp:23
static const bool GETCfgLogicValue[2]
Logic values (&quot;true&quot;, &quot;false&quot;) in configuration files.
Definition: GETCfgTools.hh:16