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;
63 virtual
unsigned char getDataStructureType()
const;
73 virtual
void onSend();
79 virtual
void clearBody();
87 virtual
bool readBoolean()
const;
89 virtual
void writeBoolean(
bool value);
91 virtual
unsigned char readByte()
const;
93 virtual
void writeByte(
unsigned char value);
95 virtual
int readBytes(
std::vector<
unsigned char>& value)
const;
97 virtual
void writeBytes(
const std::vector<
unsigned char>& value);
99 virtual
int readBytes(
unsigned char* buffer,
int length)
const;
101 virtual
void writeBytes(
const unsigned char* value,
int offset,
int length);
105 virtual
void writeChar(
char value);
109 virtual
void writeFloat(
float value);
113 virtual
void writeDouble(
double value);
117 virtual
void writeShort(
short value);
119 virtual
unsigned short readUnsignedShort()
const;
121 virtual
void writeUnsignedShort(
unsigned short value);
125 virtual
void writeInt(
int value);
129 virtual
void writeLong(
long long value);
133 virtual
void writeString(
const std::
string& value);
139 void initializeReading()
const;
141 void initializeWriting();
#define AMQCPP_API
Definition: Config.h:30
Definition: ActiveMQMessageTemplate.h:41
Definition: ActiveMQStreamMessage.h:40
static const unsigned char ID_ACTIVEMQSTREAMMESSAGE
Definition: ActiveMQStreamMessage.h:50
virtual ~ActiveMQStreamMessage()
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
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