Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

oofSerializableFactory Class Reference

#include <oofxmldb.h>

Inheritance diagram for oofSerializableFactory:

Inheritance graph
[legend]
Collaboration diagram for oofSerializableFactory:

Collaboration graph
[legend]
List of all members.

Detailed Description

default factory handles registering a factory function


Public Member Functions

 oofSerializableFactory (const oofString &inSignature, oofSerializableFactoryFunction)
virtual oofSerializablemakeObject (const oofString &inData)
 custom factories may override makeObject

bool hidden () const
void hide (bool hideIt=true)
virtual void describe (std::ostream &) const
 Provide human-readable information about object.

virtual oofString name () const

Static Public Member Functions

void registerDefaultMake (const oofString &signature, oofSerializableFactoryFunction)
oofSerializableFactoryfactoryMatching (const oofString &)
 return a factory if want to lookup factories and invoke extra functions

oofSerializablemakeObjectMatching (const oofString &, const oofString &inData)
 just make object if using default factories


Protected Member Functions

virtual bool MatchesSignature (const oofString &)

Protected Attributes

oofString mSignature
oofSerializableFactoryFunction mFactoryFunction
bool mHidden

Static Protected Attributes

OOF_Dictionary sFactories


Constructor & Destructor Documentation

oofSerializableFactory::oofSerializableFactory const oofString inSignature,
oofSerializableFactoryFunction 
 


Member Function Documentation

void OOF_PublicBase::describe std::ostream &  os  )  const [virtual, inherited]
 

Provide human-readable information about object.

Overriden to provide much more detail particularly for dbTable::describe() which provides full schema.

Reimplemented in dbTable, dbConnect, dbField, dbChar, dbFixedBinary, and dbRelRefBase.

oofSerializableFactory * oofSerializableFactory::factoryMatching const oofString  )  [static]
 

return a factory if want to lookup factories and invoke extra functions

bool OOF_PublicBase::hidden  )  const [inline, inherited]
 

void OOF_PublicBase::hide bool  hideIt = true  )  [inline, inherited]
 

oofSerializable * oofSerializableFactory::makeObject const oofString inData  )  [virtual]
 

custom factories may override makeObject

oofSerializable * oofSerializableFactory::makeObjectMatching const oofString ,
const oofString inData
[static]
 

just make object if using default factories

bool oofSerializableFactory::MatchesSignature const oofString  )  [protected, virtual]
 

oofString OOF_PublicBase::name  )  const [virtual, inherited]
 

Reimplemented in dbTable, dbConnect, dbField, and OOF_adornerHolder.

void oofSerializableFactory::registerDefaultMake const oofString signature,
oofSerializableFactoryFunction 
[static]
 


Member Data Documentation

oofSerializableFactoryFunction oofSerializableFactory::mFactoryFunction [protected]
 

bool OOF_PublicBase::mHidden [protected, inherited]
 

oofString oofSerializableFactory::mSignature [protected]
 

OOF_Dictionary oofSerializableFactory::sFactories [static, protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Jan 2 01:26:27 2004 for OOFILE by doxygen 1.3.5