lsst.afw  14.0-25-g0e8fc950e+6
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
lsst::afw::detection::PsfFormatter Class Referenceabstract

Formatter for persistence of Psf instances. More...

#include <PsfFormatter.h>

Inheritance diagram for lsst::afw::detection::PsfFormatter:
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 ~PsfFormatter (void)
 Minimal destructor. More...
 
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

template<class Archive >
static void delegateSerialize (Archive &ar, unsigned int const version, lsst::daf::base::Persistable *persistable)
 Serialize a Psf to a Boost archive. More...
 
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

Formatter for persistence of Psf instances.

Definition at line 21 of file PsfFormatter.h.

Constructor & Destructor Documentation

◆ ~PsfFormatter()

lsst::afw::detection::PsfFormatter::~PsfFormatter ( void  )
virtual

Minimal destructor.

Definition at line 42 of file PsfFormatter.cc.

Member Function Documentation

◆ delegateSerialize()

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

Serialize a Psf to a Boost archive.

Handles text or XML archives, input or output.

Parameters
[in,out]arBoost archive
[in]versionVersion of the Psf class
[in]persistablepersistable Pointer to the Psf as a Persistable

Definition at line 99 of file PsfFormatter.cc.

◆ read()

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

Definition at line 70 of file PsfFormatter.cc.

◆ update()

void lsst::afw::detection::PsfFormatter::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 93 of file PsfFormatter.cc.

◆ write()

void lsst::afw::detection::PsfFormatter::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 44 of file PsfFormatter.cc.


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