cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Interface of methods. More...
#include <msgpack_rpc/methods/i_method.h>
Public Member Functions | |
IMethod (const IMethod &)=delete | |
IMethod (IMethod &&)=delete | |
virtual | ~IMethod () noexcept=default |
Destructor. | |
virtual messages::SerializedMessage | call (const messages::ParsedRequest &request)=0 |
Call this method. | |
virtual messages::MethodNameView | name () const noexcept=0 |
Get the method name. | |
virtual void | notify (const messages::ParsedNotification ¬ification)=0 |
Notify this method. | |
IMethod & | operator= (const IMethod &)=delete |
IMethod & | operator= (IMethod &&)=delete |
Protected Member Functions | |
IMethod () noexcept=default | |
Constructor. |
Interface of methods.
Definition at line 32 of file i_method.h.
|
nodiscardpure virtual |
Call this method.
[in] | request | Request. |
Implemented in msgpack_rpc::methods::FunctionalMethod< Result(Parameters...), Function, std::enable_if_t<!std::is_same_v< Result, void > > >, and msgpack_rpc::methods::FunctionalMethod< void(Parameters...), Function >.
|
nodiscardpure virtualnoexcept |
Get the method name.
Implemented in msgpack_rpc::methods::FunctionalMethod< Result(Parameters...), Function, std::enable_if_t<!std::is_same_v< Result, void > > >, and msgpack_rpc::methods::FunctionalMethod< void(Parameters...), Function >.
|
pure virtual |
Notify this method.
[in] | notification | Notification. |
Implemented in msgpack_rpc::methods::FunctionalMethod< Result(Parameters...), Function, std::enable_if_t<!std::is_same_v< Result, void > > >, and msgpack_rpc::methods::FunctionalMethod< void(Parameters...), Function >.