Parser used internally to parse configurations from file or text.
More...
#include <easylogging++.h>
|
static bool | parseFromFile (const std::string &configurationFile, Configurations *sender, Configurations *base=nullptr) |
| Parses configuration from file. More...
|
|
static bool | parseFromText (const std::string &configurationsString, Configurations *sender, Configurations *base=nullptr) |
| Parse configurations from configuration string. More...
|
|
static bool | parseFromFile (const std::string &configurationFile, Configurations *sender, Configurations *base=nullptr) |
| Parses configuration from file. More...
|
|
static bool | parseFromText (const std::string &configurationsString, Configurations *sender, Configurations *base=nullptr) |
| Parse configurations from configuration string. More...
|
|
static bool | parseFromFile (const std::string &configurationFile, Configurations *sender, Configurations *base=nullptr) |
| Parses configuration from file. More...
|
|
static bool | parseFromText (const std::string &configurationsString, Configurations *sender, Configurations *base=nullptr) |
| Parse configurations from configuration string. More...
|
|
Parser used internally to parse configurations from file or text.
This class makes use of base::utils::Str. You should not need this unless you are working on some tool for Easylogging++
Parses configuration from file.
- Parameters
-
configurationFile | Full path to configuration file |
sender | Sender configurations pointer. Usually 'this' is used from calling class |
base | Configurations to base new configuration repository off. This value is used when you want to use existing Configurations to base all the values and then set rest of configuration via configuration file. |
- Returns
- True if successfully parsed, false otherwise. You may define '_STOP_ON_FIRSTELPP_ASSERTION' to make sure you do not proceed without successful parse.
Parses configuration from file.
- Parameters
-
configurationFile | Full path to configuration file |
sender | Sender configurations pointer. Usually 'this' is used from calling class |
base | Configurations to base new configuration repository off. This value is used when you want to use existing Configurations to base all the values and then set rest of configuration via configuration file. |
- Returns
- True if successfully parsed, false otherwise. You may define '_STOP_ON_FIRSTELPP_ASSERTION' to make sure you do not proceed without successful parse.
Parses configuration from file.
- Parameters
-
configurationFile | Full path to configuration file |
sender | Sender configurations pointer. Usually 'this' is used from calling class |
base | Configurations to base new configuration repository off. This value is used when you want to use existing Configurations to base all the values and then set rest of configuration via configuration file. |
- Returns
- True if successfully parsed, false otherwise. You may define '_STOP_ON_FIRSTELPP_ASSERTION' to make sure you do not proceed without successful parse.
Parse configurations from configuration string.
This configuration string has same syntax as configuration file contents. Make sure all the necessary new line characters are provided. You may define '_STOP_ON_FIRSTELPP_ASSERTION' to make sure you do not proceed without successful parse (This is recommended)
- Parameters
-
configurationsString | |
sender | Sender configurations pointer. Usually 'this' is used from calling class |
base | Configurations to base new configuration repository off. This value is used when you want to use existing Configurations to base all the values and then set rest of configuration via configuration text. |
- Returns
- True if successfully parsed, false otherwise.
Parse configurations from configuration string.
This configuration string has same syntax as configuration file contents. Make sure all the necessary new line characters are provided. You may define '_STOP_ON_FIRSTELPP_ASSERTION' to make sure you do not proceed without successful parse (This is recommended)
- Parameters
-
configurationsString | |
sender | Sender configurations pointer. Usually 'this' is used from calling class |
base | Configurations to base new configuration repository off. This value is used when you want to use existing Configurations to base all the values and then set rest of configuration via configuration text. |
- Returns
- True if successfully parsed, false otherwise.
Parse configurations from configuration string.
This configuration string has same syntax as configuration file contents. Make sure all the necessary new line characters are provided. You may define '_STOP_ON_FIRSTELPP_ASSERTION' to make sure you do not proceed without successful parse (This is recommended)
- Parameters
-
configurationsString | |
sender | Sender configurations pointer. Usually 'this' is used from calling class |
base | Configurations to base new configuration repository off. This value is used when you want to use existing Configurations to base all the values and then set rest of configuration via configuration text. |
- Returns
- True if successfully parsed, false otherwise.
The documentation for this class was generated from the following files: