LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
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 |