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

TM writer output stream. More...

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

Collaboration diagram for TMWriterOutputStream:
Collaboration graph

Public Member Functions

 TMWriterOutputStream (vector< uint8_t > *data)
 Constructor. More...
 
vector< uint8_t > * getData ()
 Get data. More...
 
void writeBoolean (bool b)
 Writes a boolean to output stream. More...
 
void writeByte (uint8_t b)
 Writes a byte to output stream. More...
 
void writeInt (int32_t i)
 Writes a integer to output stream. More...
 
void writeFloat (float f)
 Writes a float to output stream. More...
 
void writeString (const string &s)
 Writes a string to output stream. More...
 
void writeFloatArray (const array< float, 2 > &f)
 Writes a float array to output stream. More...
 
void writeFloatArray (const array< float, 3 > &f)
 Writes a float array to output stream. More...
 
void writeFloatArray (const array< float, 4 > &f)
 Writes a float array to output stream. More...
 
void writeFloatArray (const array< float, 9 > &f)
 Writes a float array to output stream. More...
 
void writeFloatArray (const array< float, 16 > &f)
 Writes a float array to output stream. More...
 
void writeFloatArray (const vector< float > &f)
 Writes a float array to output stream. More...
 
void writeUInt8tArray (const vector< uint8_t > &d)
 Writes a uint8_t array to output stream, note that no size information is given in this case. More...
 

Private Attributes

vector< uint8_t > * data
 

Detailed Description

TM writer output stream.

Author
Andreas Drewke
Version
$Id$

Definition at line 49 of file TMWriter.h.

Constructor & Destructor Documentation

◆ TMWriterOutputStream()

TMWriterOutputStream ( vector< uint8_t > *  data)
inline

Constructor.

Parameters
datadata vector to write TM to

Definition at line 58 of file TMWriter.h.

Member Function Documentation

◆ getData()

vector< uint8_t > * getData ( )
inline

Get data.

Returns
data

Definition at line 66 of file TMWriter.h.

◆ writeBoolean()

void writeBoolean ( bool  b)
inline

Writes a boolean to output stream.

Exceptions
modelfile IO exception
Parameters
bboolean

Definition at line 75 of file TMWriter.h.

◆ writeByte()

void writeByte ( uint8_t  b)
inline

Writes a byte to output stream.

Exceptions
modelfile IO exception
Parameters
bbyte

Definition at line 84 of file TMWriter.h.

◆ writeFloat()

void writeFloat ( float  f)
inline

Writes a float to output stream.

Parameters
ffloat
Exceptions
modelfile IO exception

Definition at line 105 of file TMWriter.h.

◆ writeFloatArray() [1/6]

void writeFloatArray ( const array< float, 16 > &  f)
inline

Writes a float array to output stream.

Parameters
ffloat array
Exceptions
modelfile IO exception

Definition at line 180 of file TMWriter.h.

◆ writeFloatArray() [2/6]

void writeFloatArray ( const array< float, 2 > &  f)
inline

Writes a float array to output stream.

Parameters
ffloat array
Exceptions
modelfile IO exception

Definition at line 132 of file TMWriter.h.

◆ writeFloatArray() [3/6]

void writeFloatArray ( const array< float, 3 > &  f)
inline

Writes a float array to output stream.

Parameters
ffloat array
Exceptions
modelfile IO exception

Definition at line 144 of file TMWriter.h.

◆ writeFloatArray() [4/6]

void writeFloatArray ( const array< float, 4 > &  f)
inline

Writes a float array to output stream.

Parameters
ffloat array
Exceptions
modelfile IO exception

Definition at line 156 of file TMWriter.h.

◆ writeFloatArray() [5/6]

void writeFloatArray ( const array< float, 9 > &  f)
inline

Writes a float array to output stream.

Parameters
ffloat array
Exceptions
modelfile IO exception

Definition at line 168 of file TMWriter.h.

◆ writeFloatArray() [6/6]

void writeFloatArray ( const vector< float > &  f)
inline

Writes a float array to output stream.

Parameters
ffloat array
Exceptions
modelfile IO exception

Definition at line 192 of file TMWriter.h.

◆ writeInt()

void writeInt ( int32_t  i)
inline

Writes a integer to output stream.

Exceptions
modelfile IO exception
Parameters
iint

Definition at line 93 of file TMWriter.h.

◆ writeString()

void writeString ( const string &  s)
inline

Writes a string to output stream.

Parameters
sstring
Exceptions
modelfile IO exception

Definition at line 115 of file TMWriter.h.

◆ writeUInt8tArray()

void writeUInt8tArray ( const vector< uint8_t > &  d)
inline

Writes a uint8_t array to output stream, note that no size information is given in this case.

Parameters
duint8_t array
Exceptions
modelfile IO exception

Definition at line 204 of file TMWriter.h.

Member Data Documentation

◆ data

vector<uint8_t>* data
private

Definition at line 51 of file TMWriter.h.


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