ScriptProcessor Class Reference

AssetProcessor for processing scripts in an AssetGroup. More...

Inheritance diagram for ScriptProcessor:

Inheritance graph
[legend]
Collaboration diagram for ScriptProcessor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ScriptProcessor (AssetGroup *parent)
 Constructor.
 ~ScriptProcessor ()
 Deconstructor.
ScriptgetScript (const std::string &fileName)
 Gets the script with the given filename.
bool reloadAsset (const std::string &fileName)
 Reloads the asset with the given filename.
void reloadAssets ()
 Reloads all assets.
bool removeAsset (const std::string &fileName)
 Removes the asset with the given filename.
void removeAssets ()
 Removes all assets.

Static Public Member Functions

static AssetProcessorcreateProcessor (AssetGroup *parent)
 Creates a new ScriptProcessor.

Protected Member Functions

bool loadAsset (const std::string &fileName)
 Loads the asset with the given filename.
void loadAssets ()
 Loads all assets.


Detailed Description

AssetProcessor for processing scripts in an AssetGroup.

Definition at line 30 of file ScriptProcessor.h.


Constructor & Destructor Documentation

ScriptProcessor::ScriptProcessor ( AssetGroup parent  ) 

Constructor.

Definition at line 26 of file ScriptProcessor.cpp.

ScriptProcessor::~ScriptProcessor (  ) 

Deconstructor.

Definition at line 32 of file ScriptProcessor.cpp.


Member Function Documentation

AssetProcessor * ScriptProcessor::createProcessor ( AssetGroup parent  )  [static]

Creates a new ScriptProcessor.

Note:
For internal use only!

Definition at line 325 of file ScriptProcessor.cpp.

Script * ScriptProcessor::getScript ( const std::string &  fileName  ) 

Gets the script with the given filename.

Parameters:
fileName Filename of the script.

Definition at line 38 of file ScriptProcessor.cpp.

bool ScriptProcessor::loadAsset ( const std::string &  fileName  )  [protected, virtual]

Loads the asset with the given filename.

Parameters:
fileName Filename of the asset.
Returns:
True on succesful loading, false otherwise.

Reimplemented from AssetProcessor.

Definition at line 84 of file ScriptProcessor.cpp.

void ScriptProcessor::loadAssets (  )  [protected, virtual]

Loads all assets.

Reimplemented from AssetProcessor.

Definition at line 140 of file ScriptProcessor.cpp.

bool ScriptProcessor::reloadAsset ( const std::string &  fileName  )  [virtual]

Reloads the asset with the given filename.

Parameters:
fileName Filename of the asset.
Returns:
True on succesful removal, false otherwise.

Reimplemented from AssetProcessor.

Definition at line 208 of file ScriptProcessor.cpp.

void ScriptProcessor::reloadAssets (  )  [virtual]

Reloads all assets.

Reimplemented from AssetProcessor.

Definition at line 221 of file ScriptProcessor.cpp.

bool ScriptProcessor::removeAsset ( const std::string &  fileName  )  [virtual]

Removes the asset with the given filename.

Parameters:
fileName Filename of the asset.
Returns:
True on succesful removal, false otherwise.

Reimplemented from AssetProcessor.

Definition at line 259 of file ScriptProcessor.cpp.

void ScriptProcessor::removeAssets (  )  [virtual]

Removes all assets.

Reimplemented from AssetProcessor.

Definition at line 296 of file ScriptProcessor.cpp.


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

Generated on Fri Aug 21 23:55:17 2009 for Sirrf - Simple Irrlicht Framework by  doxygen 1.5.8