cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Definition of common functions and macros to parse TOML files. More...
#include <chrono>
#include <exception>
#include <string>
#include <string_view>
#include <fmt/format.h>
#include <toml++/toml.h>
#include "msgpack_rpc/common/msgpack_rpc_exception.h"
#include "msgpack_rpc/common/status_code.h"
Go to the source code of this file.
Namespaces | |
namespace | msgpack_rpc |
Namespace of cpp-msgpack-rpc library. | |
namespace | msgpack_rpc::config |
Namespace of configurations. |
Macros | |
#define | MSGPACK_RPC_PARSE_TOML_VALUE(KEY_STR, CONFIG_FUNCTION, TYPE) |
Internal macro to parse a value from TOML. | |
#define | MSGPACK_RPC_PARSE_TOML_VALUE_DURATION(KEY_STR, CONFIG_FUNCTION) |
Internal macro to parse a value from TOML. |
Functions | |
void | msgpack_rpc::config::toml::impl::throw_error (const ::toml::source_region &source, std::string_view config_key) |
Throw an exception for an error of TOML. | |
void | msgpack_rpc::config::toml::impl::throw_error (const ::toml::source_region &source, std::string_view config_key, std::string_view error_message) |
Throw an exception for an error of TOML. |
Definition of common functions and macros to parse TOML files.
Definition in file parse_toml_common.h.
#define MSGPACK_RPC_PARSE_TOML_VALUE | ( | KEY_STR, | |
CONFIG_FUNCTION, | |||
TYPE ) |
Internal macro to parse a value from TOML.
Definition at line 69 of file parse_toml_common.h.
#define MSGPACK_RPC_PARSE_TOML_VALUE_DURATION | ( | KEY_STR, | |
CONFIG_FUNCTION ) |
Internal macro to parse a value from TOML.
Definition at line 81 of file parse_toml_common.h.
|
inline |
Throw an exception for an error of TOML.
[in] | source | Location in TOML. |
[in] | config_key | Key of the configuration. |
Definition at line 43 of file parse_toml_common.h.
|
inline |
Throw an exception for an error of TOML.
[in] | source | Location in TOML. |
[in] | config_key | Key of the configuration. |
[in] | error_message | Error message. |
Definition at line 59 of file parse_toml_common.h.