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

A manager for RDS files. More...

#include <VGearsRSDFileManager.h>

Inheritance diagram for VGears::RSDFileManager:
Collaboration diagram for VGears::RSDFileManager:

Public Member Functions

 RSDFileManager ()
 Constructor. More...
 
virtual ~RSDFileManager ()
 Destructor. More...
 
virtual void ParseScript (Ogre::DataStreamPtr &stream, const String &group_name)
 Parses the file script and adds the resource. More...
 

Static Public Member Functions

static RSDFileManagerGetSingleton ()
 Retrieves a singleton to the manager. More...
 
static RSDFileManagerGetSingletonPtr ()
 Retrieves a pointer to the manager singleton. More...
 

Protected Member Functions

Ogre::Resource * createImpl (const Ogre::String &name, Ogre::ResourceHandle handle, const Ogre::String &group, bool is_manual, Ogre::ManualResourceLoader *loader, const Ogre::NameValuePairList *create_params)
 Loads the manager. More...
 

Detailed Description

A manager for RDS files.

Constructor & Destructor Documentation

◆ RSDFileManager()

VGears::RSDFileManager::RSDFileManager ( )

Constructor.

◆ ~RSDFileManager()

VGears::RSDFileManager::~RSDFileManager ( )
virtual

Destructor.

Member Function Documentation

◆ createImpl()

Ogre::Resource * VGears::RSDFileManager::createImpl ( const Ogre::String &  name,
Ogre::ResourceHandle  handle,
const Ogre::String &  group,
bool  is_manual,
Ogre::ManualResourceLoader *  loader,
const Ogre::NameValuePairList *  create_params 
)
protected

Loads the manager.

Parameters
[in]nameThe unique name of the manager.
[in]handle
Todo:
Understand and document.
Parameters
[in]groupThe name of the resource group to which this resource belong.
[in]is_manualTrue if the resource is manually loaded, false otherwise.
[in]loaderPointer to a ManualResourceLoader implementation which will be called when the Resource wishes to load (should be supplied if is_manual is set to true). It can be null, but the Resource will never be able to reload if anything ever causes it to unload. Therefore provision of a proper ManualResourceLoader instance is strongly recommended.
[in]create_paramsUnused.

◆ GetSingleton()

RSDFileManager & VGears::RSDFileManager::GetSingleton ( )
static

Retrieves a singleton to the manager.

◆ GetSingletonPtr()

RSDFileManager * VGears::RSDFileManager::GetSingletonPtr ( )
static

Retrieves a pointer to the manager singleton.

◆ ParseScript()

void VGears::RSDFileManager::ParseScript ( Ogre::DataStreamPtr &  stream,
const String group_name 
)
virtual

Parses the file script and adds the resource.

Parameters
[in]streamThe contents of the file.
[in]group_nameName of the group to add the resource to.

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