numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
num_collect::logging::config::toml Namespace Reference

Namespace of logging configuration in TOML files. More...

Namespaces

namespace  impl
 Namespace of internal implementations.
 

Classes

class  toml_combined_log_sink_config_parser
 Class to parse configurations of log sinks to write logs to multiple log sinks. More...
 
class  toml_combined_log_sink_factory
 Class to create log sinks to write logs to multiple log sinks. More...
 
class  toml_console_log_sink_config_parser
 Class to parse configurations of log sinks to write to consoles. More...
 
class  toml_console_log_sink_factory
 Class to create log sinks to write to consoles using TOML configurations. More...
 
class  toml_log_config_parser
 Class to parse log configuration from a TOML file. More...
 
class  toml_log_sink_config_parser_base
 Interface of parser of configurations of log sinks. More...
 
class  toml_single_file_log_sink_config_parser
 Class to parse configurations of log sinks to write to files without rotation. More...
 
class  toml_single_file_log_sink_factory
 Class to create log sinks to write to files without rotation using TOML configurations. More...
 

Functions

template<typename T >
void read_optional_value_to (T &output, const ::toml::table &table, std::string_view path, std::string_view config_name, std::string_view type_name)
 Read a value to a variable.
 
template<typename T >
auto require_value (const ::toml::table &table, std::string_view path, std::string_view config_name, std::string_view type_name) -> T
 Get a value or throw exceptions.
 

Detailed Description

Namespace of logging configuration in TOML files.

Function Documentation

◆ read_optional_value_to()

template<typename T >
void num_collect::logging::config::toml::read_optional_value_to ( T & output,
const ::toml::table & table,
std::string_view path,
std::string_view config_name,
std::string_view type_name )
inline

Read a value to a variable.

Template Parameters
TType of the value.
Parameters
[out]outputOutput variable.
[in]tableTable in toml++ library.
[in]pathPath.
[in]config_nameConfiguration name for exceptions.
[in]type_nameType name for exceptions.

Definition at line 70 of file toml_helper.h.

◆ require_value()

template<typename T >
auto num_collect::logging::config::toml::require_value ( const ::toml::table & table,
std::string_view path,
std::string_view config_name,
std::string_view type_name ) -> T
inline

Get a value or throw exceptions.

Template Parameters
TType of the value.
Parameters
[in]tableTable in toml++ library.
[in]pathPath.
[in]config_nameConfiguration name for exceptions.
[in]type_nameType name for exceptions.
Returns
Value.

Definition at line 44 of file toml_helper.h.