Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

ObjectFactory Class Reference
[Managed Objects]

ObjectFactory Class Definition. More...

#include <ObjectFactory.h>

List of all members.

Static Public Methods

IManagedObjectloadNode (IManagedObject *inParent, int inIndex, IObjectEventHandler *inEventHandler)
IManagedObjectloadNode (void *inNode, IObjectManager *inManager, IObjectEventHandler *inEventHandler)


Detailed Description

ObjectFactory Class Definition.

The ObjectFactory provides services for creating an object when its type is unknown. It will dynamically check for the data node's type and create and initialize the appropriate IManagedObject. Objects returned by the ObjectFactory should be deallocated with a delete by the caller.


Member Function Documentation

IManagedObject* ObjectFactory::loadNode void *    inNode,
IObjectManager   inManager,
IObjectEventHandler   inEventHandler
[static]
 

Loads any data node. Quite usefull when you found a datanode and you have no clue what it is

Parameters:
inNode  Node that you need a ManagedObject for
inManager  Database to which the data node belongs to
inEventHandler  Observer that will monitor the data node

IManagedObject* ObjectFactory::loadNode IManagedObject   inParent,
int    inIndex,
IObjectEventHandler   inEventHandler
[static]
 

Loads the child of a IManagedObject. Usefull when the type of the IManagedObject or the type of its child is unknown - for example, when traversing the entire database

Parameters:
inParent  Parent of the object we need the ManagedObject for
inIndex  Index of the child
inEventHandler  Observer that will monitor the data node


The documentation for this class was generated from the following file:
Generated on Mon Apr 15 15:23:18 2002 for WhiteDwarf by doxygen1.2.15