![]() |
Rosetta Utilities
2014.35
|
#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_ |
typedef std::map< std::string, WriteableCacheableDataCreatorOP > basic::datacache::WriteableCacheableDataFactory::WriteableCacheableDataMap |
|
inlinevirtual |
|
inlineprivate |
Referenced by 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_.
|
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.
|
private |
Referenced by factory_register(), and new_data_instance().
|
staticprivate |
Referenced by get_instance().