1 |
|
|
/*************************************** |
2 |
|
|
Auteur : Pierre Aubert |
3 |
|
|
Mail : pierre.aubert@lapp.in2p3.fr |
4 |
|
|
Licence : CeCILL-C |
5 |
|
|
****************************************/ |
6 |
|
|
|
7 |
|
|
|
8 |
|
|
#include "ConfigBase.h" |
9 |
|
|
|
10 |
|
|
///Default constructor of ConfigBase |
11 |
|
|
/** @param name : name of the variable to be set |
12 |
|
|
* @param documentation : documentation of the variable |
13 |
|
|
*/ |
14 |
|
4 |
ConfigBase::ConfigBase(const std::string & name, const std::string & documentation) |
15 |
✓ |
4 |
:p_name(name), p_documentation(documentation), p_isParsed(false) |
16 |
|
|
{ |
17 |
|
|
|
18 |
|
4 |
} |
19 |
|
|
|
20 |
|
|
///Destructor of ConfigBase |
21 |
|
8 |
ConfigBase::~ConfigBase(){ |
22 |
|
|
|
23 |
|
|
} |
24 |
|
|
|
25 |
|
|
///Set the name of the ConfigBase |
26 |
|
|
/** @param name : name of the ConfigBase |
27 |
|
|
*/ |
28 |
|
1 |
void ConfigBase::setName(const std::string & name){p_name = name;} |
29 |
|
|
|
30 |
|
|
///Set the documentation of the ConfigBase |
31 |
|
|
/** @param documentation : documentation of the ConfigBase |
32 |
|
|
*/ |
33 |
|
1 |
void ConfigBase::setDocumentation(const std::string & documentation){p_documentation = documentation;} |
34 |
|
|
|
35 |
|
|
///Set if the parameter has been already parsed or not |
36 |
|
|
/** @param isParsed : true if the parameter has been already parsed or not |
37 |
|
|
*/ |
38 |
|
10 |
void ConfigBase::setIsParsed(bool isParsed){p_isParsed = isParsed;} |
39 |
|
|
|
40 |
|
|
///Get the name of the ConfigBase |
41 |
|
|
/** @return name of the ConfigBase |
42 |
|
|
*/ |
43 |
|
1 |
const std::string & ConfigBase::getName() const{return p_name;} |
44 |
|
|
|
45 |
|
|
///Get the documentation of the ConfigBase |
46 |
|
|
/** @return documentation of the ConfigBase |
47 |
|
|
*/ |
48 |
|
1 |
const std::string & ConfigBase::getDocumentation() const{return p_documentation;} |
49 |
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|