lsst.daf.persistence
15.0-7-g0c26201
|
Class for FITS file storage. More...
#include <FitsStorage.h>
Public Types | |
typedef std::shared_ptr< FitsStorage > | Ptr |
typedef std::vector< Ptr > | List |
typedef unsigned long | memId |
typedef memId(* | memNewCallback) (const memId cid) |
typedef memId(* | memCallback) (const Citizen *ptr) |
Public Member Functions | |
FitsStorage (void) | |
Constructor. More... | |
virtual | ~FitsStorage (void) |
Destructor. More... | |
virtual void | setPolicy (lsst::pex::policy::Policy::Ptr policy) |
Allow a Policy to be used to configure the FitsStorage. More... | |
virtual void | setPersistLocation (LogicalLocation const &location) |
Set the destination of the FITS file for persistence. More... | |
virtual void | setRetrieveLocation (LogicalLocation const &location) |
Set the source of the FITS file for retrieval. More... | |
virtual void | startTransaction (void) |
Start a transaction. More... | |
virtual void | endTransaction (void) |
End a transaction. More... | |
virtual std::string const & | getPath (void) |
Return the pathname for the FITS file. More... | |
virtual int | getHdu (void) |
Return the HDU to read from the FITS file. More... | |
std::string | repr () const |
void | markPersistent (void) |
memId | getId () const |
Static Public Member Functions | |
static Ptr | createInstance (std::string const &name, LogicalLocation const &location, bool persist, lsst::pex::policy::Policy::Ptr policy) |
Create and configure a FormatterStorage subclass instance. More... | |
static bool | hasBeenCorrupted () |
static memId | getNextMemId () |
static int | init () |
static int | census (int, memId startingMemId=0) |
static void | census (std::ostream &stream, memId startingMemId=0) |
static const std::vector< const Citizen *> * | census () |
static int | census (int, memId startingMemId=0) |
static void | census (std::ostream &stream, memId startingMemId=0) |
static const std::vector< const Citizen *> * | census () |
static memId | setNewCallbackId (memId id) |
static memId | setNewCallbackId (memId id) |
static memId | setDeleteCallbackId (memId id) |
static memId | setDeleteCallbackId (memId id) |
static memNewCallback | setNewCallback (memNewCallback func) |
static memCallback | setDeleteCallback (memCallback func) |
static memCallback | setCorruptionCallback (memCallback func) |
Public Attributes | |
magicSentinel | |
Protected Member Functions | |
void | verifyPathName (std::string const &pathName) |
Ensure that all directories along a path exist, creating them if necessary. More... | |
Class for FITS file storage.
Merely maintains pathname and HDU number for Formatter subclasses to use.
Definition at line 52 of file FitsStorage.h.
|
inherited |
Definition at line 63 of file FormatterStorage.h.
Definition at line 54 of file FitsStorage.h.
lsst::daf::persistence::FitsStorage::FitsStorage | ( | void | ) |
Constructor.
Definition at line 55 of file FitsStorage.cc.
|
virtual |
Destructor.
Definition at line 60 of file FitsStorage.cc.
|
staticinherited |
Create and configure a FormatterStorage subclass instance.
[in] | name | Name of subclass |
[in] | location | Location to persist to or retrieve from |
[in] | persist | True if persisting, false if retrieving |
[in] | policy | Policy used to configure the FormatterStorage |
Definition at line 75 of file FormatterStorage.cc.
|
virtual |
End a transaction.
No transaction support for now.
Implements lsst::daf::persistence::FormatterStorage.
Definition at line 102 of file FitsStorage.cc.
|
virtual |
Return the HDU to read from the FITS file.
Definition at line 115 of file FitsStorage.cc.
|
virtual |
Return the pathname for the FITS file.
Definition at line 108 of file FitsStorage.cc.
|
virtual |
Set the destination of the FITS file for persistence.
[in] | location | Pathname to write to. |
Implements lsst::daf::persistence::FormatterStorage.
Definition at line 72 of file FitsStorage.cc.
|
virtual |
Allow a Policy to be used to configure the FitsStorage.
[in] | policy |
Implements lsst::daf::persistence::FormatterStorage.
Definition at line 66 of file FitsStorage.cc.
|
virtual |
Set the source of the FITS file for retrieval.
[in] | location | Pathname to read from, optionally followed by bracketed HDU number. |
Implements lsst::daf::persistence::FormatterStorage.
Definition at line 82 of file FitsStorage.cc.
|
virtual |
Start a transaction.
No transaction support for now.
Implements lsst::daf::persistence::FormatterStorage.
Definition at line 96 of file FitsStorage.cc.
|
protectedinherited |
Ensure that all directories along a path exist, creating them if necessary.
[in] | name | Pathname to file to be created |
Definition at line 93 of file FormatterStorage.cc.