Rosetta 3.5
|
A factory for creating DataLoaders, which are able to load arbitrary data into the 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 () |
Private Member Functions | |
DataLoaderFactory () | |
DataLoaderFactory (DataLoaderFactory const &) | |
DataLoaderFactory const & | operator= (DataLoaderFactory const &) |
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 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 get_instance().
|
private |
void protocols::jd2::parser::DataLoaderFactory::factory_register | ( | DataLoaderCreatorOP | creator) |
References dataloader_creator_map_.
|
static |
References DataLoaderFactory(), and instance_.
DataLoaderOP protocols::jd2::parser::DataLoaderFactory::newDataLoader | ( | std::string const & | loader_type) | const |
Create a DataLoader given its identifying string.
References dataloader_creator_map_.
|
private |
|
private |
Referenced by factory_register(), and newDataLoader().
|
staticprivate |
Singleton instance pointer.
Referenced by get_instance().