Rosetta Utilities  2014.35
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
basic::datacache::WriteableCacheableDataFactory Class Reference

#include <WriteableCacheableDataFactory.hh>

Public Types

typedef std::map< std::string,
WriteableCacheableDataCreatorOP
WriteableCacheableDataMap
 

Public Member Functions

virtual ~WriteableCacheableDataFactory ()
 
void factory_register (WriteableCacheableDataCreatorOP creator)
 add a WriteableCacheableData prototype, using its default type name as the map key More...
 
WriteableCacheableDataOP new_data_instance (std::string const &data_type_name, std::istream &in)
 Create a data instance given its identifying string. More...
 

Static Public Member Functions

static
WriteableCacheableDataFactory
get_instance ()
 static function to get the instance of ( pointer to) this singleton class More...
 

Private Member Functions

 WriteableCacheableDataFactory ()
 

Static Private Member Functions

static
WriteableCacheableDataFactory
create_singleton_instance ()
 private singleton creation function to be used with utility::thread::threadsafe_singleton More...
 

Private Attributes

WriteableCacheableDataMap data_creator_map_
 

Static Private Attributes

static
WriteableCacheableDataFactory
instance_
 

Member Typedef Documentation

Constructor & Destructor Documentation

virtual basic::datacache::WriteableCacheableDataFactory::~WriteableCacheableDataFactory ( )
inlinevirtual
basic::datacache::WriteableCacheableDataFactory::WriteableCacheableDataFactory ( )
inlineprivate

Member Function Documentation

WriteableCacheableDataFactory * basic::datacache::WriteableCacheableDataFactory::create_singleton_instance ( )
staticprivate

private singleton creation function to be used with utility::thread::threadsafe_singleton

References WriteableCacheableDataFactory().

Referenced by get_instance().

void basic::datacache::WriteableCacheableDataFactory::factory_register ( WriteableCacheableDataCreatorOP  creator)

add a WriteableCacheableData prototype, using its default type name as the map key

References data_creator_map_.

WriteableCacheableDataFactory * basic::datacache::WriteableCacheableDataFactory::get_instance ( )
static

static function to get the instance of ( pointer to) this singleton class

References create_singleton_instance(), instance_, and utility::thread::safely_create_singleton().

WriteableCacheableDataOP basic::datacache::WriteableCacheableDataFactory::new_data_instance ( std::string const &  data_type_name,
std::istream &  in 
)

Create a data instance given its identifying string.

return new Data instance by key lookup in data_creator_map_

References data_creator_map_, basic::Tracer::Error, and basic::datacache::tr.

Member Data Documentation

WriteableCacheableDataMap basic::datacache::WriteableCacheableDataFactory::data_creator_map_
private
WriteableCacheableDataFactory * basic::datacache::WriteableCacheableDataFactory::instance_
staticprivate

Referenced by get_instance().


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