Factory singleton class that creates a LiftDrag from sdf. More...
#include <LiftDragModel.hh>
Public Member Functions | |
LiftDrag * | CreateLiftDrag (sdf::ElementPtr _sdf) |
Create LiftDrag object according to its sdf Description. More... | |
bool | RegisterCreator (const std::string &_identifier, LiftDragCreator _creator) |
Register a LiftDrag class with its creator. More... | |
Static Public Member Functions | |
static LiftDragFactory & | GetInstance () |
Returns the singleton instance of this factory. More... | |
Private Member Functions | |
LiftDragFactory () | |
Constructor is private since this is a singleton. More... | |
Private Attributes | |
std::map< std::string, LiftDragCreator > | creators_ |
Map of each registered identifier to its corresponding creator. More... | |
Factory singleton class that creates a LiftDrag from sdf.
Definition at line 69 of file LiftDragModel.hh.
|
inlineprivate |
Constructor is private since this is a singleton.
Definition at line 82 of file LiftDragModel.hh.
LiftDrag * gazebo::LiftDragFactory::CreateLiftDrag | ( | sdf::ElementPtr | _sdf | ) |
Create LiftDrag object according to its sdf Description.
Definition at line 37 of file LiftDragModel.cc.
|
static |
Returns the singleton instance of this factory.
Definition at line 59 of file LiftDragModel.cc.
bool gazebo::LiftDragFactory::RegisterCreator | ( | const std::string & | _identifier, |
LiftDragCreator | _creator | ||
) |
Register a LiftDrag class with its creator.
Definition at line 66 of file LiftDragModel.cc.
|
private |
Map of each registered identifier to its corresponding creator.
Definition at line 85 of file LiftDragModel.hh.