VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
DtScenarioLoadManager Class Reference

Public Member Functions

 DtScenarioLoadManager ()
 
virtual ~DtScenarioLoadManager ()
 
virtual DtScenariocreateScenarioObject (const DtFilename &) const
 
virtual void addCreateScenarioObjectHandler (const DtString &extension, DtCreateScenarioObjectHandler *)
 
virtual
DtCreateScenarioObjectHandler
getCreateScenarioObjectHandler (const DtString &extension) const
 
virtual void addLoadScenarioPieceHandler (const DtString &extension, DtLoadScenarioPieceHandler *)
 
virtual
DtLoadScenarioPieceHandler
getLoadScenarioPieceHandler (const DtString &extension) const
 
virtual void addSaveScenarioPieceHandler (const DtString &extension, DtSaveScenarioPieceHandler *)
 
virtual
DtSaveScenarioPieceHandler
getSaveScenarioPieceHandler (const DtString &extension) const
 

Protected Types

typedef std::map< DtString,
DtCreateScenarioObjectHandler * > 
CreateScenarioObjectHandlers
 
typedef std::map< DtString,
DtLoadScenarioPieceHandler * > 
LoadScenarioPieceHandlers
 
typedef std::map< DtString,
DtSaveScenarioPieceHandler * > 
SaveScenarioPieceHandlers
 

Protected Attributes

CreateScenarioObjectHandlers myCreateScenarioObjectHandlers
 
LoadScenarioPieceHandlers myLoadScenarioPieceHandlers
 
SaveScenarioPieceHandlers mySaveScenarioPieceHandlers
 

Member Typedef Documentation

Constructor & Destructor Documentation

DtScenarioLoadManager::DtScenarioLoadManager ( )

CTOR.

virtual DtScenarioLoadManager::~DtScenarioLoadManager ( )
virtual

DTOR.

Member Function Documentation

virtual DtScenario* DtScenarioLoadManager::createScenarioObject ( const DtFilename &  ) const
virtual

The handlers to create a DtScenario object and then load parts of that scenario are different in their addition and construction, so, different methods are defined to add those parts.

Will get the extension of the file and find the handler for that extension to create the scenario object. If no scenario handler exists then will return NULL.

virtual void DtScenarioLoadManager::addCreateScenarioObjectHandler ( const DtString extension,
DtCreateScenarioObjectHandler  
)
virtual

This class will take ownership of this memory. Will delete an existing handler if this replaces it.

virtual DtCreateScenarioObjectHandler* DtScenarioLoadManager::getCreateScenarioObjectHandler ( const DtString extension) const
virtual

Will return a clone of the handler such that the developer does not have to reinitialize variables. Make sure to delete this handler when done.

virtual void DtScenarioLoadManager::addLoadScenarioPieceHandler ( const DtString extension,
DtLoadScenarioPieceHandler  
)
virtual

Handlers to load parts of the scenario.

This will be registered by extension and will be used by the caller to load the part of the scenario as specified by that extension. It is still up to the developer to determine the order in which files are to be loaded

virtual DtLoadScenarioPieceHandler* DtScenarioLoadManager::getLoadScenarioPieceHandler ( const DtString extension) const
virtual

Will return a clone of the handler such that the developer does not have to reinitialize variables. Make sure to delete this handler when done.

virtual void DtScenarioLoadManager::addSaveScenarioPieceHandler ( const DtString extension,
DtSaveScenarioPieceHandler  
)
virtual

Handlers to save parts of the scenario.

This will be registered by extension and will be used by the caller to save the part of the scenario as specified by that extension. It is still up to the developer to determine the order in which files are to be saved

virtual DtSaveScenarioPieceHandler* DtScenarioLoadManager::getSaveScenarioPieceHandler ( const DtString extension) const
virtual

Will return a clone of the handler such that the developer does not have to reinitialize variables. Make sure to delete this handler when done.

Member Data Documentation

CreateScenarioObjectHandlers DtScenarioLoadManager::myCreateScenarioObjectHandlers
protected
LoadScenarioPieceHandlers DtScenarioLoadManager::myLoadScenarioPieceHandlers
protected
SaveScenarioPieceHandlers DtScenarioLoadManager::mySaveScenarioPieceHandlers
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)