Parser used internally to parse configurations from file or text.
More...
#include <easylogging++.h>
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++
Definition at line 1832 of file easylogging++.h.
bool el::Configurations::Parser::isComment |
( |
const std::string & |
line | ) |
|
|
staticprivate |
bool el::Configurations::Parser::isConfig |
( |
const std::string & |
line | ) |
|
|
inlinestaticprivate |
bool el::Configurations::Parser::isLevel |
( |
const std::string & |
line | ) |
|
|
staticprivate |
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.
Definition at line 415 of file easylogging++.cc.
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 | the configuration in plain text format |
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.
Definition at line 433 of file easylogging++.cc.
The documentation for this class was generated from the following files: