lsst.afw  14.0-17-gfc02bf727
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
lsst::afw::formatters::WcsFormatter Class Referenceabstract

Class implementing persistence and retrieval for Wcs objects. More...

#include <WcsFormatter.h>

Inheritance diagram for lsst::afw::formatters::WcsFormatter:
lsst::daf::persistence::Formatter lsst::daf::base::Citizen

Public Types

typedef std::shared_ptr< Formatter > Ptr
 
typedef Ptr(* FactoryPtr) (lsst::pex::policy::Policy::Ptr)
 
typedef unsigned long memId
 
typedef memId(* memNewCallback) (const memId cid)
 
typedef memId(* memCallback) (const Citizen *ptr)
 

Public Member Functions

virtual ~WcsFormatter (void)
 
virtual void write (lsst::daf::base::Persistable const *persistable, std::shared_ptr< lsst::daf::persistence::FormatterStorage > storage, std::shared_ptr< lsst::daf::base::PropertySet > additionalData)
 
virtual lsst::daf::base::Persistable * read (std::shared_ptr< lsst::daf::persistence::FormatterStorage > storage, std::shared_ptr< lsst::daf::base::PropertySet > additionalData)
 
virtual void update (lsst::daf::base::Persistable *persistable, std::shared_ptr< lsst::daf::persistence::FormatterStorage > storage, std::shared_ptr< lsst::daf::base::PropertySet > additionalData)
 
virtual void write (lsst::daf::base::Persistable const *persistable, FormatterStorage::Ptr storage, lsst::daf::base::PropertySet::Ptr additionalData)=0
 
virtual lsst::daf::base::Persistable * read (FormatterStorage::Ptr storage, lsst::daf::base::PropertySet::Ptr additionalData)=0
 
virtual void update (lsst::daf::base::Persistable *persistable, FormatterStorage::Ptr storage, lsst::daf::base::PropertySet::Ptr additionalData)=0
 
std::string repr () const
 
void markPersistent (void)
 
memId getId () const
 

Static Public Member Functions

static std::shared_ptr< lsst::daf::base::PropertyList > generatePropertySet (lsst::afw::image::Wcs const &wcs)
 
static std::shared_ptr< lsst::daf::persistence::Formatter > createInstance (std::shared_ptr< lsst::pex::policy::Policy > policy)
 
template<class Archive >
static void delegateSerialize (Archive &ar, int const version, lsst::daf::base::Persistable *persistable)
 
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 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
 

Detailed Description

Class implementing persistence and retrieval for Wcs objects.

Definition at line 45 of file WcsFormatter.h.

Constructor & Destructor Documentation

◆ ~WcsFormatter()

lsst::afw::formatters::WcsFormatter::~WcsFormatter ( void  )
virtual

Definition at line 73 of file WcsFormatter.cc.

Member Function Documentation

◆ createInstance()

std::shared_ptr< dafPersist::Formatter > lsst::afw::formatters::WcsFormatter::createInstance ( std::shared_ptr< lsst::pex::policy::Policy >  policy)
static

Definition at line 227 of file WcsFormatter.cc.

◆ delegateSerialize()

template<class Archive >
void lsst::afw::formatters::WcsFormatter::delegateSerialize ( Archive &  ar,
int const  version,
lsst::daf::base::Persistable *  persistable 
)
static

Definition at line 166 of file WcsFormatter.cc.

◆ generatePropertySet()

std::shared_ptr< dafBase::PropertyList > lsst::afw::formatters::WcsFormatter::generatePropertySet ( lsst::afw::image::Wcs const &  wcs)
static

Definition at line 123 of file WcsFormatter.cc.

◆ read()

dafBase::Persistable * lsst::afw::formatters::WcsFormatter::read ( std::shared_ptr< lsst::daf::persistence::FormatterStorage >  storage,
std::shared_ptr< lsst::daf::base::PropertySet >  additionalData 
)
virtual

Definition at line 94 of file WcsFormatter.cc.

◆ update()

void lsst::afw::formatters::WcsFormatter::update ( lsst::daf::base::Persistable *  persistable,
std::shared_ptr< lsst::daf::persistence::FormatterStorage >  storage,
std::shared_ptr< lsst::daf::base::PropertySet >  additionalData 
)
virtual

Definition at line 118 of file WcsFormatter.cc.

◆ write()

void lsst::afw::formatters::WcsFormatter::write ( lsst::daf::base::Persistable const *  persistable,
std::shared_ptr< lsst::daf::persistence::FormatterStorage >  storage,
std::shared_ptr< lsst::daf::base::PropertySet >  additionalData 
)
virtual

Definition at line 75 of file WcsFormatter.cc.


The documentation for this class was generated from the following files: