VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 DtString &type)
 Creates an instance of a script interface given a type. More...
 
virtual void registerCreator (const DtString &type, DtScriptInterfaceCreatorFunc func)
 Registers a new creator function for a particular script type. More...
 

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

std::map< DtString,
DtScriptInterfaceCreatorFunc
myCreators
 

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 DtString type)
virtual

Creates an instance of a script interface given a type.

virtual void DtScriptInterfaceFactory::registerCreator ( const DtString 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

static void DtScriptInterfaceFactory::setFactory ( DtScriptInterfaceFactory factory)
static

Sets the instance of the scriptInterfaceFactory.

static DtScriptInterfaceFactory* DtScriptInterfaceFactory::create ( )
static

Member Data Documentation

std::map<DtString, DtScriptInterfaceCreatorFunc> DtScriptInterfaceFactory::myCreators
protected
DtScriptInterfaceFactory* DtScriptInterfaceFactory::theFactoryInstance
staticprotected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)