VR-Forces Development_Version Class Documentation
 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
trpgMemReadBuffer Class Reference
Inheritance diagram for trpgMemReadBuffer:
Inheritance graph
[legend]

Public Member Functions

 trpgMemReadBuffer (trpgEndian)
 Memory read buffers must be initialized with an endianness.
 ~trpgMemReadBuffer (void)
bool isEmpty (void)
 Return true if we're out of data.
void SetLength (int)
 Sets the size of this read buffer.
int GetLength (void)
 Gets the size of the buffer.
charGetDataPtr (void)
- Public Member Functions inherited from trpgReadBuffer
virtual ~trpgReadBuffer (void)
virtual bool Get (int32 &)
virtual bool Get (int64 &)
virtual bool Get (char *, int)
virtual bool Get (std::string &)
virtual bool Get (float32 &)
virtual bool Get (float64 &)
virtual bool Get (bool &)
virtual bool Get (uint8 &)
virtual bool Get (trpgToken &)
virtual bool GetArray (int, float32 **)
virtual bool GetArray (int, float64 **)
virtual bool GetArray (int, int32 **)
virtual bool GetArray (int, trpgColor **)
virtual bool GetArray (int, char **)
virtual bool Get (trpg2iPoint &)
virtual bool Get (trpg2dPoint &)
virtual bool Get (trpg3dPoint &)
virtual bool Get (trpgColor &)
virtual bool GetToken (trpgToken &, int32 &)
virtual void PushLimit (int)
virtual void PopLimit (void)
virtual bool SkipToLimit (void)
virtual bool TestLimit (int)
 MD: making this public to unravel trpgModel read problem.

Protected Member Functions

bool GetData (char *, int)
 Endiannees of the CPU.
bool GetDataRef (char **, int)
 Retrieve the given amount of data.
bool Skip (int)
 Retrieve a pointer to the given array.
- Protected Member Functions inherited from trpgReadBuffer
virtual void UpdateLimits (int)

Protected Attributes

int len
 Skip over the given amount.
int totLen
 Data Length.
int pos
 Total allocated length.
chardata
 Current position.
- Protected Attributes inherited from trpgReadBuffer
trpgEndian ness
trpgEndian cpuNess
 Endianness of the source we're reading.
std::vector< int > limits

Constructor & Destructor Documentation

trpgMemReadBuffer::trpgMemReadBuffer ( trpgEndian  )

Memory read buffers must be initialized with an endianness.

trpgMemReadBuffer::~trpgMemReadBuffer ( void  )

Member Function Documentation

bool trpgMemReadBuffer::isEmpty ( void  )
virtual

Return true if we're out of data.

Implements trpgReadBuffer.

void trpgMemReadBuffer::SetLength ( int  )

Sets the size of this read buffer.

int trpgMemReadBuffer::GetLength ( void  )
inline

Gets the size of the buffer.

char* trpgMemReadBuffer::GetDataPtr ( void  )
bool trpgMemReadBuffer::GetData ( char ,
int   
)
protectedvirtual

Endiannees of the CPU.

Implements trpgReadBuffer.

bool trpgMemReadBuffer::GetDataRef ( char **  ,
int   
)
protectedvirtual

Retrieve the given amount of data.

Implements trpgReadBuffer.

bool trpgMemReadBuffer::Skip ( int  )
protectedvirtual

Retrieve a pointer to the given array.

Implements trpgReadBuffer.

Member Data Documentation

int trpgMemReadBuffer::len
protected

Skip over the given amount.

int trpgMemReadBuffer::totLen
protected

Data Length.

int trpgMemReadBuffer::pos
protected

Total allocated length.

char* trpgMemReadBuffer::data
protected

Current position.


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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)