#include <gls_glo_file.h>
|
std::string | _filename |
| The file name of this GLO file.
|
|
bool | _initialized |
| If true, the file is ready for reading.
|
|
FILE * | _in |
| The OS file handle for this GLO file.
|
|
unsigned int | _numberOfObjectRecords |
| The number of objects described by this GLO file.
|
|
unsigned int | _glsMajor |
| The major version of GL Studio that generated this GLO file.
|
|
unsigned int | _glsMinor |
| The minor version of GL Studio that generated this GLO file.
|
|
unsigned int | _glsBuild |
| The build version of GL Studio that generated this GLO file.
|
|
unsigned char | _timestamp [GLO_FILE_TIMESTAMP_SIZE] |
| The timestamp when this file was generated.
|
|
GloFileHeader | _header |
| The parsed file header data.
|
|
char * | _fileData |
| Pointer holding the all data read in.
|
|
const char * | _fileDataPointer |
| Current read position within the GLO data.
|
|
The Reader class. Handles input of GLS property values from the GLO file format to the application.
◆ Reader()
Reader |
( |
const std::string & |
filename, |
|
|
const bool |
open |
|
) |
| |
Create a GLO file reader for the given file.
- Parameters
-
filename | The file name to read from. |
open | If true, the file will be opened on construction. |
◆ GetBoolean()
- Returns
- A boolean value read from the GLO file.
◆ GetByte()
- Returns
- A single byte read from the GLO file.
◆ GetBytes()
void GetBytes |
( |
const unsigned int |
size, |
|
|
char ** |
data |
|
) |
| |
|
inline |
Read the specified number of bytes from the GLO file.
- Parameters
-
size | The number of bytes to read. |
data | A pointer to a valid memory region where the bytes will be copied. |
◆ GetColor()
- Returns
- A color read from the GLO file.
◆ GetDouble()
- Returns
- A double read from the GLO file.
◆ GetFilename()
const std::string & GetFilename |
( |
| ) |
|
|
inline |
- Returns
- The file name of this GLO file.
◆ GetFloat()
- Returns
- A float read from the GLO file.
◆ GetGLStudioBuildNumber()
unsigned int GetGLStudioBuildNumber |
( |
| ) |
|
|
inline |
- Returns
- The build version of the editor that generated this file.
◆ GetGLStudioVersionMajor()
unsigned int GetGLStudioVersionMajor |
( |
| ) |
|
|
inline |
- Returns
- The major version of the editor that generated this file.
◆ GetGLStudioVersionMinor()
unsigned int GetGLStudioVersionMinor |
( |
| ) |
|
|
inline |
- Returns
- The minor version of the editor that generated this file.
◆ GetInt()
- Returns
- An int read from the GLO file.
◆ GetMaterialIndices()
- Returns
- A list of material indices read from the GLO file.
◆ GetNumberOfObjectRecords()
unsigned int GetNumberOfObjectRecords |
( |
| ) |
|
|
inline |
- Returns
- The number of object records in this file.
◆ GetShort()
- Returns
- A short read from the GLO file.
◆ GetString()
std::string GetString |
( |
const unsigned int |
size | ) |
|
|
inline |
Read a string of the specified size from the file.
- Parameters
-
size | The length in bytes to read. |
- Returns
- The string that was read.
◆ GetTimestamp()
unsigned char * GetTimestamp |
( |
| ) |
|
|
inline |
- Returns
- The timestamp of this file's creation.
◆ GetUnsignedByte()
unsigned char GetUnsignedByte |
( |
| ) |
|
|
inline |
- Returns
- A single unsigned byte read from the GLO file.
◆ GetUnsignedInt()
unsigned int GetUnsignedInt |
( |
| ) |
|
|
inline |
- Returns
- An unsigned int read from the GLO file.
◆ GetUnsignedShort()
unsigned short GetUnsignedShort |
( |
| ) |
|
|
inline |
- Returns
- An unsigned short read from the GLO file.
◆ IsInitialized()
- Returns
- True if the file is ready to be read.
◆ OpenForReading()
Open file and prepare to read.
- Returns
- True if the operation was successful.
◆ GLO_SIZE_CACHING_LIMIT
const unsigned int GLO_SIZE_CACHING_LIMIT = 1024 * 1024 |
|
static |
Do not bother caching GLO files that are larger than 1 MB.
The documentation for this class was generated from the following file: