TDME2 1.9.121
Public Member Functions | Private Attributes | List of all members
TMReaderInputStream Class Reference

TM reader input stream. More...

#include <tdme/engine/fileio/models/TMReader.h>

Collaboration diagram for TMReaderInputStream:
Collaboration graph

Public Member Functions

 TMReaderInputStream (const vector< uint8_t > *data)
 Constructor. More...
 
bool readBoolean ()
 Reads a boolean from input stream. More...
 
int8_t readByte ()
 Reads a byte from input stream. More...
 
int32_t readInt ()
 Reads a integer from input stream. More...
 
float readFloat ()
 Reads a float from input stream. More...
 
const string readString ()
 Reads a string from input stream. More...
 
void readFloatArray (array< float, 16 > &data)
 Reads a float array from input stream. More...
 
void readFloatArray (array< float, 9 > &data)
 Reads a float array from input stream. More...
 
void readFloatArray (array< float, 4 > &data)
 Reads a float array from input stream. More...
 
void readFloatArray (array< float, 3 > &data)
 Reads a float array from input stream. More...
 
void readFloatArray (array< float, 2 > &data)
 Reads a float array from input stream. More...
 
const vector< float > readFloatVector ()
 Reads a float array from input stream. More...
 

Private Attributes

const vector< uint8_t > * data
 
int position
 

Detailed Description

TM reader input stream.

Author
Andreas Drewke
Version
$Id$

Definition at line 48 of file TMReader.h.

Constructor & Destructor Documentation

◆ TMReaderInputStream()

TMReaderInputStream ( const vector< uint8_t > *  data)
inline

Constructor.

Parameters
datainput data array

Definition at line 57 of file TMReader.h.

Member Function Documentation

◆ readBoolean()

bool readBoolean ( )
inline

Reads a boolean from input stream.

Exceptions
modelfile IO exception
Returns
boolean

Definition at line 65 of file TMReader.h.

◆ readByte()

int8_t readByte ( )
inline

Reads a byte from input stream.

Exceptions
modelfile IO exception
tdme::engine::fileio::models::ModelFileIOException
Returns
byte

Definition at line 75 of file TMReader.h.

◆ readFloat()

float readFloat ( )
inline

Reads a float from input stream.

Exceptions
tdme::engine::fileio::models::ModelFileIOException
Returns
float

Definition at line 101 of file TMReader.h.

◆ readFloatArray() [1/5]

void readFloatArray ( array< float, 16 > &  data)
inline

Reads a float array from input stream.

Exceptions
tdme::engine::fileio::models::ModelFileIOException
Returns
float array

Definition at line 134 of file TMReader.h.

◆ readFloatArray() [2/5]

void readFloatArray ( array< float, 2 > &  data)
inline

Reads a float array from input stream.

Exceptions
tdme::engine::fileio::models::ModelFileIOException
Returns
float array

Definition at line 194 of file TMReader.h.

◆ readFloatArray() [3/5]

void readFloatArray ( array< float, 3 > &  data)
inline

Reads a float array from input stream.

Exceptions
tdme::engine::fileio::models::ModelFileIOException
Returns
float array

Definition at line 179 of file TMReader.h.

◆ readFloatArray() [4/5]

void readFloatArray ( array< float, 4 > &  data)
inline

Reads a float array from input stream.

Exceptions
tdme::engine::fileio::models::ModelFileIOException
Returns
float array

Definition at line 164 of file TMReader.h.

◆ readFloatArray() [5/5]

void readFloatArray ( array< float, 9 > &  data)
inline

Reads a float array from input stream.

Exceptions
tdme::engine::fileio::models::ModelFileIOException
Returns
float array

Definition at line 149 of file TMReader.h.

◆ readFloatVector()

const vector< float > readFloatVector ( )
inline

Reads a float array from input stream.

Exceptions
tdme::engine::fileio::models::ModelFileIOException
Returns
float array

Definition at line 209 of file TMReader.h.

◆ readInt()

int32_t readInt ( )
inline

Reads a integer from input stream.

Exceptions
tdme::engine::fileio::models::ModelFileIOException
Returns
int

Definition at line 87 of file TMReader.h.

◆ readString()

const string readString ( )
inline

Reads a string from input stream.

Exceptions
tdme::engine::fileio::models::ModelFileIOException
Returns
string

Definition at line 116 of file TMReader.h.

Member Data Documentation

◆ data

const vector<uint8_t>* data
private

Definition at line 50 of file TMReader.h.

◆ position

int position
private

Definition at line 51 of file TMReader.h.


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