GET library
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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
GETCfgSetLogic
int GETCfgSetLogic(bool &data, DOMElement *node)
Definition:
GETCfgTools.cpp:98
GETCfgLogicId
static const string GETCfgLogicId[2]
String identifying logic values ("true", "false") in configuration files.
Definition:
GETCfgTools.hh:15
GETCfgSetEnum
int GETCfgSetEnum(u_short &data, const string &value, int nv, const string list[])
Definition:
GETCfgTools.cpp:187
GETCfgTools.icc
GETCfgSetData
int GETCfgSetData(u_short &data, DOMElement *node)
Definition:
GETCfgTools.cpp:23
GETCommon.hh
GETCfgLogicValue
static const bool GETCfgLogicValue[2]
Logic values ("true", "false") in configuration files.
Definition:
GETCfgTools.hh:16
src
Config
GETCfgTools.hh
Generated on Tue Dec 5 2017 19:37:31 for GET library by
1.8.5