Go to the documentation of this file.
44 #ifndef CONFDATAREADER_HPP
45 #define CONFDATAREADER_HPP
199 #pragma clang diagnostic push
200 #pragma clang diagnostic ignored "-Woverloaded-virtual"
201 virtual void open(
const char*
fn);
208 #pragma clang diagnostic pop
216 virtual std::string
getValue( std::string variable,
217 std::string section =
"DEFAULT",
218 std::string defaultVal =
"");
228 std::string section =
"DEFAULT",
229 double defaultVal = 0.0)
243 std::string section =
"DEFAULT",
258 std::string section =
"DEFAULT",
259 bool defaultVal =
false );
275 std::string section =
"DEFAULT",
276 std::string defaultVal =
"" );
292 std::string section =
"DEFAULT",
293 double defaultVal = 0.0 )
313 std::string section =
"DEFAULT",
336 std::string section =
"DEFAULT",
337 bool defaultVal =
false);
350 std::string section =
"DEFAULT" )
361 std::string section =
"DEFAULT" );
371 std::string section =
"DEFAULT" );
410 {
confData.clear();
return (*
this); };
429 virtual bool ifExist( std::string variable,
430 std::string section =
"DEFAULT" );
440 std::string section =
"DEFAULT" )
441 {
return getValue(variable, section); };
477 typedef std::map<std::string, variableMap>
confMap;
493 virtual bool checkName(std::string name);
507 #endif // CONFDATAREADER_HPP
long asInt(const std::string &s)
virtual bool checkName(std::string name)
virtual double getValueAsDouble(std::string variable, std::string section="DEFAULT", double defaultVal=0.0)
virtual int getValueAsInt(std::string variable, std::string section="DEFAULT", int defaultVal=0)
std::string value
Value of variable.
page HOWTO subpage DoxygenGuide Documenting Your Code page DoxygenGuide Documenting Your Code todo Flesh out this document section doctips Tips for Documenting When defining make sure that the prototype is identical between the cpp and hpp file
ConfDataReader & setFallback2Default(bool fallback)
virtual std::string getVariableDescription(std::string variable, std::string section="DEFAULT")
virtual bool fetchListValueAsBoolean(std::string variableList, std::string section="DEFAULT", bool defaultVal=false)
virtual void open(const std::string &fn)
Method to open AND load configuration data file.
std::string valueComment
Value comment.
ConfDataReader & setIssueException(bool issueEx)
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
virtual int fetchListValueAsInt(std::string variableList, std::string section="DEFAULT", int defaultVal=0)
std::map< std::string, variableData > variableMap
Define 'variableMap' type.
virtual bool getIssueException(void) const
std::map< std::string, variableMap > confMap
Define 'confMap' type.
A structure used to store variable's data.
virtual bool getValueAsBoolean(std::string variable, std::string section="DEFAULT", bool defaultVal=false)
virtual std::string getValue(std::string variable, std::string section="DEFAULT", std::string defaultVal="")
int numWords(const std::string &s, const char delimiter=' ')
confMap::const_iterator itCurrentSection
Iterator pointing to the current section.
std::string varComment
Variable comment.
double asDouble(const std::string &s)
virtual void loadData(void)
virtual std::string getValueDescription(std::string variable, std::string section="DEFAULT")
virtual std::string fetchListValue(std::string variableList, std::string section="DEFAULT", std::string defaultVal="")
virtual void open(const char *fn)
Method to open AND load configuration data file.
virtual void resetSection(void)
virtual bool ifExist(std::string variable, std::string section="DEFAULT")
virtual int getNumItem(std::string variableList, std::string section="DEFAULT")
virtual ~ConfDataReader()
Destructor.
ConfDataReader(const std::string &file)
virtual double fetchListValueAsDouble(std::string variableList, std::string section="DEFAULT", double defaultVal=0.0)
virtual std::string getEachSection(void)
Method to get the name of each section in order.
virtual std::string operator()(std::string variable, std::string section="DEFAULT")
confMap confData
Map holding the configuration information.
ConfDataReader()
Default constructor.
virtual bool getFallback2Default(void) const
virtual ConfDataReader & clear(void)
Method to clear the stored variables.
ConfDataReader(const char *file)
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:38