![]() |
COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
|
Factory class to buikd options dynamically. More...
#include <OptionFactory.hpp>
Public Member Functions | |
| void | register_builder (const std::string &type, const boost::shared_ptr< OptionBuilder > &builder) |
| Register a builder with the given type. More... | |
| boost::shared_ptr< Option > | create_option (const std::string &name, const std::string &type, const boost::any &default_value) |
| Create an option with the given type and default value, passed as a string or vector of strings. More... | |
Static Public Member Functions | |
| static OptionFactory & | instance () |
| Singleton instance. More... | |
Private Member Functions | |
| OptionFactory () | |
Private Attributes | |
| std::map< std::string, boost::shared_ptr< OptionBuilder > > | m_builders |
Factory class to buikd options dynamically.
Definition at line 34 of file OptionFactory.hpp.
|
private |
Definition at line 44 of file OptionFactory.cpp.
| boost::shared_ptr< Option > create_option | ( | const std::string & | name, |
| const std::string & | type, | ||
| const boost::any & | default_value | ||
| ) |
Create an option with the given type and default value, passed as a string or vector of strings.
Definition at line 28 of file OptionFactory.cpp.
|
static |
Singleton instance.
Definition at line 22 of file OptionFactory.cpp.
| void register_builder | ( | const std::string & | type, |
| const boost::shared_ptr< OptionBuilder > & | builder | ||
| ) |
Register a builder with the given type.
Definition at line 37 of file OptionFactory.cpp.
|
private |
Definition at line 50 of file OptionFactory.hpp.
1.8.9.1
|
Send comments to: COOLFluiD Web Admin |