activemq-cpp-3.6.0
Main Page
Namespaces
Data Structures
Files
File List
Globals
StreamMessage.h
Go to the documentation of this file.
1
18
#ifndef _CMS_STREAMMESSAGE_H_
19
#define _CMS_STREAMMESSAGE_H_
20
21
#include <
cms/Config.h
>
22
#include <
cms/Message.h
>
23
#include <
cms/CMSException.h
>
24
#include <
cms/MessageNotReadableException.h
>
25
#include <
cms/MessageNotWriteableException.h
>
26
#include <
cms/MessageFormatException.h
>
27
#include <
cms/MessageEOFException.h
>
28
29
namespace
cms {
30
61
class
CMS_API
StreamMessage
:
public
Message
{
62
public
:
63
64
virtual
~
StreamMessage
();
65
80
virtual
ValueType
getNextValueType()
const
= 0;
81
92
virtual
bool
readBoolean()
const
= 0;
93
105
virtual
void
writeBoolean(
bool
value) = 0;
106
117
virtual
unsigned
char
readByte()
const
= 0;
118
128
virtual
void
writeByte(
unsigned
char
value) = 0;
129
154
virtual
int
readBytes(std::vector<unsigned char>& value)
const
= 0;
155
166
virtual
void
writeBytes(
const
std::vector<unsigned char>& value) = 0;
167
199
virtual
int
readBytes(
unsigned
char
* buffer,
int
length)
const
= 0;
200
215
virtual
void
writeBytes(
const
unsigned
char
* value,
int
offset,
int
length) = 0;
216
227
virtual
char
readChar()
const
= 0;
228
238
virtual
void
writeChar(
char
value) = 0;
239
250
virtual
float
readFloat()
const
= 0;
251
260
virtual
void
writeFloat(
float
value) = 0;
261
272
virtual
double
readDouble()
const
= 0;
273
282
virtual
void
writeDouble(
double
value) = 0;
283
294
virtual
short
readShort()
const
= 0;
295
305
virtual
void
writeShort(
short
value) = 0;
306
317
virtual
unsigned
short
readUnsignedShort()
const
= 0;
318
328
virtual
void
writeUnsignedShort(
unsigned
short
value) = 0;
329
340
virtual
int
readInt()
const
= 0;
341
351
virtual
void
writeInt(
int
value) = 0;
352
363
virtual
long
long
readLong()
const
= 0;
364
374
virtual
void
writeLong(
long
long
value) = 0;
375
386
virtual
std::string readString()
const
= 0;
387
397
virtual
void
writeString(
const
std::string& value) = 0;
398
406
virtual
void
reset() = 0;
407
408
};
409
410
}
411
412
#endif
/*_CMS_STREAMMESSAGE_H_*/
src
main
cms
StreamMessage.h
Generated on Mon Mar 4 2013 10:25:45 for activemq-cpp-3.6.0 by
1.8.1.2