rr_data_response.h
Go to the documentation of this file.
1 
26 #ifndef ODVA_ETHERNETIP_RR_DATA_RESPONSE_H
27 #define ODVA_ETHERNETIP_RR_DATA_RESPONSE_H
28 
29 #include <string>
30 #include <boost/shared_ptr.hpp>
31 #include <boost/make_shared.hpp>
32 #include <boost/asio.hpp>
33 
42 
43 using boost::shared_ptr;
44 using boost::make_shared;
45 
46 namespace eip {
47 
48 using serialization::Serializable;
49 using serialization::Reader;
50 using serialization::Writer;
52 
56 class RRDataResponse : public RRData
57 {
58 public:
59 
65  {
66  return response_data_.service;
67  }
68 
74  {
76  }
77 
83  shared_ptr<Serializable> getAdditionalStatus()
84  {
86  }
87 
93  shared_ptr<Serializable> getResponseData()
94  {
96  }
97 
104  {
106  }
107 
114  {
116  }
117 
118 protected:
122  virtual shared_ptr<Serializable> getData() const
123  {
124  throw std::logic_error("Not implemented");
125  }
126 
130  virtual void setData(CPFItem& item)
131  {
133  }
134 
135 private:
137 };
138 
139 } // namespace eip
140 
141 #endif // ODVA_ETHERNETIP_RR_DATA_RESPONSE_H
eip_types.h
eip::RRDataResponse::response_data_
MessageRouterResponse response_data_
Definition: rr_data_response.h:136
eip
Definition: connection.h:41
eip::RRDataResponse::getResponseDataAs
void getResponseDataAs(Serializable &result)
Definition: rr_data_response.h:113
eip::RRDataResponse::getGeneralStatus
EIP_USINT getGeneralStatus() const
Definition: rr_data_response.h:73
eip::MessageRouterResponse::getAdditionalStatus
shared_ptr< Serializable > getAdditionalStatus() const
Definition: message_router_response.h:64
message_router_response.h
EIP_USINT
uint8_t EIP_USINT
Definition: eip_types.h:36
eip::serialization::Serializable
Definition: serializable.h:38
rr_data.h
cpf_item.h
eip::serialization::copy_serializable
void copy_serializable(Serializable &dst, const Serializable &src)
Definition: copy_serializable.cpp:34
reader.h
eip::RRDataResponse::getData
virtual shared_ptr< Serializable > getData() const
Definition: rr_data_response.h:122
eip::MessageRouterResponse::getResponseData
shared_ptr< Serializable > getResponseData() const
Definition: message_router_response.h:73
eip::MessageRouterResponse
Definition: message_router_response.h:48
eip::RRDataResponse
Definition: rr_data_response.h:56
eip::CPFItem::getDataAs
void getDataAs(Serializable &result)
Definition: cpf_item.cpp:86
eip::MessageRouterResponse::service
EIP_USINT service
Definition: message_router_response.h:52
eip::RRDataResponse::getAdditionalStatus
shared_ptr< Serializable > getAdditionalStatus()
Definition: rr_data_response.h:83
eip::CPFItem
Definition: cpf_item.h:48
eip::RRDataResponse::getServiceCode
EIP_USINT getServiceCode() const
Definition: rr_data_response.h:64
eip::MessageRouterResponse::general_status
EIP_USINT general_status
Definition: message_router_response.h:53
eip::RRDataResponse::setData
virtual void setData(CPFItem &item)
Definition: rr_data_response.h:130
eip::RRData
Definition: rr_data.h:51
eip::RRDataResponse::getAdditionalStatusAs
void getAdditionalStatusAs(Serializable &result)
Definition: rr_data_response.h:103
eip::RRDataResponse::getResponseData
shared_ptr< Serializable > getResponseData()
Definition: rr_data_response.h:93
copy_serializable.h
serializable.h
writer.h


odva_ethernetip
Author(s): Kareem Shehata
autogenerated on Wed Mar 2 2022 00:38:56