Rosetta  2021.16
 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 | Friends | List of all members
protocols::parser::DataLoaderFactory Class Reference

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>

Inheritance diagram for protocols::parser::DataLoaderFactory:
Inheritance 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...
 
LoaderMap const & loader_map () const
 

Static Public Member Functions

static std::string data_loader_ct_namer (std::string const &loader_name)
 

Private Member Functions

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

Private Attributes

LoaderMap dataloader_creator_map_
 

Friends

class utility::SingletonBase< DataLoaderFactory >
 

Detailed Description

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.

Member Typedef Documentation

Constructor & Destructor Documentation

protocols::parser::DataLoaderFactory::~DataLoaderFactory ( )
virtualdefault
protocols::parser::DataLoaderFactory::DataLoaderFactory ( )
privatedefault
protocols::parser::DataLoaderFactory::DataLoaderFactory ( DataLoaderFactory const &  )
privatedelete

Member Function Documentation

std::string protocols::parser::DataLoaderFactory::data_loader_ct_namer ( std::string const &  loader_name)
static
void protocols::parser::DataLoaderFactory::factory_register ( DataLoaderCreatorOP  creator)
DataLoaderFactory::LoaderMap const & protocols::parser::DataLoaderFactory::loader_map ( ) const
DataLoaderOP protocols::parser::DataLoaderFactory::newDataLoader ( std::string const &  loader_type) const

Create a DataLoader given its identifying string.

References dataloader_creator_map_.

DataLoaderFactory const& protocols::parser::DataLoaderFactory::operator= ( DataLoaderFactory const &  )
privatedelete

Friends And Related Function Documentation

friend class utility::SingletonBase< DataLoaderFactory >
friend

Member Data Documentation

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

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