cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::util Namespace Reference

Namespace of utilities. More...

Namespaces

namespace  impl
 Namespace of internal implementations.

Functions

template<typename Iterator>
Iterator copy_string_to_iterator (std::string_view string, Iterator iterator)
 Copy a string to a range of an iterator.
impl::FmtMsgpackObjectProxy format_msgpack_object (const msgpack::object &object)
 Format an object in msgpack library using fmt library.
template<typename Iterator>
Iterator format_msgpack_object_to (Iterator iterator, const msgpack::object &object)
 Format an object in msgpack library.
std::string format_msgpack_object_to_string (const msgpack::object &object)
 Format an object in msgpack library.

Detailed Description

Namespace of utilities.

Function Documentation

◆ copy_string_to_iterator()

template<typename Iterator>
Iterator msgpack_rpc::util::copy_string_to_iterator ( std::string_view string,
Iterator iterator )
inline

Copy a string to a range of an iterator.

Template Parameters
IteratorType of the iterator of the output range.
Parameters
[in]stringString to copy from.
[in]iteratorIterator of the range to copy to.
Returns
Iterator after the copy.

Definition at line 36 of file copy_string_to_iterator.h.

◆ format_msgpack_object()

impl::FmtMsgpackObjectProxy msgpack_rpc::util::format_msgpack_object ( const msgpack::object & object)
nodiscard

Format an object in msgpack library using fmt library.

Parameters
[in]objectObject in msgpack library.
Returns
Proxy object to use in fmt library.

Definition at line 50 of file format_msgpack_object.cpp.

◆ format_msgpack_object_to()

template<typename Iterator>
Iterator msgpack_rpc::util::format_msgpack_object_to ( Iterator iterator,
const msgpack::object & object )
inline

Format an object in msgpack library.

Template Parameters
IteratorType of the output iterator of the formatted string.
Parameters
[out]iteratorOutput iterator of the formatted string.
[in]objectObject in msgpack library.
Returns
Output iterator after formatting the object.

Definition at line 254 of file format_msgpack_object_to.h.

◆ format_msgpack_object_to_string()

std::string msgpack_rpc::util::format_msgpack_object_to_string ( const msgpack::object & object)
nodiscard

Format an object in msgpack library.

Parameters
[in]objectObject in msgpack library.
Returns
Formatted string.

Definition at line 33 of file format_msgpack_object_to_string.cpp.