VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
DtScriptInterfaceFactory Class Reference

Public Member Functions

virtual ~DtScriptInterfaceFactory ()
virtual DtScriptInterfacecreateInstance (const std::string &type)
 Creates an instance of a script interface given a type.
virtual void destroyInstance (DtScriptInterface *iFace)
virtual void registerCreator (const std::string &type, DtScriptInterfaceCreatorFunc func)
 Registers a new creator function for a particular script type.
virtual void setMaxInterfaceReuse (unsigned int count)
virtual unsigned int maxInterfaceReuse () const

Static Public Member Functions

static DtScriptInterfaceFactoryinstance ()
 Gets the instance of the scriptInterfaceFactory.
static void setFactory (DtScriptInterfaceFactory *factory)
 Sets the instance of the scriptInterfaceFactory.
static DtScriptInterfaceFactorycreate ()

Protected Member Functions

 DtScriptInterfaceFactory ()
 DtScriptInterfaceFactory (const DtScriptInterfaceFactory &other)
DtScriptInterfaceFactoryoperator= (const DtScriptInterfaceFactory &other)

Protected Attributes

unsigned int myMaxInterfaceReuse
std::map< std::string,
DtScriptInterfaceCreatorFunc
myCreators
std::deque< DtScriptInterface * > myScriptInterfaceReuse

Static Protected Attributes

static DtScriptInterfaceFactorytheFactoryInstance

Constructor & Destructor Documentation

DtScriptInterfaceFactory::DtScriptInterfaceFactory ( )
protected
DtScriptInterfaceFactory::DtScriptInterfaceFactory ( const DtScriptInterfaceFactory other)
protected
virtual DtScriptInterfaceFactory::~DtScriptInterfaceFactory ( )
virtual

Member Function Documentation

DtScriptInterfaceFactory& DtScriptInterfaceFactory::operator= ( const DtScriptInterfaceFactory other)
protected
static DtScriptInterfaceFactory* DtScriptInterfaceFactory::instance ( )
static

Gets the instance of the scriptInterfaceFactory.

virtual DtScriptInterface* DtScriptInterfaceFactory::createInstance ( const std::string &  type)
virtual

Creates an instance of a script interface given a type.

virtual void DtScriptInterfaceFactory::destroyInstance ( DtScriptInterface iFace)
virtual
virtual void DtScriptInterfaceFactory::registerCreator ( const std::string &  type,
DtScriptInterfaceCreatorFunc  func 
)
virtual

Registers a new creator function for a particular script type.

If the same type is re-registered, then it will overwrite the existing

virtual void DtScriptInterfaceFactory::setMaxInterfaceReuse ( unsigned int  count)
virtual
virtual unsigned int DtScriptInterfaceFactory::maxInterfaceReuse ( ) const
inlinevirtual
static void DtScriptInterfaceFactory::setFactory ( DtScriptInterfaceFactory factory)
static

Sets the instance of the scriptInterfaceFactory.

static DtScriptInterfaceFactory* DtScriptInterfaceFactory::create ( )
static

Member Data Documentation

unsigned int DtScriptInterfaceFactory::myMaxInterfaceReuse
protected
std::map<std::string, DtScriptInterfaceCreatorFunc> DtScriptInterfaceFactory::myCreators
protected
std::deque<DtScriptInterface*> DtScriptInterfaceFactory::myScriptInterfaceReuse
protected
DtScriptInterfaceFactory* DtScriptInterfaceFactory::theFactoryInstance
staticprotected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)