Privacy
An open-source, flexible 3D physical simulation framework
mars::entity_generation::EntityFactoryManager Class Reference

#include <EntityFactoryManager.h>

Public Member Functions

 EntityFactoryManager (lib_manager::LibManager *theManager)
 
 ~EntityFactoryManager ()
 
int getLibVersion () const
 
const std::string getLibName () const
 
 CREATE_MODULE_INFO ()
 
void init ()
 
void reset ()
 
void update (interfaces::sReal time_ms)
 
virtual void cfgUpdateProperty (cfg_manager::cfgPropertyStruct _property)
 
virtual void registerFactory (const std::string type, EntityFactoryInterface *factory)
 
virtual unsigned long createEntity (configmaps::ConfigMap &config)
 
virtual unsigned long createEntity (std::string configfile)
 
- Public Member Functions inherited from mars::interfaces::MarsPluginTemplate
 MarsPluginTemplate (lib_manager::LibManager *theManager, std::string libName)
 
 ~MarsPluginTemplate ()
 
- Public Member Functions inherited from lib_manager::LibInterface
 LibInterface (LibManager *theManager)
 
virtual ~LibInterface (void)
 
ModuleInfo getModuleInfo () const
 
virtual void newLibLoaded (const std::string &libName)
 
virtual void createModuleInfo (void)
 
- Public Member Functions inherited from mars::interfaces::PluginInterface
 PluginInterface (ControlCenter *control)
 
virtual ~PluginInterface (void)
 
virtual void handleError (void)
 
virtual void getSomeData (void *data)
 
- Public Member Functions inherited from mars::cfg_manager::CFGClient
 CFGClient ()
 
virtual ~CFGClient ()
 
virtual void cfgParamCreated (cfgParamId _id)
 
virtual void cfgParamRemoved (cfgParamId _id)
 

Private Attributes

std::map< std::string, EntityFactoryInterface * > factories
 
utils::Mutex iMutex
 

Additional Inherited Members

- Protected Attributes inherited from mars::interfaces::MarsPluginTemplate
std::string configPath
 
std::string resourcesPath
 
- Protected Attributes inherited from lib_manager::LibInterface
LibManagerlibManager
 
ModuleInfo moduleInfo
 
- Protected Attributes inherited from mars::interfaces::PluginInterface
ControlCentercontrol
 

Detailed Description

Definition at line 50 of file EntityFactoryManager.h.

Constructor & Destructor Documentation

◆ EntityFactoryManager()

mars::entity_generation::EntityFactoryManager::EntityFactoryManager ( lib_manager::LibManager theManager)

Definition at line 43 of file EntityFactoryManager.cpp.

◆ ~EntityFactoryManager()

mars::entity_generation::EntityFactoryManager::~EntityFactoryManager ( )

Definition at line 54 of file EntityFactoryManager.cpp.

Member Function Documentation

◆ cfgUpdateProperty()

void mars::entity_generation::EntityFactoryManager::cfgUpdateProperty ( cfg_manager::cfgPropertyStruct  _property)
virtual

Reimplemented from mars::cfg_manager::CFGClient.

Definition at line 60 of file EntityFactoryManager.cpp.

◆ CREATE_MODULE_INFO()

mars::entity_generation::EntityFactoryManager::CREATE_MODULE_INFO ( )

◆ createEntity() [1/2]

unsigned long mars::entity_generation::EntityFactoryManager::createEntity ( configmaps::ConfigMap config)
virtual

Definition at line 70 of file EntityFactoryManager.cpp.

◆ createEntity() [2/2]

unsigned long mars::entity_generation::EntityFactoryManager::createEntity ( std::string  configfile)
virtual

Definition at line 92 of file EntityFactoryManager.cpp.

◆ getLibName()

const std::string mars::entity_generation::EntityFactoryManager::getLibName ( ) const
inlinevirtual

Implements lib_manager::LibInterface.

Definition at line 61 of file EntityFactoryManager.h.

◆ getLibVersion()

int mars::entity_generation::EntityFactoryManager::getLibVersion ( ) const
inlinevirtual

Implements lib_manager::LibInterface.

Definition at line 58 of file EntityFactoryManager.h.

◆ init()

void mars::entity_generation::EntityFactoryManager::init ( void  )
virtual

Implements mars::interfaces::PluginInterface.

Definition at line 47 of file EntityFactoryManager.cpp.

◆ registerFactory()

void mars::entity_generation::EntityFactoryManager::registerFactory ( const std::string  type,
EntityFactoryInterface factory 
)
virtual

Definition at line 63 of file EntityFactoryManager.cpp.

◆ reset()

void mars::entity_generation::EntityFactoryManager::reset ( void  )
virtual

Implements mars::interfaces::PluginInterface.

Definition at line 51 of file EntityFactoryManager.cpp.

◆ update()

void mars::entity_generation::EntityFactoryManager::update ( interfaces::sReal  time_ms)
virtual

Implements mars::interfaces::PluginInterface.

Definition at line 57 of file EntityFactoryManager.cpp.

Member Data Documentation

◆ factories

std::map<std::string, EntityFactoryInterface*> mars::entity_generation::EntityFactoryManager::factories
private

Definition at line 82 of file EntityFactoryManager.h.

◆ iMutex

utils::Mutex mars::entity_generation::EntityFactoryManager::iMutex
mutableprivate

Definition at line 83 of file EntityFactoryManager.h.


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