Crazy Eddie's GUI System 0.8.7
Loading...
Searching...
No Matches
CEGUI::FactoryRegisterer Class Referenceabstract

Base class encapsulating a type name and common parts of factory registration. More...

#include <FactoryRegisterer.h>

+ Inheritance diagram for CEGUI::FactoryRegisterer:
+ Collaboration diagram for CEGUI::FactoryRegisterer:

Public Member Functions

virtual ~FactoryRegisterer ()
 Destructor.
 
void registerFactory () const
 Perform registration (addition) of the factory for whichever type this class registers a factory for.
 
virtual void unregisterFactory () const =0
 Perform unregistration (removal) of the factory for whichever type this class registers a factory for.
 

Public Attributes

const String d_type
 describes the type this class registers a factory for.
 

Protected Member Functions

 FactoryRegisterer (const String &type)
 Constructor.
 
virtual void doFactoryAdd () const =0
 Function to do the actual addition of a factory to the CEGUI system.
 
virtual bool isAlreadyRegistered () const =0
 Function to check if factory for our type is already registered.
 

Detailed Description

Base class encapsulating a type name and common parts of factory registration.

Member Function Documentation

◆ doFactoryAdd()

virtual void CEGUI::FactoryRegisterer::doFactoryAdd ( ) const
protectedpure virtual

Function to do the actual addition of a factory to the CEGUI system.

Implemented in CEGUI::TplWindowFactoryRegisterer< T >, and CEGUI::TplWRFactoryRegisterer< T >.

◆ isAlreadyRegistered()

virtual bool CEGUI::FactoryRegisterer::isAlreadyRegistered ( ) const
protectedpure virtual

Function to check if factory for our type is already registered.

Implemented in CEGUI::TplWindowFactoryRegisterer< T >, and CEGUI::TplWRFactoryRegisterer< T >.

◆ unregisterFactory()

virtual void CEGUI::FactoryRegisterer::unregisterFactory ( ) const
pure virtual

Perform unregistration (removal) of the factory for whichever type this class registers a factory for.

Implemented in CEGUI::TplWindowFactoryRegisterer< T >, and CEGUI::TplWRFactoryRegisterer< T >.