Factory Class Reference

Factory Class. More...

List of all members.

Static Interface

static ClustercreateCluster (const char *type, PropertySettings &param)
static LinkercreateLinker (const char *type, PropertySettings &param)
static OutputFunctioncreateOutputFunction (const char *type, PropertySettings &param)
static PropertizedcreatePropertized (const char *type, PropertySettings &param)
static bool registerCluster (const AbstractCreator &c, const char *type)
static bool registerLinker (const AbstractCreator &c, const char *type)
static bool registerOutputFunction (const AbstractCreator &c, const char *type)
static bool registerPropertized (const AbstractCreator &c, const char *type)
static AbstractModifiercreateModifierFor (Updatable *objectToLearn)
static bool registerModifier (const AbstractModifier &m, const char *type)


Detailed Description

Motivation
Description
Warnings
the methods that creates object (createCluster, createLinker, etc) doesn't check if the Creator registered returns the right type of object... so, pay attention to register the right kind of Creator, otherwise you will get a runtime-error when you try to use them


Member Function Documentation

static Cluster* createCluster ( const char *  type,
PropertySettings param 
) [static]

Create a Cluster of class type

static Linker* createLinker ( const char *  type,
PropertySettings param 
) [static]

Create a Linker of class type

static OutputFunction* createOutputFunction ( const char *  type,
PropertySettings param 
) [static]

Create a OutputFunction of class type

static Propertized* createPropertized ( const char *  type,
PropertySettings param 
) [static]

Create a Propertized object different from Cluster, Linker and OutputFunction type

static bool registerCluster ( const AbstractCreator c,
const char *  type 
) [static]

Register a new Cluster type
Return true on successuful insertion
It use the clone() method for copying the ClusterCreator

static bool registerLinker ( const AbstractCreator c,
const char *  type 
) [static]

Register a new Linker type
Return true on successuful insertion
It use the clone() method for copying the LinkerCreator

static bool registerOutputFunction ( const AbstractCreator c,
const char *  type 
) [static]

Register a new OutputFunction type
Return true on successuful insertion
It use the clone() method for copying the OutputFunctionCreator

static bool registerPropertized ( const AbstractCreator c,
const char *  type 
) [static]

Register a new Propertized type
Return true on successuful insertion
It use the clone() method for copying the OutputFunctionCreator

Warning:
Never use this method for registering Cluster, Linker or OutputFunction subclasses; These hierarchy has own special methods in factory: registerCluster, registerLinker and registerOutputFunction

static AbstractModifier* createModifierFor ( Updatable objectToLearn  )  [static]

Return a Modifier for Updatable object passed

static bool registerModifier ( const AbstractModifier m,
const char *  type 
) [static]

Register a new Modifier for type passed


The documentation for this class was generated from the following file:
BerliOS Developer Logo Valid XHTML 1.0 Transitional Valid CSS!