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 #ifndef qpid_framing_DtxStartOkBody__
00029 #define qpid_framing_DtxStartOkBody__
00030
00031 #include <string>
00032 #include <sstream>
00033
00034 #include <amqp_types.h>
00035 #include <AMQMethodBody.h>
00036 #include <Buffer.h>
00037 #include <FieldTable.h>
00038
00039 namespace qpid
00040 {
00041 namespace framing
00042 {
00043
00044
00045 class DtxStartOkBody : public AMQMethodBody
00046 {
00047
00048
00049
00050
00051 public:
00052 typedef boost::shared_ptr<DtxStartOkBody> shared_ptr;
00053
00054
00055
00056
00057
00058 inline DtxStartOkBody(u_int8_t major, u_int8_t minor): AMQMethodBody(major, minor) {}
00059 inline DtxStartOkBody(ProtocolVersion& version): AMQMethodBody(version) {}
00060 virtual ~DtxStartOkBody() {}
00061
00062
00063
00064
00065
00066
00067 inline void print(std::ostream& out) const
00068 {
00069 out << "DtxStartOk: ";
00070 }
00071
00072 inline u_int16_t amqpClassId() const
00073 {
00074 return 100;
00075 }
00076
00077 inline u_int16_t amqpMethodId() const
00078 {
00079 return 21;
00080 }
00081
00082 inline u_int32_t bodySize() const
00083 {
00084 u_int32_t size = 0;
00085 return size;
00086 }
00087
00088 inline void encodeContent(Buffer&) const
00089 {
00090 }
00091
00092 inline void decodeContent(Buffer&)
00093 {
00094 }
00095
00096
00097
00098 };
00099
00100
00101 }
00102 }
00103
00104 #endif
00105