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 implementing persistence and retrieval for Wcs objects. More...
#include <WcsFormatter.h>
Public Member Functions | |
virtual | ~WcsFormatter (void) |
virtual void | write (lsst::daf::base::Persistable const *persistable, lsst::daf::persistence::Storage::Ptr storage, lsst::daf::base::PropertySet::Ptr additionalData) |
virtual lsst::daf::base::Persistable * | read (lsst::daf::persistence::Storage::Ptr storage, lsst::daf::base::PropertySet::Ptr additionalData) |
virtual void | update (lsst::daf::base::Persistable *persistable, lsst::daf::persistence::Storage::Ptr storage, lsst::daf::base::PropertySet::Ptr additionalData) |
Public Member Functions inherited from lsst::daf::persistence::Formatter | |
virtual | ~Formatter (void) |
Public Member Functions inherited from lsst::daf::base::Citizen | |
Citizen (const std::type_info &) | |
Citizen (Citizen const &) | |
~Citizen () | |
Citizen & | operator= (Citizen const &) |
std::string | repr () const |
Return a string representation of a Citizen. More... | |
void | markPersistent (void) |
Mark a Citizen as persistent and not destroyed until process end. More... | |
memId | getId () const |
Return the Citizen's ID. More... | |
Static Public Member Functions | |
static lsst::daf::base::PropertyList::Ptr | generatePropertySet (lsst::afw::image::Wcs const &wcs) |
static lsst::daf::persistence::Formatter::Ptr | createInstance (lsst::pex::policy::Policy::Ptr policy) |
template<class Archive > | |
static void | delegateSerialize (Archive &ar, int const version, lsst::daf::base::Persistable *persistable) |
Static Public Member Functions inherited from lsst::daf::persistence::Formatter | |
static Formatter::Ptr | lookupFormatter (std::string const &persistableType, lsst::pex::policy::Policy::Ptr policy) |
static Formatter::Ptr | lookupFormatter (std::type_info const &persistableType, lsst::pex::policy::Policy::Ptr policy) |
Static Public Member Functions inherited from lsst::daf::base::Citizen | |
static bool | hasBeenCorrupted () |
Check all allocated blocks for corruption. More... | |
static memId | getNextMemId () |
Return the memId of the next object to be allocated. More... | |
static int | init () |
Called once when the memory system is being initialised. More... | |
static int | census (int, memId startingMemId=0) |
How many active Citizens are there? More... | |
static void | census (std::ostream &stream, memId startingMemId=0) |
Print a list of all active Citizens to stream, sorted by ID. More... | |
static const std::vector < const Citizen * > * | census () |
Return a (newly allocated) std::vector of active Citizens sorted by ID. More... | |
static memId | setNewCallbackId (memId id) |
Call the NewCallback when block is allocated. More... | |
static memId | setDeleteCallbackId (memId id) |
Call the current DeleteCallback when block is deleted. More... | |
static memNewCallback | setNewCallback (memNewCallback func) |
Set the NewCallback function. More... | |
static memCallback | setDeleteCallback (memCallback func) |
Set the DeleteCallback function. More... | |
static memCallback | setCorruptionCallback (memCallback func) |
Set the CorruptionCallback function. More... | |
Private Member Functions | |
WcsFormatter (lsst::pex::policy::Policy::Ptr policy) | |
Static Private Attributes | |
static lsst::daf::persistence::FormatterRegistration | registration |
Additional Inherited Members | |
Public Types inherited from lsst::daf::persistence::Formatter | |
typedef boost::shared_ptr < Formatter > | Ptr |
typedef Ptr(* | FactoryPtr )(lsst::pex::policy::Policy::Ptr) |
Public Types inherited from lsst::daf::base::Citizen | |
enum | { magicSentinel = 0xdeadbeef } |
typedef unsigned long | memId |
Type of the block's ID. More... | |
typedef memId(* | memNewCallback )(const memId cid) |
A function used to register a callback. More... | |
typedef memId(* | memCallback )(const Citizen *ptr) |
Protected Member Functions inherited from lsst::daf::persistence::Formatter | |
Formatter (std::type_info const &type) | |
Class implementing persistence and retrieval for Wcs objects.
Definition at line 55 of file WcsFormatter.h.
|
virtual |
Definition at line 84 of file WcsFormatter.cc.
|
explicitprivate |
Definition at line 79 of file WcsFormatter.cc.
|
static |
Definition at line 245 of file WcsFormatter.cc.
|
static |
Definition at line 179 of file WcsFormatter.cc.
|
static |
Definition at line 140 of file WcsFormatter.cc.
|
virtual |
Read a Persistable instance from a Storage instance.
[in] | storage | Pointer to the Storage instance. |
[in] | additionalData | Additional data used to find the proper instance within the Storage. |
Implements lsst::daf::persistence::Formatter.
Definition at line 107 of file WcsFormatter.cc.
|
virtual |
Update an existing Persistable instance with information from an additional Storage instance.
[in,out] | persistable | Pointer to the Persistable instance. |
[in] | storage | Shared pointer to the additional Storage instance. |
[in] | additionalData | Additional data used to find the proper instance within the Storage. |
Implements lsst::daf::persistence::Formatter.
Definition at line 132 of file WcsFormatter.cc.
|
virtual |
Write a Persistable instance to a Storage instance.
[in] | persistable | Pointer to the Persistable instance. |
[in] | storage | Shared pointer to the Storage instance. |
[in] | additionalData | Additional data used to find the proper place to put the instance into the Storage. |
Implements lsst::daf::persistence::Formatter.
Definition at line 87 of file WcsFormatter.cc.
|
staticprivate |
Definition at line 91 of file WcsFormatter.h.