RadarFX API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makRadarFx::DtStreamReader Class Reference

Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream is in little endian format. More...

Inheritance diagram for makRadarFx::DtStreamReader:
Inheritance graph
[legend]

Public Member Functions

 DtStreamReader (unsigned char *buffer, int length, bool makeCopy=false)
 constructor makes a copy of the buffer to work on.
virtual ~DtStreamReader ()
 destructor
virtual bool readBool ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual char readInt8 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual unsigned char readUInt8 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual short readInt16 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual unsigned short readUInt16 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual int readInt32 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual unsigned readUInt32 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual long long readInt64 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual unsigned long long readUInt64 ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual float readSingle ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual double readDouble ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual std::string readString ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual DtVector readVector ()
 value readers return a value and increment the current position in the byte stream based on the size value
virtual DtTaitBryan readTaitBryan ()
 value readers return a value and increment the current position in the byte stream based on the size value
DtQuaternion readQuaternion ()
 value readers return a value and increment the current position in the byte stream based on the size value
DtEntityIdentifier readEntityId ()
 value readers return a value and increment the current position in the byte stream based on the size value
DtEntityType readEntityType ()
 value readers return a value and increment the current position in the byte stream based on the size value
unsigned char * readBytes (int length)
 value readers return a value and increment the current position in the byte stream based on the size value
virtual void readBytes (unsigned char *buffer, int length)
 value readers return a value and increment the current position in the byte stream based on the size value

Protected Member Functions

int decodeStringSize ()
 determine the size of a string from a variable length encoded integer

Protected Attributes

unsigned char * myBuffer
unsigned char * myReadHead
int myLength
bool myShouldDelete

Detailed Description

Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream is in little endian format.

Constructor & Destructor Documentation

makRadarFx::DtStreamReader::DtStreamReader ( unsigned char *  buffer,
int  length,
bool  makeCopy = false 
)

constructor makes a copy of the buffer to work on.

virtual makRadarFx::DtStreamReader::~DtStreamReader ( )
virtual

destructor

Member Function Documentation

virtual bool makRadarFx::DtStreamReader::readBool ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

virtual char makRadarFx::DtStreamReader::readInt8 ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

virtual unsigned char makRadarFx::DtStreamReader::readUInt8 ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

virtual short makRadarFx::DtStreamReader::readInt16 ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented in makRadarFx::DtBigEndianStreamReader.

virtual unsigned short makRadarFx::DtStreamReader::readUInt16 ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented in makRadarFx::DtBigEndianStreamReader.

virtual int makRadarFx::DtStreamReader::readInt32 ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented in makRadarFx::DtBigEndianStreamReader.

virtual unsigned makRadarFx::DtStreamReader::readUInt32 ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented in makRadarFx::DtBigEndianStreamReader.

virtual long long makRadarFx::DtStreamReader::readInt64 ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented in makRadarFx::DtBigEndianStreamReader.

virtual unsigned long long makRadarFx::DtStreamReader::readUInt64 ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented in makRadarFx::DtBigEndianStreamReader.

virtual float makRadarFx::DtStreamReader::readSingle ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented in makRadarFx::DtBigEndianStreamReader.

virtual double makRadarFx::DtStreamReader::readDouble ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

Reimplemented in makRadarFx::DtBigEndianStreamReader.

virtual std::string makRadarFx::DtStreamReader::readString ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

virtual DtVector makRadarFx::DtStreamReader::readVector ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

virtual DtTaitBryan makRadarFx::DtStreamReader::readTaitBryan ( )
virtual

value readers return a value and increment the current position in the byte stream based on the size value

DtQuaternion makRadarFx::DtStreamReader::readQuaternion ( )

value readers return a value and increment the current position in the byte stream based on the size value

DtEntityIdentifier makRadarFx::DtStreamReader::readEntityId ( )

value readers return a value and increment the current position in the byte stream based on the size value

DtEntityType makRadarFx::DtStreamReader::readEntityType ( )

value readers return a value and increment the current position in the byte stream based on the size value

unsigned char* makRadarFx::DtStreamReader::readBytes ( int  length)

value readers return a value and increment the current position in the byte stream based on the size value

virtual void makRadarFx::DtStreamReader::readBytes ( unsigned char *  buffer,
int  length 
)
virtual

value readers return a value and increment the current position in the byte stream based on the size value

int makRadarFx::DtStreamReader::decodeStringSize ( )
protected

determine the size of a string from a variable length encoded integer

Member Data Documentation

unsigned char* makRadarFx::DtStreamReader::myBuffer
protected
unsigned char* makRadarFx::DtStreamReader::myReadHead
protected
int makRadarFx::DtStreamReader::myLength
protected
bool makRadarFx::DtStreamReader::myShouldDelete
protected

The documentation for this class was generated from the following file:


Copyright © 2024 MAK Technologies, Inc. All Rights Reserved (www.mak.com)