#include <message_router_response.h>
Public Member Functions | |
virtual Reader & | deserialize (Reader &reader, size_t length) |
virtual Reader & | deserialize (Reader &reader) |
shared_ptr< Serializable > | getAdditionalStatus () const |
virtual size_t | getLength () const |
shared_ptr< Serializable > | getResponseData () const |
MessageRouterResponse () | |
virtual Writer & | serialize (Writer &writer) const |
Public Attributes | |
EIP_USINT | general_status |
EIP_USINT | service |
Private Member Functions | |
shared_ptr< Serializable > | readData (Reader &reader, int length) |
Private Attributes | |
shared_ptr< Serializable > | additional_status_ |
shared_ptr< Serializable > | response_data_ |
Class to encapsulate a MessageRouterResponse data.
Definition at line 48 of file message_router_response.h.
eip::MessageRouterResponse::MessageRouterResponse | ( | ) | [inline] |
Construct an empty RR data holder
Definition at line 58 of file message_router_response.h.
Reader & eip::MessageRouterResponse::deserialize | ( | Reader & | reader, |
size_t | length | ||
) | [virtual] |
Deserialize response data from the given reader and length
Definition at line 52 of file message_router_response.cpp.
virtual Reader& eip::MessageRouterResponse::deserialize | ( | Reader & | reader | ) | [inline, virtual] |
Not implemented. Never expect to have to receive this type of message.
Definition at line 103 of file message_router_response.h.
shared_ptr<Serializable> eip::MessageRouterResponse::getAdditionalStatus | ( | ) | const [inline] |
Get the additional status data object in this message
Definition at line 64 of file message_router_response.h.
size_t eip::MessageRouterResponse::getLength | ( | ) | const [virtual] |
Get the length of serialized data that would be produced if serialized
Definition at line 37 of file message_router_response.cpp.
shared_ptr<Serializable> eip::MessageRouterResponse::getResponseData | ( | ) | const [inline] |
Get the response data object in this message
Definition at line 73 of file message_router_response.h.
shared_ptr< Serializable > eip::MessageRouterResponse::readData | ( | Reader & | reader, |
int | length | ||
) | [private] |
Helper to read data fields. Simply produces SerializableBuffers of the given length, or a null pointer if length <= 0.
reader | Reader to use to read buffer data |
length | Length in bytes to read. If less than or equal to zero, then null pointer is returned. |
Definition at line 65 of file message_router_response.cpp.
virtual Writer& eip::MessageRouterResponse::serialize | ( | Writer & | writer | ) | const [inline, virtual] |
Serialize data into the given buffer
writer | Writer to use for serialization |
std::length_error | if the buffer is too small for the header data |
Definition at line 90 of file message_router_response.h.
shared_ptr<Serializable> eip::MessageRouterResponse::additional_status_ [private] |
Definition at line 109 of file message_router_response.h.
Definition at line 53 of file message_router_response.h.
shared_ptr<Serializable> eip::MessageRouterResponse::response_data_ [private] |
Definition at line 110 of file message_router_response.h.
Definition at line 52 of file message_router_response.h.