Menge
Modular Pedestrian Simulation Framework for Research and Development
|
The factory for creating the AndCondition. More...
#include <CondBoolean.h>
Public Member Functions | |
virtual const char * | name () const |
The name of the condition. More... | |
virtual const char * | description () const |
A description of the condition. 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::BFSM::Bool2CondFactory | |
virtual bool | setFromXML (Condition *condition, TiXmlElement *node, const std::string &behaveFldr) const |
Given a pointer to an Condition instance, sets the appropriate fields from the provided XML node. 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 AndCondition.
|
inlinevirtual |
A description of the condition.
Each condition 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 condition.
The condition's name must be unique among all registered condition. Each condition factory must override this function.
Implements Menge::ElementFactory< Condition >.