cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::methods::IMethod Class Referenceabstract

Interface of methods. More...

#include <msgpack_rpc/methods/i_method.h>

Inheritance diagram for msgpack_rpc::methods::IMethod:
Collaboration diagram for msgpack_rpc::methods::IMethod:

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 &notification)=0
 Notify this method.
IMethodoperator= (const IMethod &)=delete
IMethodoperator= (IMethod &&)=delete

Protected Member Functions

 IMethod () noexcept=default
 Constructor.

Detailed Description

Interface of methods.

Definition at line 32 of file i_method.h.

Member Function Documentation

◆ call()

virtual messages::SerializedMessage msgpack_rpc::methods::IMethod::call ( const messages::ParsedRequest & request)
nodiscardpure virtual

◆ name()

virtual messages::MethodNameView msgpack_rpc::methods::IMethod::name ( ) const
nodiscardpure virtualnoexcept

◆ notify()

virtual void msgpack_rpc::methods::IMethod::notify ( const messages::ParsedNotification & notification)
pure virtual

The documentation for this class was generated from the following file: