activemq-cpp-3.8.2
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_*/
#define AMQCPP_API
Definition: Config.h:30
Interface for a transport layer for command objects.
Definition: Transport.h:59
A data output stream lets an application write primitive Java data types to an output stream in a por...
Definition: DataOutputStream.h:34
A data input stream lets an application read primitive Java data types from an underlying input strea...
Definition: DataInputStream.h:46
Provides a mechanism to marshal commands into and out of packets or into and out of streams...
Definition: WireFormat.h:43
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
Decaf&#39;s implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition: Pointer.h:53