#include <FsfClassFactories.h>
Inherited by fsf::CCellFactoryBase, and fsf::CNodeFactoryBase.
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. |
A factory can store the class' unique ID, the author's name and some
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.
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 >.