V-Gears 0
Free Final Fantasy VII engine.
VGears::RSDFileSerializer Class Reference

Handles the serialization of RDS files. More...

#include <VGearsRSDFileSerializer.h>

Inheritance diagram for VGears::RSDFileSerializer:
Collaboration diagram for VGears::RSDFileSerializer:

Public Member Functions

 RSDFileSerializer ()
 Constructor. More...
 
virtual ~RSDFileSerializer ()
 Destructor. More...
 
virtual void ImportRSDFile (Ogre::DataStreamPtr &stream, RSDFile *dest)
 Imports a RSD file. More...
 
- Public Member Functions inherited from VGears::Serializer
 Serializer ()
 Constructor. More...
 
virtual ~Serializer ()
 Destructor. More...
 

Protected Member Functions

virtual void ReadFileHeader (Ogre::DataStreamPtr &stream)
 Reads a file header and sets the instance data. More...
 
virtual void ParseLine (const String &line, RSDFile *dest)
 Parses a line of the RSD file. More...
 
- Protected Member Functions inherited from VGears::Serializer
void readObject (Ogre::DataStreamPtr &stream, Ogre::Vector2 &dest)
 Reads an object as a 2 dimensional vector. More...
 
void readObject (Ogre::DataStreamPtr &stream, Ogre::Vector3 &dest)
 Reads an object as a 3 dimensional vector. More...
 
void readObject (Ogre::DataStreamPtr &stream, Ogre::AxisAlignedBox &dest)
 Reads an object as an axis aligned box. More...
 
void readObject (Ogre::DataStreamPtr &stream, Pixel &dest)
 Reads an object as a pixel. More...
 
void ReadChars (Ogre::DataStreamPtr &stream, char *dest, size_t count)
 Reads a stream as text. More...
 
void Read1ByteBool (Ogre::DataStreamPtr &stream, bool &dest)
 Reads one byte from a stream and evaluates it as a boolean. More...
 
void Read2ByteBool (Ogre::DataStreamPtr &stream, bool &dest)
 Reads two bytes from a stream and evaluates them as a boolean. More...
 
void ReadShort (Ogre::DataStreamPtr &stream, uint16 &dest)
 Reads 16 bytes from a stream and evaluates as an unsigned short. More...
 
void ReadInt16 (Ogre::DataStream &stream, sint16 &dest)
 Reads 16 bytes from a stream and evaluates as a signed integer. More...
 
void ReadUInt16 (Ogre::DataStream &stream, uint16 &dest)
 Reads 16 bytes from a stream and evaluates as an unsigned int. More...
 
void ReadInt16 (Ogre::DataStreamPtr &stream, sint16 &dest)
 Reads 16 bytes from a stream and evaluates as a signed integer. More...
 
void ReadUInt16 (Ogre::DataStreamPtr &stream, uint16 &dest)
 Reads 16 bytes from a stream and evaluates as an unsigned int. More...
 
void ReadUInt32 (Ogre::DataStreamPtr &stream, uint32 &dest)
 Reads 32 bytes from a stream and evaluates as an unsigned int. More...
 
void ReadSInt32 (Ogre::DataStreamPtr &stream, sint32 &dest)
 Reads 32 bytes from a stream and evaluates as a signed int. More...
 
void ReadUInt32 (Ogre::DataStream &stream, uint32 &dest)
 Reads 32 bytes from a stream and evaluates as an unsigned int. More...
 
void ReadUInt8 (Ogre::DataStream &stream, uint8 &dest)
 Reads 8 bytes from a stream and evaluates as an unsigned int. More...
 
void ReadUInt8 (Ogre::DataStreamPtr &stream, uint8 &dest)
 Reads 8 bytes from a stream and evaluates as an unsigned int. More...
 
void ReadFloat (Ogre::DataStreamPtr &stream, float &dest)
 Reads bytes from a stream and evaluates them as a float. More...
 
void ReadEndString (Ogre::DataStreamPtr &stream, const String &end_text)
 
String GetLine (Ogre::DataStreamPtr &stream) const
 

Static Protected Attributes

static const String TAG_HEADER
 The file header tag. More...
 
static const String TAG_POLYGON
 The polygon tag. More...
 
static const String TAG_MATERIAL
 The material tag. More...
 
static const String TAG_GROUP
 The group tag. More...
 
static const String TAG_TEXTURE_COUNT
 The texture count tag. More...
 
static const String TAG_TEXTURE_NAME
 The texture name tag. More...
 
static const String PARSE_DELIMITER
 Delimiter for line parsing. More...
 
- Static Protected Attributes inherited from VGears::Serializer
static const String TAG_COMMENT
 A comment tag. More...
 

Private Attributes

bool has_texture_count_
 Indicates if the file has a texture count. More...
 
size_t texture_count_
 The texture count (if any). More...
 

Detailed Description

Handles the serialization of RDS files.

Constructor & Destructor Documentation

◆ RSDFileSerializer()

VGears::RSDFileSerializer::RSDFileSerializer ( )

Constructor.

◆ ~RSDFileSerializer()

VGears::RSDFileSerializer::~RSDFileSerializer ( )
virtual

Destructor.

Member Function Documentation

◆ ImportRSDFile()

void VGears::RSDFileSerializer::ImportRSDFile ( Ogre::DataStreamPtr &  stream,
RSDFile dest 
)
virtual

Imports a RSD file.

Parameters
[in]streamThe contents of the RSD file.
[out]destThe formed RSD file.

◆ ParseLine()

void VGears::RSDFileSerializer::ParseLine ( const String line,
RSDFile dest 
)
protectedvirtual

Parses a line of the RSD file.

Parameters
[in]lineThe line to parse.
[out]destGenerated file contents.

◆ ReadFileHeader()

void VGears::RSDFileSerializer::ReadFileHeader ( Ogre::DataStreamPtr &  stream)
protectedvirtual

Reads a file header and sets the instance data.

Parameters
[in]streamThe contents of the RSD file.

Member Data Documentation

◆ has_texture_count_

bool VGears::RSDFileSerializer::has_texture_count_
private

Indicates if the file has a texture count.

◆ PARSE_DELIMITER

const String VGears::RSDFileSerializer::PARSE_DELIMITER
staticprotected

Delimiter for line parsing.

◆ TAG_GROUP

const String VGears::RSDFileSerializer::TAG_GROUP
staticprotected

The group tag.

◆ TAG_HEADER

const String VGears::RSDFileSerializer::TAG_HEADER
staticprotected

The file header tag.

◆ TAG_MATERIAL

const String VGears::RSDFileSerializer::TAG_MATERIAL
staticprotected

The material tag.

◆ TAG_POLYGON

const String VGears::RSDFileSerializer::TAG_POLYGON
staticprotected

The polygon tag.

◆ TAG_TEXTURE_COUNT

const String VGears::RSDFileSerializer::TAG_TEXTURE_COUNT
staticprotected

The texture count tag.

◆ TAG_TEXTURE_NAME

const String VGears::RSDFileSerializer::TAG_TEXTURE_NAME
staticprotected

The texture name tag.

◆ texture_count_

size_t VGears::RSDFileSerializer::texture_count_
private

The texture count (if any).


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