#include <rr_data.h>
Public Member Functions | |
virtual Reader & | deserialize (Reader &reader, size_t length) |
virtual Reader & | deserialize (Reader &reader) |
virtual size_t | getLength () const |
RRData () | |
virtual Writer & | serialize (Writer &writer) const |
Public Attributes | |
EIP_UDINT | interface_handle |
EIP_UINT | timeout |
Protected Member Functions | |
virtual shared_ptr< Serializable > | getData () const |
virtual void | setData (CPFItem &item) |
Class to encapsulate an RR Data request or reply. Note that this is intended to be used within the payload of a EncapPacket.
eip::RRData::RRData | ( | ) | [inline] |
virtual Reader& eip::RRData::deserialize | ( | Reader & | reader, |
size_t | length | ||
) | [inline, virtual] |
Reader & eip::RRData::deserialize | ( | Reader & | reader | ) | [virtual] |
Deserialize data from the given reader without length information
reader | Reader to use for deserialization |
std::length_error | if the buffer is overrun while deserializing |
Definition at line 49 of file rr_data.cpp.
virtual shared_ptr<Serializable> eip::RRData::getData | ( | ) | const [inline, protected, virtual] |
Serialize data for the specific implementation. Default is null
Reimplemented in eip::RRDataRequest, and eip::RRDataResponse.
virtual size_t eip::RRData::getLength | ( | ) | const [inline, virtual] |
Writer & eip::RRData::serialize | ( | Writer & | writer | ) | const [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 38 of file rr_data.cpp.
virtual void eip::RRData::setData | ( | CPFItem & | item | ) | [inline, protected, virtual] |
Deserialize the data for this specific implementation
item | the CPF item that was deserialized, copy data from that |
Reimplemented in eip::RRDataRequest, and eip::RRDataResponse.