Public Types | Public Member Functions | Protected Types | Protected Attributes

dynamicgraph::FactoryStorage Class Reference
[Core classes and objects]

The Factory class is responsible for creating Entity objects. More...

List of all members.

Public Types

typedef Entity *(* EntityConstructor_ptr )(const std::string &)

Public Member Functions

 ~FactoryStorage (void)
void registerEntity (const std::string &entname, EntityConstructor_ptr ent)
void deregisterEntity (const std::string &entname)
EntitynewEntity (const std::string &name, const std::string &objname)
bool existEntity (const std::string &name, EntityMap::iterator &entPtr)
bool existEntity (const std::string &name)
void commandLine (const std::string &cmdLine, std::istringstream &cmdArgs, std::ostream &os)

Protected Types

typedef std::map< std::string,
EntityConstructor_ptr
EntityMap

Protected Attributes

EntityMap entityMap

Detailed Description

The Factory class is responsible for creating Entity objects.

Entities can register themselves through the helper class EntityRegisterer. This object also provides access to command-line functions.


Member Typedef Documentation

typedef std::map< std::string,EntityConstructor_ptr > dynamicgraph::FactoryStorage::EntityMap [protected]

Constructor & Destructor Documentation

dynamicgraph::FactoryStorage::~FactoryStorage ( void   ) 

Member Function Documentation

void dynamicgraph::FactoryStorage::commandLine ( const std::string &  cmdLine,
std::istringstream &  cmdArgs,
std::ostream &  os 
)
void dynamicgraph::FactoryStorage::deregisterEntity ( const std::string &  entname  ) 
bool dynamicgraph::FactoryStorage::existEntity ( const std::string &  name  ) 
bool dynamicgraph::FactoryStorage::existEntity ( const std::string &  name,
EntityMap::iterator &  entPtr 
)
Entity* dynamicgraph::FactoryStorage::newEntity ( const std::string &  name,
const std::string &  objname 
)
void dynamicgraph::FactoryStorage::registerEntity ( const std::string &  entname,
EntityConstructor_ptr  ent 
)

Member Data Documentation





dynamicGraph library documentation