Factory singleton class that creates a ConversionFunction from sdf. More...
#include <ThrusterConversionFcn.hh>
Public Member Functions | |
ConversionFunction * | CreateConversionFunction (sdf::ElementPtr _sdf) |
Create a ConversionFunction object according to its sdf Description. More... | |
bool | RegisterCreator (const std::string &_identifier, ConversionFunctionCreator _creator) |
Register a ConversionFunction class with its creator. More... | |
Static Public Member Functions | |
static ConversionFunctionFactory & | GetInstance () |
Return the singleton instance of this factory. More... | |
Private Member Functions | |
ConversionFunctionFactory () | |
Constructor is private since this is a singleton. More... | |
Private Attributes | |
std::map< std::string, ConversionFunctionCreator > | creators_ |
Map of each registered identifiers to its corresponding creator. More... | |
Factory singleton class that creates a ConversionFunction from sdf.
Definition at line 58 of file ThrusterConversionFcn.hh.
|
inlineprivate |
Constructor is private since this is a singleton.
Definition at line 71 of file ThrusterConversionFcn.hh.
ConversionFunction * gazebo::ConversionFunctionFactory::CreateConversionFunction | ( | sdf::ElementPtr | _sdf | ) |
Create a ConversionFunction object according to its sdf Description.
Definition at line 23 of file ThrusterConversionFcn.cc.
|
static |
Return the singleton instance of this factory.
Definition at line 45 of file ThrusterConversionFcn.cc.
bool gazebo::ConversionFunctionFactory::RegisterCreator | ( | const std::string & | _identifier, |
ConversionFunctionCreator | _creator | ||
) |
Register a ConversionFunction class with its creator.
Definition at line 52 of file ThrusterConversionFcn.cc.
|
private |
Map of each registered identifiers to its corresponding creator.
Definition at line 74 of file ThrusterConversionFcn.hh.