VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtStreamReader Class Reference

Instances of DtStreamReader decode values from a byte array. More...

+ Collaboration diagram for DtStreamReader:

Public Member Functions

 DtStreamReader (unsigned char *buffer, int length)
 constructor makes a copy of the buffer to work on.
virtual ~DtStreamReader ()
 destructor
bool readBool ()
 value readers return a value and increment the current position in the byte stream based on the size value
char readInt8 ()
 value readers return a value and increment the current position in the byte stream based on the size value
unsigned char readUInt8 ()
 value readers return a value and increment the current position in the byte stream based on the size value
short readInt16 ()
 value readers return a value and increment the current position in the byte stream based on the size value
unsigned short readUInt16 ()
 value readers return a value and increment the current position in the byte stream based on the size value
int readInt32 ()
 value readers return a value and increment the current position in the byte stream based on the size value
unsigned readUInt32 ()
 value readers return a value and increment the current position in the byte stream based on the size value
long long readInt64 ()
 value readers return a value and increment the current position in the byte stream based on the size value
unsigned long long readUInt64 ()
 value readers return a value and increment the current position in the byte stream based on the size value
float readSingle ()
 value readers return a value and increment the current position in the byte stream based on the size value
double readDouble ()
 value readers return a value and increment the current position in the byte stream based on the size value
std::string readString ()
 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

Detailed Description

Instances of DtStreamReader decode values from a byte array.

Constructor & Destructor Documentation

DtStreamReader::DtStreamReader ( unsigned char *  buffer,
int  length 
)

constructor makes a copy of the buffer to work on.

virtual DtStreamReader::~DtStreamReader ( )
virtual

destructor

Member Function Documentation

int DtStreamReader::decodeStringSize ( )
protected

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

bool DtStreamReader::readBool ( )

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

double DtStreamReader::readDouble ( )

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

short DtStreamReader::readInt16 ( )

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

int DtStreamReader::readInt32 ( )

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

long long DtStreamReader::readInt64 ( )

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

char DtStreamReader::readInt8 ( )

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

float DtStreamReader::readSingle ( )

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

std::string DtStreamReader::readString ( )

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

unsigned short DtStreamReader::readUInt16 ( )

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

unsigned DtStreamReader::readUInt32 ( )

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

unsigned long long DtStreamReader::readUInt64 ( )

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

unsigned char DtStreamReader::readUInt8 ( )

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

Member Data Documentation

unsigned char* DtStreamReader::myBuffer
protected
unsigned char* DtStreamReader::myReadHead
protected

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

Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)