VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::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.

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

Public Member Functions

 DtStreamReader (unsigned char *buffer, int length, bool makeCopy=false)
 
virtual ~DtStreamReader ()
 
virtual bool readBool ()
 
virtual char readInt8 ()
 
virtual unsigned char readUInt8 ()
 
virtual short readInt16 ()
 
virtual unsigned short readUInt16 ()
 
virtual int readInt32 ()
 
virtual unsigned readUInt32 ()
 
virtual long long readInt64 ()
 
virtual unsigned long long readUInt64 ()
 
virtual float readSingle ()
 
virtual double readDouble ()
 
virtual std::string readString ()
 
virtual DtVector readVector ()
 
virtual DtTaitBryan readTaitBryan ()
 
DtQuaternion readQuaternion ()
 
DtEntityIdentifier readEntityId ()
 
DtEntityType readEntityType ()
 
unsigned charreadBytes (int length)
 
virtual void readBytes (unsigned char *buffer, int length)
 

Protected Member Functions

int decodeStringSize ()
 

Protected Attributes

unsigned charmyBuffer
 
unsigned charmyReadHead
 
int myLength
 
bool myShouldDelete
 

Constructor & Destructor Documentation

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

constructor makes a copy of the buffer to work on.

virtual makVrf::DtStreamReader::~DtStreamReader ( )
virtual

destructor

Member Function Documentation

virtual bool makVrf::DtStreamReader::readBool ( )
virtual

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

virtual char makVrf::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 makVrf::DtStreamReader::readUInt8 ( )
virtual

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

virtual short makVrf::DtStreamReader::readInt16 ( )
virtual

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

Reimplemented in makVrf::DtBigEndianStreamReader.

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

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

Reimplemented in makVrf::DtBigEndianStreamReader.

virtual int makVrf::DtStreamReader::readInt32 ( )
virtual

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

Reimplemented in makVrf::DtBigEndianStreamReader.

virtual unsigned makVrf::DtStreamReader::readUInt32 ( )
virtual

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

Reimplemented in makVrf::DtBigEndianStreamReader.

virtual long long makVrf::DtStreamReader::readInt64 ( )
virtual

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

Reimplemented in makVrf::DtBigEndianStreamReader.

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

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

Reimplemented in makVrf::DtBigEndianStreamReader.

virtual float makVrf::DtStreamReader::readSingle ( )
virtual

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

Reimplemented in makVrf::DtBigEndianStreamReader.

virtual double makVrf::DtStreamReader::readDouble ( )
virtual

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

Reimplemented in makVrf::DtBigEndianStreamReader.

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

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

virtual DtVector makVrf::DtStreamReader::readVector ( )
virtual

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

virtual DtTaitBryan makVrf::DtStreamReader::readTaitBryan ( )
virtual

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

DtQuaternion makVrf::DtStreamReader::readQuaternion ( )

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

DtEntityIdentifier makVrf::DtStreamReader::readEntityId ( )

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

DtEntityType makVrf::DtStreamReader::readEntityType ( )

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

unsigned char* makVrf::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 makVrf::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 makVrf::DtStreamReader::decodeStringSize ( )
protected

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

Member Data Documentation

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

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)