18#ifndef _CMS_STREAMMESSAGE_H_
19#define _CMS_STREAMMESSAGE_H_
154 virtual int readBytes(std::vector<unsigned char>& value)
const = 0;
166 virtual void writeBytes(
const std::vector<unsigned char>& value) = 0;
199 virtual int readBytes(
unsigned char* buffer,
int length)
const = 0;
215 virtual void writeBytes(
const unsigned char* value,
int offset,
int length) = 0;
Root of all messages.
Definition Message.h:88
ValueType
Defines the Type Identifiers used to identify the type contained within a specific Message property o...
Definition Message.h:112
Interface for a StreamMessage.
Definition StreamMessage.h:61
virtual void writeShort(short value)=0
Writes a signed short to the Stream message stream as a 2 byte value.
virtual void writeBytes(const std::vector< unsigned char > &value)=0
Writes a byte array to the Stream message stream using the vector size as the number of bytes to writ...
virtual double readDouble() const =0
Reads a 64 bit double from the Stream message stream.
virtual void reset()=0
Puts the message body in read-only mode and repositions the stream of bytes to the beginning.
virtual long long readLong() const =0
Reads a 64 bit long from the Stream message stream.
virtual void writeLong(long long value)=0
Writes a long long to the Stream message stream as a 8 byte value.
virtual void writeByte(unsigned char value)=0
Writes a byte to the Stream message stream as a 1-byte value.
virtual int readInt() const =0
Reads a 32 bit signed integer from the Stream message stream.
virtual void writeChar(char value)=0
Writes a char to the Stream message stream as a 1-byte value.
virtual ValueType getNextValueType() const =0
Returns the value type for the element in the StreamMessage.
virtual unsigned char readByte() const =0
Reads a Byte from the Stream message stream.
virtual char readChar() const =0
Reads a Char from the Stream message stream.
virtual void writeBytes(const unsigned char *value, int offset, int length)=0
Writes a portion of a byte array to the Stream message stream.
virtual void writeDouble(double value)=0
Writes a double to the Stream message stream as a 8 byte value.
virtual bool readBoolean() const =0
Reads a Boolean from the Stream message stream.
virtual void writeString(const std::string &value)=0
Writes an ASCII String to the Stream message stream.
virtual short readShort() const =0
Reads a 16 bit signed short from the Stream message stream.
virtual std::string readString() const =0
Reads an ASCII String from the Stream message stream.
virtual void writeBoolean(bool value)=0
Writes a boolean to the Stream message stream as a 1-byte value.
virtual float readFloat() const =0
Reads a 32 bit float from the Stream message stream.
virtual void writeUnsignedShort(unsigned short value)=0
Writes a unsigned short to the Stream message stream as a 2 byte value.
virtual int readBytes(std::vector< unsigned char > &value) const =0
Reads a byte array from the Stream message stream.
virtual void writeFloat(float value)=0
Writes a float to the Stream message stream as a 4 byte value.
virtual void writeInt(int value)=0
Writes a signed int to the Stream message stream as a 4 byte value.
virtual int readBytes(unsigned char *buffer, int length) const =0
Reads a portion of the Stream message stream.
virtual unsigned short readUnsignedShort() const =0
Reads a 16 bit unsigned short from the Stream message stream.
#define CMS_API
Definition Config.h:31
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition DestinationResolver.h:23