Factory singleton class that creates a ThrusterDynamics from sdf. More...
#include <Dynamics.hh>
Public Member Functions | |
Dynamics * | CreateDynamics (sdf::ElementPtr _sdf) |
Create ThrusterDynamics object according to its sdf Description. More... | |
bool | RegisterCreator (const std::string &_identifier, DynamicsCreator _creator) |
Register a ThrusterDynamic class with its creator. More... | |
Static Public Member Functions | |
static DynamicsFactory & | GetInstance () |
Returns the singleton instance of this factory. More... | |
Private Member Functions | |
DynamicsFactory () | |
Constructor is private since this is a singleton. More... | |
Private Attributes | |
std::map< std::string, DynamicsCreator > | creators_ |
Map of each registered identifier to its corresponding creator. More... | |
Factory singleton class that creates a ThrusterDynamics from sdf.
Definition at line 60 of file Dynamics.hh.
|
inlineprivate |
Constructor is private since this is a singleton.
Definition at line 73 of file Dynamics.hh.
Dynamics * gazebo::DynamicsFactory::CreateDynamics | ( | sdf::ElementPtr | _sdf | ) |
Create ThrusterDynamics object according to its sdf Description.
Definition at line 30 of file Dynamics.cc.
|
static |
Returns the singleton instance of this factory.
Definition at line 52 of file Dynamics.cc.
bool gazebo::DynamicsFactory::RegisterCreator | ( | const std::string & | _identifier, |
DynamicsCreator | _creator | ||
) |
Register a ThrusterDynamic class with its creator.
Definition at line 59 of file Dynamics.cc.
|
private |
Map of each registered identifier to its corresponding creator.
Definition at line 76 of file Dynamics.hh.