![]() |
Rosetta Protocols
2014.16.56682
|
A factory for creating DataLoaders, which are able to load arbitrary data into the basic::datacache::DataMap used in the XML-based parser. This factory supports the load-time registration scheme allowing DataLoaders to be defined in libraries outside of protocols.lib. More...
#include <DataLoaderFactory.hh>
Public Types | |
| typedef std::map< std::string, DataLoaderCreatorOP > | LoaderMap |
Public Member Functions | |
| virtual | ~DataLoaderFactory () |
| void | factory_register (DataLoaderCreatorOP creator) |
| DataLoaderOP | newDataLoader (std::string const &) const |
| Create a DataLoader given its identifying string. More... | |
Static Public Member Functions | |
| static DataLoaderFactory * | get_instance () |
| static function to get the instance of ( pointer to) this singleton class More... | |
Private Member Functions | |
| DataLoaderFactory () | |
| DataLoaderFactory (DataLoaderFactory const &) | |
| DataLoaderFactory const & | operator= (DataLoaderFactory const &) |
Static Private Member Functions | |
| static DataLoaderFactory * | create_singleton_instance () |
| private singleton creation function to be used with utility::thread::threadsafe_singleton More... | |
Private Attributes | |
| LoaderMap | dataloader_creator_map_ |
Static Private Attributes | |
| static DataLoaderFactory * | instance_ |
| Singleton instance pointer. More... | |
A factory for creating DataLoaders, which are able to load arbitrary data into the basic::datacache::DataMap used in the XML-based parser. This factory supports the load-time registration scheme allowing DataLoaders to be defined in libraries outside of protocols.lib.
| typedef std::map< std::string, DataLoaderCreatorOP > protocols::jd2::parser::DataLoaderFactory::LoaderMap |
|
virtual |
|
private |
Referenced by create_singleton_instance().
|
private |
|
staticprivate |
private singleton creation function to be used with utility::thread::threadsafe_singleton
References DataLoaderFactory().
Referenced by get_instance().
| void protocols::jd2::parser::DataLoaderFactory::factory_register | ( | DataLoaderCreatorOP | creator | ) |
References dataloader_creator_map_, runtime_assert, and utility_exit_with_message.
|
static |
static function to get the instance of ( pointer to) this singleton class
References create_singleton_instance(), instance_, and utility::thread::safely_create_singleton().
| DataLoaderOP protocols::jd2::parser::DataLoaderFactory::newDataLoader | ( | std::string const & | loader_type | ) | const |
Create a DataLoader given its identifying string.
References dataloader_creator_map_, and utility_exit_with_message.
|
private |
|
private |
Referenced by factory_register(), and newDataLoader().
|
staticprivate |
Singleton instance pointer.
Referenced by get_instance().
1.8.7