lsst.daf.persistence
13.0-11-gfc17871
|
Class to register Storage subclasses. More...
#include <StorageRegistry.h>
Public Member Functions | |
Storage::Ptr | createInstance (std::string const &name) |
Create a Storage subclass instance by name. More... | |
Static Public Member Functions | |
static StorageRegistry & | getRegistry (void) |
Return a reference to a subclass registry. More... | |
Class to register Storage subclasses.
A registry so that subclasses can be looked up by name.
Definition at line 56 of file StorageRegistry.h.
Storage::Ptr lsst::daf::persistence::StorageRegistry::createInstance | ( | std::string const & | name | ) |
Create a Storage subclass instance by name.
[in] | name | Name of subclass |
All Storage subclasses must be listed here. Implemented as code; could be a lookup in a data structure.
Definition at line 80 of file StorageRegistry.cc.
|
static |
Return a reference to a subclass registry.
Used to guarantee initialization of the registry before use.
Definition at line 104 of file StorageRegistry.cc.