cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::clients::impl::IParametersSerializer Class Referenceabstract

Interface of serializer of parameters. More...

#include <msgpack_rpc/clients/impl/parameters_serializer.h>

Inheritance diagram for msgpack_rpc::clients::impl::IParametersSerializer:
Collaboration diagram for msgpack_rpc::clients::impl::IParametersSerializer:

Public Member Functions

 IParametersSerializer (const IParametersSerializer &)=delete
 IParametersSerializer (IParametersSerializer &&) noexcept=default
 Move constructor.
virtual messages::SerializedMessage create_serialized_notification (messages::MethodNameView method_name) const =0
 Create a serialized notification data.
virtual messages::SerializedMessage create_serialized_request (messages::MethodNameView method_name, messages::MessageID request_id) const =0
 Create a serialized request data.
IParametersSerializeroperator= (const IParametersSerializer &)=delete
IParametersSerializeroperator= (IParametersSerializer &&) noexcept=default
 Move assignment operator.

Protected Member Functions

 IParametersSerializer () noexcept=default
 Constructor.
 ~IParametersSerializer () noexcept=default
 Destructor.

Detailed Description

Interface of serializer of parameters.

Definition at line 36 of file parameters_serializer.h.

Member Function Documentation

◆ create_serialized_notification()

virtual messages::SerializedMessage msgpack_rpc::clients::impl::IParametersSerializer::create_serialized_notification ( messages::MethodNameView method_name) const
nodiscardpure virtual

Create a serialized notification data.

Parameters
[in]method_nameName of the method to call with the notification.
Returns
Serialized notification data.

Implemented in msgpack_rpc::clients::impl::ParametersSerializer< Parameters >.

◆ create_serialized_request()

virtual messages::SerializedMessage msgpack_rpc::clients::impl::IParametersSerializer::create_serialized_request ( messages::MethodNameView method_name,
messages::MessageID request_id ) const
nodiscardpure virtual

Create a serialized request data.

Parameters
[in]method_nameName of the method to call with the request.
[in]request_idMessage ID of the request.
Returns
Serialized request data.

Implemented in msgpack_rpc::clients::impl::ParametersSerializer< Parameters >.

◆ operator=()

IParametersSerializer & msgpack_rpc::clients::impl::IParametersSerializer::operator= ( IParametersSerializer && )
defaultnoexcept

Move assignment operator.

Returns
This.

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