activemq-cpp-3.6.0
WireFormat.h
Go to the documentation of this file.
1 
18 #ifndef _ACTIVEMQ_WIREFORMAT_WIREFORMAT_H_
19 #define _ACTIVEMQ_WIREFORMAT_WIREFORMAT_H_
20 
22 
25 #include <decaf/io/IOException.h>
26 #include <decaf/lang/Pointer.h>
27 
28 #include <activemq/util/Config.h>
31 
33 
34 namespace activemq {
35 namespace wireformat {
36 
38 
44  public:
45 
46  virtual ~WireFormat();
47 
61  virtual void marshal(const Pointer<commands::Command> command,
62  const activemq::transport::Transport* transport,
64 
79  virtual Pointer<commands::Command> unmarshal(const activemq::transport::Transport* transport,
81 
88  virtual void setVersion(int version) = 0;
89 
95  virtual int getVersion() const = 0;
96 
102  virtual bool hasNegotiator() const = 0;
103 
113  virtual bool inReceive() const = 0;
114 
126  virtual Pointer<transport::Transport> createNegotiator(
127  const Pointer<transport::Transport> transport) = 0;
128 
129  };
130 
131 }}
132 
133 #endif /*_ACTIVEMQ_WIREFORMAT_WIREFORMAT_H_*/