guit  0.1
 All Classes Functions Variables Typedefs Enumerations Friends
Public Member Functions | Static Public Member Functions | List of all members
guit::GadgetType Class Referenceabstract

Base class of Gadget Types (kind of metaclass). More...

Inherited by guit::GadgetType__.

Public Member Functions

virtual GadgetnewInstance (GString const &arg="")=0
 Instantiates a gadget of this type (redefined in subclasses).
 
void operator delete (void *)
 The delete operator does nothing and should not be used.
 
GString const & name () const
 Return the name id, style of the type (depends of subclass).
 

Static Public Member Functions

static GadgetcreateInstance (GString const &type_name, GString const &arg)
 Instantiates a gadget according to the specified type name. More...
 
static GadgetTypefindType (GString const &type_name)
 Returns the type corresponding to this name if it exists, null otherwise.
 

Detailed Description

Base class of Gadget Types (kind of metaclass).

Member Function Documentation

Gadget * guit::GadgetType::createInstance ( GString const &  type_name,
GString const &  arg 
)
static

Instantiates a gadget according to the specified type name.

Warning
: returns null if the desired class has not yet been loaded, which can be done by instantiating a gadget of this class or by calling the gadget's Class() method.

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