Electroneum
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:
Collaboration diagram for el::Configuration:

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. More...
 
Level level (void) const
 Gets level of current configuration. More...
 
ConfigurationType configurationType (void) const
 Gets configuration type of current configuration. More...
 
const std::string & value (void) const
 Gets string based configuration value. More...
 
void setValue (const std::string &value)
 Set string based configuration value. More...
 
virtual void log (el::base::type::ostream_t &os) const
 
- Public Member Functions inherited from el::Loggable
virtual ~Loggable (void)
 

Detailed Description

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 1696 of file easylogging++.h.

Constructor & Destructor Documentation

◆ Configuration() [1/2]

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

◆ ~Configuration()

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

Definition at line 1701 of file easylogging++.h.

1701  {
1702  }

◆ 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.

Definition at line 1713 of file easylogging++.h.

1713  {
1714  return m_configurationType;
1715  }

◆ level()

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

Gets level of current configuration.

Definition at line 1708 of file easylogging++.h.

1708  {
1709  return m_level;
1710  }

◆ log()

virtual 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

Definition at line 1725 of file easylogging++.h.

1725  {
1726  m_value = value;
1727  }
const std::string & value(void) const
Gets string based configuration value.
Here is the call graph for this function:

◆ value()

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

Gets string based configuration value.

Definition at line 1718 of file easylogging++.h.

1718  {
1719  return m_value;
1720  }
Here is the caller graph for this function:

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