VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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.
virtual void registerCreator (const DtString &type, DtScriptInterfaceCreatorFunc func)
 Registers a new creator function for a particular script type.

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

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 Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)