numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
toml_helper.h File Reference

Definition of helper functions for parsing TOML files. More...

#include <optional>
#include <string>
#include <string_view>
#include <fmt/format.h>
#include <toml++/toml.h>
#include "num_collect/base/exception.h"
+ Include dependency graph for toml_helper.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  num_collect
 Namespace of num_collect source codes.
 
namespace  num_collect::logging
 Namespace of logging.
 
namespace  num_collect::logging::config
 Namespace of logging configuration.
 
namespace  num_collect::logging::config::toml
 Namespace of logging configuration in TOML files.
 

Functions

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)
 Read a value to a variable.
 
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
 Get a value or throw exceptions.
 

Detailed Description

Definition of helper functions for parsing TOML files.

Definition in file toml_helper.h.