14#include <vlpi/entityIdentifier.h>
15#include <vlpi/entityType.h>
16#include <matrix/vlVector.h>
17#include <matrix/vlTaitBryan.h>
18#include <matrix/vlQuaternion.h>
131 virtual void readBytes(
unsigned char* buffer,
int length);
virtual float readSingle()
Reads a 32-bit floating point value in big endian format.
DtBigEndianStreamReader(unsigned char *buffer, int length, bool makeCopy=false)
Constructor for big endian stream reader.
virtual ~DtBigEndianStreamReader()
Virtual destructor.
virtual long long readInt64()
Reads a 64-bit signed integer in big endian format.
virtual short readInt16()
Reads a 16-bit signed integer in big endian format.
virtual unsigned short readUInt16()
Reads a 16-bit unsigned integer in big endian format.
virtual int readInt32()
Reads a 32-bit signed integer in big endian format.
virtual unsigned readUInt32()
Reads a 32-bit unsigned integer in big endian format.
virtual unsigned long long readUInt64()
Reads a 64-bit unsigned integer in big endian format.
virtual double readDouble()
Reads a 64-bit floating point value in big endian format.
void writeInt16(short num)
Writes a 16-bit signed integer in big endian format.
void writeUInt16(unsigned short num)
Writes a 16-bit unsigned integer in big endian format.
DtBigEndianStreamWriter(unsigned char *buffer, int length)
Constructor that uses an existing buffer.
void writeInt64(long long num)
Writes a 64-bit signed integer in big endian format.
void writeInt32(int num)
Writes a 32-bit signed integer in big endian format.
void writeUInt64(unsigned long long num)
Writes a 64-bit unsigned integer in big endian format.
void writeDouble(double num)
Writes a 64-bit floating point value in big endian format.
DtBigEndianStreamWriter(int length)
Constructor that creates an internal buffer.
void writeSingle(float num)
Writes a 32-bit floating point value in big endian format.
virtual ~DtBigEndianStreamWriter()
Virtual destructor.
void writeUInt32(unsigned int num)
Writes a 32-bit unsigned integer in big endian format.
virtual char readInt8()
Reads an 8-bit signed integer.
virtual double readDouble()
Reads a 64-bit floating point value.
virtual bool readBool()
Reads a boolean value.
DtQuaternion readQuaternion()
Reads a quaternion.
virtual DtVector readVector()
Reads a 3D vector.
DtStreamReader(unsigned char *buffer, int length, bool makeCopy=false)
Constructor for stream reader.
int decodeStringSize()
Determines the size of a string from a variable length encoded integer.
virtual DtTaitBryan readTaitBryan()
Reads a Tait-Bryan angle set.
int myLength
Total length of the buffer in bytes.
Definition byteStream.h:147
DtEntityType readEntityType()
Reads an entity type.
virtual unsigned readUInt32()
Reads a 32-bit unsigned integer.
virtual void readBytes(unsigned char *buffer, int length)
Reads bytes into a supplied buffer.
virtual unsigned short readUInt16()
Reads a 16-bit unsigned integer.
DtEntityIdentifier readEntityId()
Reads an entity identifier.
unsigned char * myReadHead
Current read position within the buffer.
Definition byteStream.h:144
virtual unsigned long long readUInt64()
Reads a 64-bit unsigned integer.
virtual float readSingle()
Reads a 32-bit floating point value.
virtual long long readInt64()
Reads a 64-bit signed integer.
virtual int readInt32()
Reads a 32-bit signed integer.
virtual ~DtStreamReader()
Virtual destructor.
bool myShouldDelete
Flag indicating if the buffer should be deleted on destruction.
Definition byteStream.h:150
unsigned char * readBytes(int length)
Allocates and reads bytes into a new buffer.
virtual std::string readString()
Reads a string.
virtual short readInt16()
Reads a 16-bit signed integer.
virtual unsigned char readUInt8()
Reads an 8-bit unsigned integer.
unsigned char * myBuffer
Pointer to the beginning of the buffer.
Definition byteStream.h:141
virtual void writeQuaternion(const DtQuaternion &q)
Writes a quaternion.
virtual void writeInt32(int num)
Writes a 32-bit signed integer.
virtual void writeInt64(long long num)
Writes a 64-bit signed integer.
virtual void writeVector(DtVector &vec)
Writes a 3D vector.
virtual void writeSingle(float num)
Writes a 32-bit floating point value.
bool myShouldDelete
Flag indicating if the buffer should be deleted on destruction.
Definition byteStream.h:287
virtual void writeUInt8(unsigned char num)
Writes an 8-bit unsigned integer.
virtual void writeInt16(short num)
Writes a 16-bit signed integer.
virtual void writeBytes(unsigned char *buffer, int length)
Writes raw bytes.
unsigned char * myBuffer
Pointer to the beginning of the buffer.
Definition byteStream.h:278
virtual void writeEntityId(const DtEntityIdentifier &id)
Writes an entity identifier.
DtStreamWriter(int length)
Constructor that creates an internal buffer.
virtual void writeUInt64(unsigned long long num)
Writes a 64-bit unsigned integer.
virtual void writeUInt32(unsigned int num)
Writes a 32-bit unsigned integer.
DtStreamWriter(unsigned char *buffer, int length)
Constructor that uses an existing buffer.
virtual void writeBool(bool b)
Writes a boolean value.
virtual void writeDouble(double num)
Writes a 64-bit floating point value.
virtual void writeTaitBryan(DtTaitBryan &tb)
Writes a Tait-Bryan angle set.
unsigned char * myWriteHead
Current write position within the buffer.
Definition byteStream.h:281
virtual unsigned char * buffer()
Gets a pointer to the internal buffer.
virtual ~DtStreamWriter()
Virtual destructor.
virtual int length()
Gets the current write position as a length.
virtual void writeInt8(char num)
Writes an 8-bit signed integer.
virtual void writeUInt16(unsigned short num)
Writes a 16-bit unsigned integer.
virtual void writeString(std::string &str)
Writes a string.
int myLength
Total length of the buffer in bytes.
Definition byteStream.h:284
virtual void writeEntityType(const DtEntityType &type)
Writes an entity type.
void encodeStringSize(int size)
Encodes the size of the string as a variable length integer.
Defines export macros for the RadarFx Shared library.
#define RFX_DLL_SHARED
Export/import macro for non-Windows platforms (empty)
Definition export.h:25
Definition radarFxConnectorDriver.h:21
RFX_DLL_SHARED int DtEncodedStringLength(std::string str)
Calculates the size in bytes of the string when encoded.