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

Namespace of methods in MessagePack-RPC. More...

Classes

class  FunctionalMethod
 Class of methods implemented by function objects. More...
class  FunctionalMethod< Result(Parameters...), Function, std::enable_if_t<!std::is_same_v< Result, void > > >
 Class of methods implemented by function objects. More...
class  FunctionalMethod< void(Parameters...), Function >
 Class of methods implemented by function objects. More...
class  IMethod
 Interface of methods. More...
class  IMethodProcessor
 Interface of processor of method calls. More...
class  MethodDict
 Class of dictionaries of methods. More...
class  MethodException
 Class of exceptions in methods. More...
class  MethodProcessor
 Class of processor of method calls. More...

Functions

template<typename Signature, typename Function>
std::unique_ptr< FunctionalMethod< Signature, Function > > create_functional_method (messages::MethodName name, Function &&function, std::shared_ptr< logging::Logger > logger)
 Create a method implemented by a function object.
std::unique_ptr< IMethodProcessorcreate_method_processor (std::shared_ptr< logging::Logger > logger)
 Create a processor of method calls.

Detailed Description

Namespace of methods in MessagePack-RPC.

Function Documentation

◆ create_functional_method()

template<typename Signature, typename Function>
std::unique_ptr< FunctionalMethod< Signature, Function > > msgpack_rpc::methods::create_functional_method ( messages::MethodName name,
Function && function,
std::shared_ptr< logging::Logger > logger )
inlinenodiscard

Create a method implemented by a function object.

Template Parameters
SignatureSignature of the method.
FunctionType of the function implementing the method.
Parameters
[in]nameName of the method.
[in]functionFunction implementing the method.
[in]loggerLogger.
Returns
Method.

Definition at line 265 of file functional_method.h.

◆ create_method_processor()

std::unique_ptr< IMethodProcessor > msgpack_rpc::methods::create_method_processor ( std::shared_ptr< logging::Logger > logger)
nodiscard

Create a processor of method calls.

Parameters
[in]loggerLogger.
Returns
Processor.

Definition at line 29 of file method_processor.cpp.