Public Member Functions | Protected Member Functions | Private Attributes | List of all members
eip::RRDataResponse Class Reference

#include <rr_data_response.h>

Inheritance diagram for eip::RRDataResponse:
Inheritance graph
[legend]

Public Member Functions

shared_ptr< Serializable > getAdditionalStatus ()
 
void getAdditionalStatusAs (Serializable &result)
 
EIP_USINT getGeneralStatus () const
 
shared_ptr< Serializable > getResponseData ()
 
void getResponseDataAs (Serializable &result)
 
EIP_USINT getServiceCode () const
 
- Public Member Functions inherited from eip::RRData
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
 

Protected Member Functions

virtual shared_ptr< Serializable > getData () const
 
virtual void setData (CPFItem &item)
 

Private Attributes

MessageRouterResponse response_data_
 

Additional Inherited Members

- Public Attributes inherited from eip::RRData
EIP_UDINT interface_handle
 
EIP_UINT timeout
 

Detailed Description

Class to encapsulate an RR Data request specifically

Definition at line 56 of file rr_data_response.h.

Member Function Documentation

shared_ptr<Serializable> eip::RRDataResponse::getAdditionalStatus ( )
inline

Get a shared pointer to the additional status given in the RR Data response. If no additional status given (i.e. length 0) then the pointer will be null

Returns
Shared pointer to additional status, or null if none given

Definition at line 83 of file rr_data_response.h.

void eip::RRDataResponse::getAdditionalStatusAs ( Serializable &  result)
inline

Copy the additional status into the serializable type given. Note that status must be available, make sure to check pointer exists first!

Parameters
resultStructure into which to copy data

Definition at line 103 of file rr_data_response.h.

virtual shared_ptr<Serializable> eip::RRDataResponse::getData ( ) const
inlineprotectedvirtual

Cannot current serialize this class

Reimplemented from eip::RRData.

Definition at line 122 of file rr_data_response.h.

EIP_USINT eip::RRDataResponse::getGeneralStatus ( ) const
inline

Get the general status code given in the message router section of the RR Data response

Returns
general status code value

Definition at line 73 of file rr_data_response.h.

shared_ptr<Serializable> eip::RRDataResponse::getResponseData ( )
inline

Get a shared pointer to the data given in the RR Data response. If no data given (i.e. length 0), then the pointer will be null.

Returns
Shared pointer to response data, or null if none given

Definition at line 93 of file rr_data_response.h.

void eip::RRDataResponse::getResponseDataAs ( Serializable &  result)
inline

Copy the response data into the given serializable type. Note that data must be available, make sure to check pointer exists first!

Parameters
resultStructure into which to copy data

Definition at line 113 of file rr_data_response.h.

EIP_USINT eip::RRDataResponse::getServiceCode ( ) const
inline

Get the response code given in the Message Router section of the RR Data Response

Returns
service code value

Definition at line 64 of file rr_data_response.h.

virtual void eip::RRDataResponse::setData ( CPFItem item)
inlineprotectedvirtual

Used during deserialization to pass in the item data to be parsed

Reimplemented from eip::RRData.

Definition at line 130 of file rr_data_response.h.

Member Data Documentation

MessageRouterResponse eip::RRDataResponse::response_data_
private

Definition at line 136 of file rr_data_response.h.


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


odva_ethernetip
Author(s): Kareem Shehata
autogenerated on Mon Jun 10 2019 14:00:16