![]() |
Rosetta
2021.16
|
#include <WriteableCacheableDataFactory.hh>

Public Types | |
| typedef std::map< std::string, WriteableCacheableDataCreatorOP > | WriteableCacheableDataMap |
Public Member Functions | |
| virtual | ~WriteableCacheableDataFactory ()=default |
| 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... | |
Public Member Functions inherited from utility::SingletonBase< WriteableCacheableDataFactory > | |
| SingletonBase () | |
| public constructor (the derived class must have a private constructor, of course). More... | |
Private Member Functions | |
| WriteableCacheableDataFactory () | |
Private Attributes | |
| WriteableCacheableDataMap | data_creator_map_ |
Friends | |
| class | utility::SingletonBase< WriteableCacheableDataFactory > |
Additional Inherited Members | |
Static Public Member Functions inherited from utility::SingletonBase< WriteableCacheableDataFactory > | |
| static WriteableCacheableDataFactory * | get_instance () |
| Safely instantiate a singleton class in a (possibly) multithreaded context. More... | |
| typedef std::map< std::string, WriteableCacheableDataCreatorOP > basic::datacache::WriteableCacheableDataFactory::WriteableCacheableDataMap |
|
virtualdefault |
|
inlineprivate |
| void basic::datacache::WriteableCacheableDataFactory::factory_register | ( | WriteableCacheableDataCreatorOP | creator | ) |
add a WriteableCacheableData prototype, using its default type name as the map key
References CREATE_EXCEPTION, and data_creator_map_.
| 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 CREATE_EXCEPTION, data_creator_map_, basic::Tracer::Error, and basic::datacache::tr.
|
friend |
|
private |
Referenced by factory_register(), and new_data_instance().
1.8.7