Menge
Modular Pedestrian Simulation Framework for Research and Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
Menge::BFSM::AndCondFactory Class Reference

The factory for creating the AndCondition. More...

#include <CondBoolean.h>

Inheritance diagram for Menge::BFSM::AndCondFactory:
Menge::BFSM::Bool2CondFactory Menge::BFSM::ConditionFactory Menge::ElementFactory< Condition >

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 Conditioninstance () 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.
 

Detailed Description

The factory for creating the AndCondition.

Member Function Documentation

virtual const char* Menge::BFSM::AndCondFactory::description ( ) const
inlinevirtual

A description of the condition.

Each condition factory must override this function.

Returns
A string containing the condition description.

Implements Menge::ElementFactory< Condition >.

virtual Condition* Menge::BFSM::AndCondFactory::instance ( ) const
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.

Returns
A pointer to a newly instantiated Action class.

Implements Menge::ElementFactory< Condition >.

virtual const char* Menge::BFSM::AndCondFactory::name ( ) const
inlinevirtual

The name of the condition.

The condition's name must be unique among all registered condition. Each condition factory must override this function.

Returns
A string containing the unique condition name.

Implements Menge::ElementFactory< Condition >.


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