#include <gls_glo_file.h>
The GlsGloFileAttribute class. A wrapper between the binary format and the application.
◆ GlsGloFileAttribute()
Constructor
- Parameters
-
reader | An observing pointer to the GLO file reader. |
◆ Enumeration()
unsigned int Enumeration |
( |
| ) |
|
|
inline |
- Returns
- The attribute type.
◆ GetBoolean()
- Returns
- The underlying boolean value.
◆ GetByte()
- Returns
- The underlying byte value.
◆ GetBytes() [1/2]
- Returns
- The underlying C string value based on the size of the attribute.
◆ GetBytes() [2/2]
void GetBytes |
( |
const unsigned int |
size, |
|
|
void * |
data |
|
) |
| |
|
inline |
Get the underlying C string value.
- Parameters
-
size | The size of the attribute. |
data | A pointer to a valid memory region where the string will be copied. |
◆ GetColor() [1/2]
- Returns
- The underlying color value.
◆ GetColor() [2/2]
Get the underlying Color value.
- Parameters
-
rval | The returned underlying color. |
◆ GetDouble()
- Returns
- The underlying double value.
◆ GetFloat()
- Returns
- The underlying float value.
◆ GetInt()
- Returns
- The underlying int value.
◆ GetMaterialIndices()
- Returns
- The underlying material indices list.
◆ GetShort()
- Returns
- The underlying short value.
◆ GetString()
std::string GetString |
( |
| ) |
|
|
inline |
- Returns
- The underlying string based on the size of the attribute.
◆ GetUnsignedByte()
unsigned char GetUnsignedByte |
( |
| ) |
|
|
inline |
- Returns
- The underlying unsigned byte value.
◆ GetUnsignedInt()
unsigned int GetUnsignedInt |
( |
| ) |
|
|
inline |
- Returns
- The underlying unsigned int value.
◆ GetUnsignedShort()
unsigned short GetUnsignedShort |
( |
| ) |
|
|
inline |
- Returns
- The underlying unsigned short value.
◆ GetVector()
void GetVector |
( |
Vector & |
rval | ) |
|
|
inline |
Get the underlying Vector object.
- Parameters
-
rval | The returned underlying vector. |
◆ GetVertex()
void GetVertex |
( |
Vertex & |
rval | ) |
|
|
inline |
Get the underlying Vertex object.
- Parameters
-
rval | The returned underlying vertex. |
◆ SetEnumeration()
void SetEnumeration |
( |
const unsigned int |
enumeration | ) |
|
|
inline |
Set the type of this attribute.
- Parameters
-
enumeration | The attribute type to set. |
◆ SetSize()
void SetSize |
( |
const unsigned int |
size | ) |
|
|
inline |
Set the size of this attribute in bytes.
- Parameters
-
◆ Size()
- Returns
- The attribute size in bytes.
The documentation for this class was generated from the following file: