VR-Link API Documentation for DIS
 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

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

+ Collaboration diagram for DtStreamReader:

Public Member Functions

 DtStreamReader (unsigned char *buffer, int length, bool copyInternally=true)
 constructor works on the data given and does not make a copy
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 int 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
DtVector readVector ()
 value readers return a value and increment the current position in the byte stream based on the size value
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

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 myBufferAlloced

Detailed Description

Instances of DtStreamReader decode values from a byte array.

Constructor & Destructor Documentation

DtStreamReader::DtStreamReader ( unsigned char *  buffer,
int  length,
bool  copyInternally = true 
)

constructor works on the data given and does not make a copy

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

Referenced by EmitterStateMessage::Beam::deserialize().

unsigned char* DtStreamReader::readBytes ( int  length)

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

Referenced by TransmitterStateMessage::BeamAntennaPattern::deserialize().

DtEntityIdentifier DtStreamReader::readEntityId ( )

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

DtEntityType DtStreamReader::readEntityType ( )

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

Referenced by EntityStateMessage::AttPart::deserialize().

int DtStreamReader::readInt32 ( )
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

Referenced by EntityStateMessage::AttPart::deserialize().

DtQuaternion DtStreamReader::readQuaternion ( )

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

float DtStreamReader::readSingle ( )
std::string DtStreamReader::readString ( )

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

Referenced by AttributeChangeRequestMessage::AttributePair::deserialize(), and EmitterStateMessage::Beam::deserialize().

DtTaitBryan DtStreamReader::readTaitBryan ( )

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

Referenced by EmitterStateMessage::Beam::deserialize(), and TransmitterStateMessage::ModulationType::deserialize().

unsigned int DtStreamReader::readUInt32 ( )

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

Referenced by EmitterStateMessage::Beam::deserialize().

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 ( )
DtVector DtStreamReader::readVector ( )

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
bool DtStreamReader::myBufferAlloced
protected
int DtStreamReader::myLength
protected
unsigned char* DtStreamReader::myReadHead
protected

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

Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)