18#ifndef _ACTIVEMQ_COMMANDS_ACTIVEMQBYTESMESSAGE_H_
19#define _ACTIVEMQ_COMMANDS_ACTIVEMQBYTESMESSAGE_H_
46 mutable std::auto_ptr<decaf::io::DataInputStream> dataIn;
51 std::auto_ptr<decaf::io::DataOutputStream> dataOut;
64 ActiveMQBytesMessage(
const ActiveMQBytesMessage&);
65 ActiveMQBytesMessage& operator=(
const ActiveMQBytesMessage&);
157 void initializeReading()
const;
159 void initializeWriting();
#define AMQCPP_API
Definition Config.h:30
static const unsigned char ID_ACTIVEMQBYTESMESSAGE
Definition ActiveMQBytesMessage.h:60
virtual void writeBytes(const std::vector< unsigned char > &value)
Writes a byte array to the bytes message stream using the vector size as the number of bytes to write...
virtual int readInt() const
Reads a 32 bit signed integer from the Bytes message stream.
virtual void reset()
Puts the message body in read-only mode and repositions the stream of bytes to the beginning.
virtual cms::BytesMessage * clone() const
Clones this message.
virtual char readChar() const
Reads a Char from the Bytes message stream.
virtual void onSend()
Allows derived Message classes to perform tasks before a message is sent.
virtual void writeFloat(float value)
Writes a float to the bytes message stream as a 4 byte value.
virtual void setBodyBytes(const unsigned char *buffer, int numBytes)
sets the bytes given to the message body.
virtual void writeChar(char value)
Writes a char to the bytes message stream as a 1-byte value.
virtual void writeUnsignedShort(unsigned short value)
Writes a unsigned short to the bytes message stream as a 2 byte value.
virtual float readFloat() const
Reads a 32 bit float from the Bytes message stream.
virtual int readBytes(std::vector< unsigned char > &value) const
Reads a byte array from the bytes message stream.
virtual std::string toString() const
Returns a string containing the information for this DataStructure such as its type and value of its ...
virtual ~ActiveMQBytesMessage()
virtual ActiveMQBytesMessage * cloneDataStructure() const
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of ...
virtual std::string readString() const
Reads an ASCII String from the Bytes message stream.
virtual unsigned char getDataStructureType() const
Get the DataStructure Type as defined in CommandTypes.h.
virtual unsigned char * getBodyBytes() const
Gets the bytes that are contained in this message and returns them in a newly allocated array that be...
virtual void writeDouble(double value)
Writes a double to the bytes message stream as a 8 byte value.
virtual void writeShort(short value)
Writes a signed short to the bytes message stream as a 2 byte value.
virtual bool readBoolean() const
Reads a Boolean from the Bytes message stream.
virtual std::string readUTF() const
Reads an UTF String from the BytesMessage stream.
virtual void writeBoolean(bool value)
Writes a boolean to the bytes message stream as a 1-byte value.
virtual void writeByte(unsigned char value)
Writes a byte to the bytes message stream as a 1-byte value.
virtual void writeInt(int value)
Writes a signed int to the bytes message stream as a 4 byte value.
virtual void writeUTF(const std::string &value)
Writes an UTF String to the BytesMessage stream.
virtual void writeLong(long long value)
Writes a long long to the bytes message stream as a 8 byte value.
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
virtual unsigned char readByte() const
Reads a Byte from the Bytes message stream.
virtual void writeString(const std::string &value)
Writes an ASCII String to the Bytes message stream.
virtual unsigned short readUnsignedShort() const
Reads a 16 bit unsigned short from the Bytes message stream.
virtual long long readLong() const
Reads a 64 bit long from the Bytes message stream.
virtual void clearBody()
Clears out the body of the message.
virtual double readDouble() const
Reads a 64 bit double from the Bytes message stream.
virtual short readShort() const
Reads a 16 bit signed short from the Bytes message stream.
virtual int getBodyLength() const
Returns the number of bytes contained in the body of this message.
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data.
ActiveMQMessageTemplate()
Definition ActiveMQMessageTemplate.h:48
Definition DataStructure.h:27
Definition ByteArrayOutputStream.h:31
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