#include <LayoutsFactory.hh>
Public Types | |
typedef std::auto_ptr< Layout >(* | create_function_t) (const params_t ¶ms) |
typedef FactoryParams | params_t |
Public Member Functions | |
std::auto_ptr< Layout > | create (const std::string &class_name, const params_t ¶ms) |
bool | registed (const std::string &class_name) const |
void | registerCreator (const std::string &class_name, create_function_t create_function) |
Static Public Member Functions | |
static LayoutsFactory & | getInstance () |
Private Types | |
typedef creators_t::const_iterator | const_iterator |
typedef std::map< std::string, create_function_t > | creators_t |
Private Member Functions | |
LayoutsFactory () | |
Private Attributes | |
creators_t | creators_ |
Definition at line 12 of file LayoutsFactory.hh.
|
private |
Definition at line 27 of file LayoutsFactory.hh.
Definition at line 16 of file LayoutsFactory.hh.
|
private |
Definition at line 24 of file LayoutsFactory.hh.
Definition at line 15 of file LayoutsFactory.hh.
|
inlineprivate |
Definition at line 24 of file LayoutsFactory.hh.
std::auto_ptr<Layout> LayoutsFactory::create | ( | const std::string & | class_name, |
const params_t & | params | ||
) |
|
static |
bool LayoutsFactory::registed | ( | const std::string & | class_name | ) | const |
void LayoutsFactory::registerCreator | ( | const std::string & | class_name, |
create_function_t | create_function | ||
) |
|
private |
Definition at line 29 of file LayoutsFactory.hh.