18#ifndef _ACTIVEMQ_COMMANDS_ACTIVEMQSTREAMMESSAGE_H_
19#define _ACTIVEMQ_COMMANDS_ACTIVEMQSTREAMMESSAGE_H_
38 class ActiveMQStreamMessageImpl;
43 ActiveMQStreamMessageImpl* impl;
45 mutable std::auto_ptr<decaf::io::DataInputStream> dataIn;
46 mutable std::auto_ptr<decaf::io::DataOutputStream> dataOut;
54 ActiveMQStreamMessage(
const ActiveMQStreamMessage&);
55 ActiveMQStreamMessage& operator=(
const ActiveMQStreamMessage&);
139 void initializeReading()
const;
141 void initializeWriting();
#define AMQCPP_API
Definition Config.h:30
ActiveMQMessageTemplate()
Definition ActiveMQMessageTemplate.h:48
virtual ValueType getNextValueType() const
Returns the value type for the element in the StreamMessage.
virtual void clearBody()
Clears out the body of the message.
virtual bool readBoolean() const
Reads a Boolean from the Stream message stream.
virtual void writeLong(long long value)
Writes a long long to the Stream message stream as a 8 byte value.
virtual unsigned short readUnsignedShort() const
Reads a 16 bit unsigned short from the Stream message stream.
static const unsigned char ID_ACTIVEMQSTREAMMESSAGE
Definition ActiveMQStreamMessage.h:50
virtual void writeDouble(double value)
Writes a double to the Stream message stream as a 8 byte value.
virtual cms::StreamMessage * clone() const
Clone this message exactly, returns a new instance that the caller is required to delete.
virtual unsigned char getDataStructureType() const
Get the DataStructure Type as defined in CommandTypes.h.
virtual void writeFloat(float value)
Writes a float to the Stream message stream as a 4 byte value.
virtual void writeInt(int value)
Writes a signed int to the Stream message stream as a 4 byte value.
virtual int readInt() const
Reads a 32 bit signed integer from the Stream message stream.
virtual void writeUnsignedShort(unsigned short value)
Writes a unsigned short to the Stream message stream as a 2 byte value.
virtual ~ActiveMQStreamMessage()
virtual short readShort() const
Reads a 16 bit signed short from the Stream message stream.
virtual void writeChar(char value)
Writes a char to the Stream message stream as a 1-byte value.
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data.
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
virtual std::string readString() const
Reads an ASCII String from the Stream message stream.
virtual void writeString(const std::string &value)
Writes an ASCII String to the Stream message stream.
virtual float readFloat() const
Reads a 32 bit float from the Stream message stream.
virtual int readBytes(std::vector< unsigned char > &value) const
Reads a byte array from the Stream message stream.
virtual void onSend()
Allows derived Message classes to perform tasks before a message is sent.
virtual char readChar() const
Reads a Char from the Stream message stream.
virtual void reset()
Puts the message body in read-only mode and repositions the stream of bytes to the beginning.
virtual long long readLong() const
Reads a 64 bit long from the Stream message stream.
virtual unsigned char readByte() const
Reads a Byte from the Stream message stream.
virtual void writeShort(short value)
Writes a signed short to the Stream message stream as a 2 byte value.
virtual ActiveMQStreamMessage * cloneDataStructure() const
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of ...
virtual void writeByte(unsigned char value)
Writes a byte to the Stream message stream as a 1-byte value.
virtual std::string toString() const
Returns a string containing the information for this DataStructure such as its type and value of its ...
virtual double readDouble() const
Reads a 64 bit double from the Stream message stream.
virtual void writeBytes(const std::vector< unsigned char > &value)
Writes a byte array to the Stream message stream using the vector size as the number of bytes to writ...
virtual void writeBoolean(bool value)
Writes a boolean to the Stream message stream as a 1-byte value.
Definition DataStructure.h:27
ValueType
Defines the Type Identifiers used to identify the type contained within a specific Message property o...
Definition Message.h:112
Definition ActiveMQBlobMessage.h:28
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition DestinationResolver.h:23
Definition ArrayPointer.h:432
#define const
Definition zconf.h:198