#include <rr_data_request.h>
Public Member Functions | |
shared_ptr< Serializable > | getMRData () |
Path & | getPath () |
EIP_USINT | getServiceCode () const |
RRDataRequest (EIP_USINT service_code=0) | |
RRDataRequest (EIP_USINT service_code, const Path &path, shared_ptr< Serializable > data) | |
RRDataRequest (EIP_USINT service_code, const Path &path) | |
void | setMRData (shared_ptr< Serializable > data) |
void | setServiceCode (EIP_USINT service_code) |
Protected Member Functions | |
virtual shared_ptr< Serializable > | getData () const |
virtual void | setData (CPFItem &item) |
Private Attributes | |
shared_ptr< MessageRouterRequest > | mr_data_ |
Class to encapsulate an RR Data request specifically
Definition at line 54 of file rr_data_request.h.
eip::RRDataRequest::RRDataRequest | ( | EIP_USINT | service_code = 0 | ) | [inline] |
Construct an empty RR data request
Definition at line 61 of file rr_data_request.h.
eip::RRDataRequest::RRDataRequest | ( | EIP_USINT | service_code, |
const Path & | path, | ||
shared_ptr< Serializable > | data | ||
) | [inline] |
Construct an RR data request for the given path and data
Definition at line 69 of file rr_data_request.h.
eip::RRDataRequest::RRDataRequest | ( | EIP_USINT | service_code, |
const Path & | path | ||
) | [inline] |
Construct an RR data request for the given path and without data
Definition at line 79 of file rr_data_request.h.
virtual shared_ptr<Serializable> eip::RRDataRequest::getData | ( | ) | const [inline, protected, virtual] |
Return reference to the MR request to send
Reimplemented from eip::RRData.
Definition at line 136 of file rr_data_request.h.
shared_ptr<Serializable> eip::RRDataRequest::getMRData | ( | ) | [inline] |
Get a shared pointer to the data used for this request. If no value is to be supplied, pointer is null.
Definition at line 117 of file rr_data_request.h.
Path& eip::RRDataRequest::getPath | ( | ) | [inline] |
Get the path for this request. Can be used to modify the path.
Definition at line 107 of file rr_data_request.h.
EIP_USINT eip::RRDataRequest::getServiceCode | ( | ) | const [inline] |
Get the service code for this request
service | code value |
Definition at line 89 of file rr_data_request.h.
virtual void eip::RRDataRequest::setData | ( | CPFItem & | item | ) | [inline, protected, virtual] |
Cannot currently deserialize this class
Reimplemented from eip::RRData.
Definition at line 144 of file rr_data_request.h.
void eip::RRDataRequest::setMRData | ( | shared_ptr< Serializable > | data | ) | [inline] |
Set the data to be used for this request. If no data is to be set set to null (i.e. the default value of a shared_ptr).
data | Data to be sent with the request |
Definition at line 127 of file rr_data_request.h.
void eip::RRDataRequest::setServiceCode | ( | EIP_USINT | service_code | ) | [inline] |
Set the service code for this request.
service_code | service value to use |
Definition at line 98 of file rr_data_request.h.
shared_ptr<MessageRouterRequest> eip::RRDataRequest::mr_data_ [private] |
Definition at line 150 of file rr_data_request.h.