cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
parse_toml.h File Reference

Definition of parse_toml functions. More...

#include <string>
#include <string_view>
#include <unordered_map>
#include "msgpack_rpc/config/client_config.h"
#include "msgpack_rpc/config/logging_config.h"
#include "msgpack_rpc/config/server_config.h"
#include "msgpack_rpc/impl/msgpack_rpc_export.h"
Include dependency graph for parse_toml.h:
This graph shows which files directly or indirectly include this file:

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.

Functions

void msgpack_rpc::config::toml::parse_toml (std::string_view file_path, std::unordered_map< std::string, LoggingConfig > &logging_configs, std::unordered_map< std::string, ClientConfig > &client_configs, std::unordered_map< std::string, ServerConfig > &server_configs)
 Parse configurations from a TOML file.

Detailed Description

Definition of parse_toml functions.

Definition in file parse_toml.h.

Function Documentation

◆ parse_toml()

void msgpack_rpc::config::toml::parse_toml ( std::string_view file_path,
std::unordered_map< std::string, LoggingConfig > & logging_configs,
std::unordered_map< std::string, ClientConfig > & client_configs,
std::unordered_map< std::string, ServerConfig > & server_configs )

Parse configurations from a TOML file.

Parameters
[in]file_pathPath of the TOML file.
[in]logging_configsConfigurations of logging.
[in]client_configsConfigurations of clients.
[in]server_configsConfigurations of servers.

Definition at line 32 of file parse_toml.cpp.