cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::messages::ParsedResponse Class Reference

Class of parsed responses. More...

#include <msgpack_rpc/messages/parsed_response.h>

Collaboration diagram for msgpack_rpc::messages::ParsedResponse:

Public Member Functions

 ParsedResponse (MessageID id, CallResult result)
 Constructor.
MessageID id () const noexcept
 Get the message ID.
const CallResultresult () const noexcept
 Get the result.

Private Attributes

MessageID id_
 Message ID.
CallResult result_
 Result.

Detailed Description

Class of parsed responses.

Definition at line 32 of file parsed_response.h.

Constructor & Destructor Documentation

◆ ParsedResponse()

msgpack_rpc::messages::ParsedResponse::ParsedResponse ( MessageID id,
CallResult result )
inline

Constructor.

Parameters
[in]idMessage ID.
[in]resultResult.

Definition at line 40 of file parsed_response.h.

Member Function Documentation

◆ id()

MessageID msgpack_rpc::messages::ParsedResponse::id ( ) const
inlinenodiscardnoexcept

Get the message ID.

Returns
Message ID.

Definition at line 48 of file parsed_response.h.

◆ result()

const CallResult & msgpack_rpc::messages::ParsedResponse::result ( ) const
inlinenodiscardnoexcept

Get the result.

Returns
Result.

Definition at line 55 of file parsed_response.h.

Member Data Documentation

◆ id_

MessageID msgpack_rpc::messages::ParsedResponse::id_
private

Message ID.

Definition at line 59 of file parsed_response.h.

◆ result_

CallResult msgpack_rpc::messages::ParsedResponse::result_
private

Result.

Definition at line 62 of file parsed_response.h.


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