Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
gazebo::HydrodynamicModelFactory Class Reference

Factory singleton class that creates a HydrodynamicModel from sdf. More...

#include <HydrodynamicModel.hh>

Public Member Functions

HydrodynamicModelCreateHydrodynamicModel (sdf::ElementPtr _sdf, physics::LinkPtr _link)
 Create HydrodynamicModel object according to its sdf Description. More...
 
bool RegisterCreator (const std::string &_identifier, HydrodynamicModelCreator _creator)
 Register a class with its creator. More...
 

Static Public Member Functions

static HydrodynamicModelFactoryGetInstance ()
 Returns the singleton instance of this factory. More...
 

Private Member Functions

 HydrodynamicModelFactory ()
 Constructor is private since this is a singleton. More...
 

Private Attributes

std::map< std::string, HydrodynamicModelCreatorcreators_
 Map of each registered identifier to its corresponding creator. More...
 

Detailed Description

Factory singleton class that creates a HydrodynamicModel from sdf.

Definition at line 114 of file HydrodynamicModel.hh.

Constructor & Destructor Documentation

gazebo::HydrodynamicModelFactory::HydrodynamicModelFactory ( )
inlineprivate

Constructor is private since this is a singleton.

Definition at line 128 of file HydrodynamicModel.hh.

Member Function Documentation

HydrodynamicModel * gazebo::HydrodynamicModelFactory::CreateHydrodynamicModel ( sdf::ElementPtr  _sdf,
physics::LinkPtr  _link 
)

Create HydrodynamicModel object according to its sdf Description.

Definition at line 161 of file HydrodynamicModel.cc.

HydrodynamicModelFactory & gazebo::HydrodynamicModelFactory::GetInstance ( )
static

Returns the singleton instance of this factory.

Definition at line 186 of file HydrodynamicModel.cc.

bool gazebo::HydrodynamicModelFactory::RegisterCreator ( const std::string &  _identifier,
HydrodynamicModelCreator  _creator 
)

Register a class with its creator.

Definition at line 193 of file HydrodynamicModel.cc.

Member Data Documentation

std::map<std::string, HydrodynamicModelCreator> gazebo::HydrodynamicModelFactory::creators_
private

Map of each registered identifier to its corresponding creator.

Definition at line 131 of file HydrodynamicModel.hh.


The documentation for this class was generated from the following files:


uuv_gazebo_plugins
Author(s): Musa Morena Marcusso Manhaes , Sebastian Scherer , Luiz Ricardo Douat
autogenerated on Thu Jun 18 2020 03:28:24