|
|
ModelProcessorPtr | createModelProcessor (const std::string &configFile) |
| |
|
virtual ModelProcessorPtr | createModelProcessor (simox::xml::RapidXMLWrapperNodePtr node)=0 |
| |
|
bool | checkBase () |
| | Checks if the Plugin is valid base class.
|
| |
|
std::string | getDescription () const |
| | Return the description of the current instance.
|
| |
|
std::string | getPath () const |
| | Return the path of the current instance.
|
| |
|
void | setDescription (const std::string &newDescription) |
| | Set a description on the instance it is called on.
|
| |
|
void | setPath (const std::string &path) |
| | Set a path on the instance it is called on.
|
| |
|
| static ModelProcessorPtr | fromConfigFile (const std::string &configFile) |
| |
|
static ModelProcessorPtr | getModelProcessorFromNode (rapidxml::xml_node< char > *node) |
| |
|
static ModelProcessorPtr | getModelProcessorFromNode (simox::xml::RapidXMLWrapperNodePtr node) |
| |
| static std::shared_ptr< ModelProcessorFactory > | createInstance (void *) |
| | Initialisation function which needs to be provided by every subclass. More...
|
| |
|
static std::shared_ptr< ModelProcessorFactory > | first (void * params) |
| | Function which can be used to retrieve the first registered object.
|
| |
|
static std::shared_ptr< ModelProcessorFactory > | fromName (const std::string &name, void * params) |
| | Function which can be used to retrieve an object specified by string name.
|
| |
| static std::string | getName () |
| | Returns the class's name. More...
|
| |
|
static std::vector< std::string > | getSubclassList () |
| | Return a list of all registered subclasses.
|
| |
|
static void | registerClass (const std::string &name, initialisationFunction init) |
| | Statically called by subclasses to register their name and initialisation function so they can be found by fromName.
|
| |
|
|
static simox::xml::RapidXMLWrapperNodePtr | getNode (const std::string &configFile) |
| |
◆ fromConfigFile()
| ModelProcessorPtr MMM::ModelProcessorFactory::fromConfigFile |
( |
const std::string & |
configFile | ) |
|
|
static |
Convenient method to create a model processor via an XML config file. The XML tag '<ModelProcessorConfig type='FactoryName'>' is used to identitfy the factory, which is used to create a model processor. The model processor is intiialized with the passed config file.
The documentation for this class was generated from the following files:
- /builds/sw/mmm/core/MMM/Model/ModelProcessorFactory.h
- /builds/sw/mmm/core/MMM/Model/ModelProcessorFactory.cpp