Monero
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Attributes | List of all members
el::Configuration Class Reference

Represents single configuration that has representing level, configuration type and a string based value. More...

#include <easylogging++.h>

Inheritance diagram for el::Configuration:
Inheritance graph
[legend]
Collaboration diagram for el::Configuration:
Collaboration graph
[legend]

Classes

class  Predicate
 Used to find configuration from configuration (pointers) repository. Avoid using it. More...
 

Public Member Functions

 Configuration (const Configuration &c)
 
Configurationoperator= (const Configuration &c)
 
virtual ~Configuration (void)
 
 Configuration (Level level, ConfigurationType configurationType, const std::string &value)
 Full constructor used to sets value of configuration.
 
Level level (void) const
 Gets level of current configuration.
 
ConfigurationType configurationType (void) const
 Gets configuration type of current configuration.
 
const std::string & value (void) const
 Gets string based configuration value.
 
void setValue (const std::string &value)
 Set string based configuration value.
 
virtual void log (el::base::type::ostream_t &os) const
 
- Public Member Functions inherited from el::Loggable
virtual ~Loggable (void)
 

Private Attributes

Level m_level
 
ConfigurationType m_configurationType
 
std::string m_value
 

Detailed Description

Represents single configuration that has representing level, configuration type and a string based value.

@detail 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:

Constructor & Destructor Documentation

◆ Configuration() [1/2]

el::Configuration::Configuration ( const Configuration & c)

◆ ~Configuration()

virtual el::Configuration::~Configuration ( void )
inlinevirtual

◆ Configuration() [2/2]

el::Configuration::Configuration ( Level level,
ConfigurationType configurationType,
const std::string & value )

Full constructor used to sets value of configuration.

Member Function Documentation

◆ configurationType()

ConfigurationType el::Configuration::configurationType ( void ) const
inline

Gets configuration type of current configuration.

◆ level()

Level el::Configuration::level ( void ) const
inline

Gets level of current configuration.

◆ log()

void el::Configuration::log ( el::base::type::ostream_t & os) const
virtual

Implements el::Loggable.

◆ operator=()

Configuration & el::Configuration::operator= ( const Configuration & c)

◆ setValue()

void el::Configuration::setValue ( const std::string & value)
inline

Set string based configuration value.

Parameters
valueValue 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

◆ value()

const std::string & el::Configuration::value ( void ) const
inline

Gets string based configuration value.

Member Data Documentation

◆ m_configurationType

ConfigurationType el::Configuration::m_configurationType
private

◆ m_level

Level el::Configuration::m_level
private

◆ m_value

std::string el::Configuration::m_value
private

The documentation for this class was generated from the following files: