Menge
Modular Pedestrian Simulation Framework for Research and Development
|
The factory for creating the AutoCondition. More...
#include <CondAuto.h>
Public Member Functions | |
virtual const char * | name () const |
The name of the action. More... | |
virtual const char * | description () const |
A description of the action. More... | |
Public Member Functions inherited from Menge::ElementFactory< Condition > | |
ElementFactory () | |
Default constructor. | |
void | destroy () |
This supplants the destructor. More... | |
bool | thisFactory (const std::string &typeName) const |
Reports if the xml node defines an element for this factory. More... | |
Condition * | createInstance (TiXmlElement *node, const std::string &behaveFldr) const |
Parses the xml data. More... | |
Protected Member Functions | |
virtual Condition * | instance () const |
Create an instance of this class's condition. More... | |
Protected Member Functions inherited from Menge::ElementFactory< Condition > | |
virtual | ~ElementFactory () |
Destructor. | |
virtual bool | setFromXML (Condition *element, TiXmlElement *node, const std::string &specFldr) const |
Given a pointer to an element instance, sets the appropriate fields from the provided XML node. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Menge::ElementFactory< Condition > | |
AttributeSet | _attrSet |
The attribute set for this factory. | |
The factory for creating the AutoCondition.
|
inlinevirtual |
A description of the action.
Each action factory must override this function.
Implements Menge::ElementFactory< Condition >.
|
inlineprotectedvirtual |
Create an instance of this class's condition.
All ConditionFactory sub-classes must override this by creating (on the heap) a new instance of its corresponding condition type. The various field values of the instance will be set in a subsequent call to ConditionFactory::setFromXML. The caller of this function takes ownership of the memory.
Implements Menge::ElementFactory< Condition >.
|
inlinevirtual |
The name of the action.
The action's name must be unique among all registered actions. Each action factory must override this function.
Implements Menge::ElementFactory< Condition >.