Represents single configuration that has representing level, configuration type and a string based value. More...
#include <easylogging++.h>
Classes | |
class | Predicate |
Used to find configuration from configuration (pointers) repository. Avoid using it. More... | |
Public Member Functions | |
Configuration (const Configuration &c) | |
Configuration (Level level, ConfigurationType configurationType, const std::string &value) | |
Full constructor used to sets value of configuration. More... | |
ConfigurationType | configurationType (void) const |
Gets configuration type of current configuration. More... | |
Level | level (void) const |
Gets level of current configuration. More... | |
virtual void | log (el::base::type::ostream_t &os) const |
Configuration & | operator= (const Configuration &c) |
void | setValue (const std::string &value) |
Set string based configuration value. More... | |
const std::string & | value (void) const |
Gets string based configuration value. More... | |
virtual | ~Configuration (void) |
Public Member Functions inherited from el::Loggable | |
virtual | ~Loggable (void) |
Private Attributes | |
ConfigurationType | m_configurationType |
Level | m_level |
std::string | m_value |
Represents single configuration that has representing level, configuration type and a string based value.
String based value means any value either its boolean, integer or string itself, it will be embedded inside quotes and will be parsed later.
Consider some examples below:
Definition at line 1666 of file easylogging++.h.
el::Configuration::Configuration | ( | const Configuration & | c | ) |
Definition at line 243 of file easylogging++.cc.
|
inlinevirtual |
Definition at line 1671 of file easylogging++.h.
el::Configuration::Configuration | ( | Level | level, |
ConfigurationType | configurationType, | ||
const std::string & | value | ||
) |
Full constructor used to sets value of configuration.
Definition at line 259 of file easylogging++.cc.
|
inline |
Gets configuration type of current configuration.
Definition at line 1683 of file easylogging++.h.
Gets level of current configuration.
Definition at line 1678 of file easylogging++.h.
|
virtual |
Implements el::Loggable.
Definition at line 265 of file easylogging++.cc.
Configuration & el::Configuration::operator= | ( | const Configuration & | c | ) |
Definition at line 249 of file easylogging++.cc.
|
inline |
Set string based configuration value.
value | Value to set. Values have to be std::string; For boolean values use "true", "false", for any integral values use them in quotes. They will be parsed when configuring |
Definition at line 1695 of file easylogging++.h.
|
inline |
Gets string based configuration value.
Definition at line 1688 of file easylogging++.h.
|
private |
Definition at line 1715 of file easylogging++.h.
|
private |
Definition at line 1714 of file easylogging++.h.
|
private |
Definition at line 1716 of file easylogging++.h.