Factory singleton class that creates an UmbilicalModel from sdf. More...
#include <UmbilicalModel.hh>
Public Member Functions | |
UmbilicalModel * | CreateUmbilicalModel (sdf::ElementPtr _sdf, physics::ModelPtr _model) |
Create a ConversionFunction object according to its sdf Description. More... | |
bool | RegisterCreator (const std::string &_identifier, UmbilicalModelCreator _creator) |
Register an UmbilicalModel class with its creator. More... | |
Static Public Member Functions | |
static UmbilicalModelFactory & | GetInstance () |
Return the singleton instance of this factory. More... | |
Private Member Functions | |
UmbilicalModelFactory () | |
Constructor is private since this is a singleton. More... | |
Private Attributes | |
std::map< std::string, UmbilicalModelCreator > | creators_ |
Map of each registered identifiers to its corresponding creator. More... | |
Factory singleton class that creates an UmbilicalModel from sdf.
Definition at line 59 of file UmbilicalModel.hh.
|
inlineprivate |
Constructor is private since this is a singleton.
Definition at line 73 of file UmbilicalModel.hh.
UmbilicalModel * gazebo::UmbilicalModelFactory::CreateUmbilicalModel | ( | sdf::ElementPtr | _sdf, |
physics::ModelPtr | _model | ||
) |
Create a ConversionFunction object according to its sdf Description.
Definition at line 27 of file UmbilicalModel.cc.
|
static |
Return the singleton instance of this factory.
Definition at line 52 of file UmbilicalModel.cc.
bool gazebo::UmbilicalModelFactory::RegisterCreator | ( | const std::string & | _identifier, |
UmbilicalModelCreator | _creator | ||
) |
Register an UmbilicalModel class with its creator.
Definition at line 59 of file UmbilicalModel.cc.
|
private |
Map of each registered identifiers to its corresponding creator.
Definition at line 76 of file UmbilicalModel.hh.