activemq-cpp-3.8.2
DataStreamMarshaller.h
Go to the documentation of this file.
1 
18 #ifndef _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSHAL_DATASTREAMMARSHALLER_H_
19 #define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSHAL_DATASTREAMMARSHALLER_H_
20 
23 #include <decaf/io/IOException.h>
27 #include <activemq/util/Config.h>
28 
29 namespace activemq {
30 namespace wireformat {
31 namespace openwire {
32 namespace marshal {
33 
38  public:
39 
40  virtual ~DataStreamMarshaller();
41 
46  virtual unsigned char getDataStructureType() const = 0;
47 
53  virtual commands::DataStructure* createObject() const = 0;
54 
67  virtual int tightMarshal1(OpenWireFormat* format,
68  commands::DataStructure* command,
69  utils::BooleanStream* bs) = 0;
70 
79  virtual void tightMarshal2(OpenWireFormat* format,
80  commands::DataStructure* command,
82  utils::BooleanStream* bs) = 0;
83 
92  virtual void tightUnmarshal(OpenWireFormat* format,
93  commands::DataStructure* command,
95  utils::BooleanStream* bs) = 0;
96 
104  virtual void looseMarshal(OpenWireFormat* format,
105  commands::DataStructure* command,
107 
115  virtual void looseUnmarshal(OpenWireFormat* format,
116  commands::DataStructure* command,
117  decaf::io::DataInputStream* dis) = 0;
118 
119  };
120 
121 }}}}
122 
123 #endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSHAL_DATASTREAMMARSHALLER_H_*/
#define AMQCPP_API
Definition: Config.h:30
Definition: OpenWireFormat.h:43
Manages the writing and reading of boolean data streams to and from a data source such as a DataInput...
Definition: BooleanStream.h:49
Definition: DataStructure.h:27
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
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
Base class for all classes that marshal commands for Openwire.
Definition: DataStreamMarshaller.h:37