ServiceReply.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef __SERVICE_SERVICEASYNCHREPLY_H
00031 #define __SERVICE_SERVICEASYNCHREPLY_H
00032
00033 namespace mermaid
00034 {
00035 namespace support
00036 {
00037 namespace service
00038 {
00039 class ServiceReply;
00040 }
00041 }
00042 }
00043
00044 #include <DataBox.hpp>
00045 #include <DataValueVector.hpp>
00046
00047
00048 #include "ServiceRequest.hpp"
00049
00050 namespace mermaid
00051 {
00052 namespace support
00053 {
00054 namespace service
00055 {
00056
00057 using mermaid::support::data::DataBox;
00058 using mermaid::support::data::DataValueVector;
00059 using boost::shared_ptr;
00060
00061
00062
00063
00064
00065
00066 class ServiceReply
00067 {
00068 public:
00069 ServiceReply (shared_ptr<ServiceRequest> originalRequest, std::string executionStatus = "OK");
00070 ServiceReply (const ServiceReply &sr);
00071 ServiceReply& operator= (const ServiceReply &sr);
00072
00073
00074 std::string getRequesterEntityName();
00075 std::string getRequesterServiceName();
00076 std::string getTargetEntityName();
00077 std::string getTargetServiceName();
00078 std::string getTargetServiceInterfaceName();
00079 int getRequestId();
00080 bool executionIsOk();
00081 std::string getExecutionStatus();
00082
00083
00084
00085 shared_ptr<DataBox> getReplyDataBox();
00086 void setReplyDataBox (shared_ptr<DataBox> dataBox);
00087
00088
00089 protected:
00090
00091 ServiceReply();
00092
00093 std::string requesterEntityName_;
00094 std::string requesterServiceName_;
00095 std::string targetEntityName_;
00096 std::string targetServiceName_;
00097 std::string targetServiceInterfaceName_;
00098 int requestId_;
00099 std::string executionStatus_;
00100
00101 shared_ptr<DataBox> replyDataBox_;
00102 std::string dataStructureName_;
00103
00104 };
00105
00106 }
00107 }
00108 }
00109 #endif // __SERVICE_SERVICEASYNCHREPLY_H