Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
protocols::jd2::parser::DataLoaderFactory Class Reference

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>

Collaboration diagram for protocols::jd2::parser::DataLoaderFactory:
Collaboration graph
[legend]

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 DataLoaderFactoryget_instance ()
 

Private Member Functions

 DataLoaderFactory ()
 
 DataLoaderFactory (DataLoaderFactory const &)
 
DataLoaderFactory const & operator= (DataLoaderFactory const &)
 

Private Attributes

LoaderMap dataloader_creator_map_
 

Static Private Attributes

static DataLoaderFactoryinstance_
 Singleton instance pointer. More...
 

Detailed Description

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.

Member Typedef Documentation

Constructor & Destructor Documentation

protocols::jd2::parser::DataLoaderFactory::~DataLoaderFactory ( )
virtual
protocols::jd2::parser::DataLoaderFactory::DataLoaderFactory ( )
private

Referenced by get_instance().

protocols::jd2::parser::DataLoaderFactory::DataLoaderFactory ( DataLoaderFactory const &  )
private

Member Function Documentation

void protocols::jd2::parser::DataLoaderFactory::factory_register ( DataLoaderCreatorOP  creator)
DataLoaderFactory * protocols::jd2::parser::DataLoaderFactory::get_instance ( )
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_.

DataLoaderFactory const& protocols::jd2::parser::DataLoaderFactory::operator= ( DataLoaderFactory const &  )
private

Member Data Documentation

LoaderMap protocols::jd2::parser::DataLoaderFactory::dataloader_creator_map_
private

Referenced by factory_register(), and newDataLoader().

DataLoaderFactory * protocols::jd2::parser::DataLoaderFactory::instance_
staticprivate

Singleton instance pointer.

Referenced by get_instance().


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