LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
Class to register Storage subclasses. More...
#include <StorageRegistry.h>
Public Member Functions | |
Storage::Ptr | createInstance (std::string const &name) |
Static Public Member Functions | |
static StorageRegistry & | getRegistry (void) |
Private Member Functions | |
StorageRegistry (void) | |
~StorageRegistry (void) | |
StorageRegistry (StorageRegistry const &) | |
StorageRegistry & | operator= (StorageRegistry const &) |
Class to register Storage subclasses.
A registry so that subclasses can be looked up by name.
Definition at line 56 of file StorageRegistry.h.
|
private |
Constructor.
Definition at line 63 of file StorageRegistry.cc.
|
private |
Minimal destructor. Do not destroy the Storage subclasses in case they are needed at static destruction time.
Definition at line 70 of file StorageRegistry.cc.
|
private |
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.
|
private |