|
cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Class of processor of method calls. More...
#include <msgpack_rpc/methods/method_processor_impl.h>
Public Member Functions | |
| MethodProcessor (std::shared_ptr< logging::Logger > logger) | |
| Constructor. | |
| void | append (std::unique_ptr< IMethod > method) override |
| Append a method. | |
| messages::SerializedMessage | call (const messages::ParsedRequest &request) override |
| Call a method. | |
| void | notify (const messages::ParsedNotification ¬ification) override |
| Notify a method. | |
| Public Member Functions inherited from msgpack_rpc::methods::IMethodProcessor | |
| IMethodProcessor (const IMethodProcessor &)=delete | |
| IMethodProcessor (IMethodProcessor &&)=delete | |
| virtual | ~IMethodProcessor () noexcept=default |
| Destructor. | |
| IMethodProcessor & | operator= (const IMethodProcessor &)=delete |
| IMethodProcessor & | operator= (IMethodProcessor &&)=delete |
Private Attributes | |
| std::shared_ptr< logging::Logger > | logger_ |
| Logger. | |
| MethodDict | methods_ {} |
| Dictionary of methods. | |
Additional Inherited Members | |
| Protected Member Functions inherited from msgpack_rpc::methods::IMethodProcessor | |
| IMethodProcessor () noexcept=default | |
| Constructor. | |
Class of processor of method calls.
Definition at line 41 of file method_processor_impl.h.
|
inlineexplicit |
|
inlineoverridevirtual |
Append a method.
| [in] | method | Method. |
Implements msgpack_rpc::methods::IMethodProcessor.
Definition at line 52 of file method_processor_impl.h.
|
inlinenodiscardoverridevirtual |
Call a method.
| [in] | request | Request. |
Implements msgpack_rpc::methods::IMethodProcessor.
Definition at line 57 of file method_processor_impl.h.
|
inlineoverridevirtual |
Notify a method.
| [in] | notification | Notification. |
Implements msgpack_rpc::methods::IMethodProcessor.
Definition at line 70 of file method_processor_impl.h.
|
private |
Logger.
Definition at line 82 of file method_processor_impl.h.
|
private |
Dictionary of methods.
Definition at line 85 of file method_processor_impl.h.