#include <Configurations.hpp>
|
| static const unsigned int & | NumberProperties () |
| |
| static void | InitializeFromCsv (const std::string &ConfigurationsFile, const bool &hasHeader=true, const char &separator=';') |
| | Read the configuration from csv file.
|
| |
| static void | InitializeFromIni (const std::string &ConfigurationsFile) |
| | Read the configuration from ini file.
|
| |
| static void | Initialize (const int &argc, char **argv, const std::string &format="id:type=value") |
| |
| static void | ExportToCsv (const std::string &filePath, const bool &append=false, const char &separator=';') |
| | Export the configuration to csv file.
|
| |
| static void | ExportToIni (const std::string &filePath, const bool &append=false, const std::string §ion="") |
| | Export the configuration to ini file.
|
| |
| static void | Reset () |
| | Reset the Configurations class.
|
| |
| static void | RemoveProperty (const std::string &id) |
| | Remove Single Property.
|
| |
| static bool | ExistsProperty (const std::string &id) |
| | Check if Property exists.
|
| |
| template<class T > |
| static bool | CheckPropertyType (const std::string &id) |
| |
| static void | ConvertPropertyFromString (const std::string &id, const std::string &type, const std::string &value, const std::string &description="") |
| | Convert Property by string Type and string value.
|
| |
| template<class T > |
| static void | AddProperty (const std::string &id, const T &value=T(), const std::string &description="") |
| | Add or Overwrite Property.
|
| |
| static void | AddProperty (const std::string &id, const char *value="", const std::string &description="") |
| | Add or Overwrite Property converting const char* to string.
|
| |
| template<class T > |
| static void | SetPropertyValue (const std::string &id, const T value) |
| | Set Property Value.
|
| |
| static void | SetPropertyValue (const std::string &id, const char *value) |
| | Set Property Value converting const char* to string.
|
| |
| template<class T > |
| static const T & | GetPropertyValue (const std::string &id) |
| | Get Property Value.
|
| |
◆ ~Configurations()
| Gedim::Configurations::~Configurations |
( |
| ) |
|
|
inline |
◆ AddProperty() [1/2]
| void Gedim::Configurations::AddProperty |
( |
const std::string & |
id, |
|
|
const char * |
value = "", |
|
|
const std::string & |
description = "" |
|
) |
| |
|
static |
Add or Overwrite Property converting const char* to string.
◆ AddProperty() [2/2]
Add or Overwrite Property.
◆ CheckPropertyType()
| static bool Gedim::Configurations::CheckPropertyType |
( |
const std::string & |
id | ) |
|
|
inlinestatic |
◆ ConvertPropertyFromString()
| void Gedim::Configurations::ConvertPropertyFromString |
( |
const std::string & |
id, |
|
|
const std::string & |
type, |
|
|
const std::string & |
value, |
|
|
const std::string & |
description = "" |
|
) |
| |
|
static |
Convert Property by string Type and string value.
◆ ExistsProperty()
| static bool Gedim::Configurations::ExistsProperty |
( |
const std::string & |
id | ) |
|
|
inlinestatic |
Check if Property exists.
◆ ExportToCsv()
Export the configuration to csv file.
◆ ExportToIni()
Export the configuration to ini file.
◆ GetPropertyValue()
◆ Initialize()
Read the configuration from command arguments
- Note
- format shall contain keyword id + char + type + char + value (example: id:type=value)
◆ InitializeFromCsv()
Read the configuration from csv file.
◆ InitializeFromIni()
| void Gedim::Configurations::InitializeFromIni |
( |
const std::string & |
ConfigurationsFile | ) |
|
|
static |
Read the configuration from ini file.
◆ NumberProperties()
◆ RemoveProperty()
| void Gedim::Configurations::RemoveProperty |
( |
const std::string & |
id | ) |
|
|
static |
◆ Reset()
| void Gedim::Configurations::Reset |
( |
| ) |
|
|
static |
◆ SetPropertyValue() [1/2]
| void Gedim::Configurations::SetPropertyValue |
( |
const std::string & |
id, |
|
|
const char * |
value |
|
) |
| |
|
static |
Set Property Value converting const char* to string.
◆ SetPropertyValue() [2/2]
The documentation for this class was generated from the following files: