fsf::CClassFactoryBase Class Reference

The base class factory (abstract class). More...

#include <FsfClassFactories.h>

Inherited by fsf::CCellFactoryBase, and fsf::CNodeFactoryBase.

List of all members.

Public Member Functions

Creators
 CClassFactoryBase ()
 0-parameter constructor
 CClassFactoryBase (const std::string &strName)
 1-parameter constructor: class ID
 CClassFactoryBase (const std::string &strName, const std::string &strAuthor)
 2-parameter constructor: class ID and author name
 CClassFactoryBase (const std::string &strName, const std::string &strAuthor, const std::string &strThanks)
 3-parameter constructor: class ID, author name and acknowledgments
 CClassFactoryBase (const CClassFactoryBase &rhs)
 Copy constructor.
virtual ~CClassFactoryBase ()
 Virtual destructor.
Accessors
void getName (std::string &str) const
 Gets class ID.
void getAuthor (std::string &str) const
 Gets author name.
void getThanks (std::string &str) const
 Gets acknowledgments text.
Manipulators
virtual void * instantiate ()=0
 Returns a new instance of the factory's class type.


Detailed Description

The base class factory (abstract class).

A factory can store the class' unique ID, the author's name and some


Constructor & Destructor Documentation

fsf::CClassFactoryBase::CClassFactoryBase (  )  [inline]

0-parameter constructor

fsf::CClassFactoryBase::CClassFactoryBase ( const std::string &  strName  )  [inline]

1-parameter constructor: class ID

fsf::CClassFactoryBase::CClassFactoryBase ( const std::string &  strName,
const std::string &  strAuthor 
) [inline]

2-parameter constructor: class ID and author name

fsf::CClassFactoryBase::CClassFactoryBase ( const std::string &  strName,
const std::string &  strAuthor,
const std::string &  strThanks 
) [inline]

3-parameter constructor: class ID, author name and acknowledgments

fsf::CClassFactoryBase::CClassFactoryBase ( const CClassFactoryBase rhs  )  [inline]

Copy constructor.

virtual fsf::CClassFactoryBase::~CClassFactoryBase (  )  [inline, virtual]

Virtual destructor.


Member Function Documentation

void fsf::CClassFactoryBase::getAuthor ( std::string &  str  )  const [inline]

Gets author name.

void fsf::CClassFactoryBase::getName ( std::string &  str  )  const [inline]

Gets class ID.

void fsf::CClassFactoryBase::getThanks ( std::string &  str  )  const [inline]

Gets acknowledgments text.

virtual void* fsf::CClassFactoryBase::instantiate (  )  [pure virtual]

Returns a new instance of the factory's class type.

This is a pure virtual function that must be overridden in derived classes.

Implemented in fsf::CNodeFactory< N >, and fsf::CCellFactory< C >.


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

Generated on Thu Oct 21 11:47:37 2010 for MFSM by  doxygen 1.5.9