lsst.afw  16.0-35-g34c7dfe62
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
lsst::afw::formatters::PropertyListFormatter Class Referenceabstract

Class implementing persistence and retrieval for PropertyLists. More...

#include <PropertyListFormatter.h>

Inheritance diagram for lsst::afw::formatters::PropertyListFormatter:
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

 ~PropertyListFormatter () override=default
 
 PropertyListFormatter (PropertyListFormatter const &)
 
 PropertyListFormatter (PropertyListFormatter &&)
 
PropertyListFormatter & operator= (PropertyListFormatter const &)
 
PropertyListFormatter & operator= (PropertyListFormatter &&)
 
void write (daf::base::Persistable const *persistable, std::shared_ptr< daf::persistence::FormatterStorage > storage, std::shared_ptr< daf::base::PropertySet > additionalData) override
 
daf::base::Persistable * read (std::shared_ptr< daf::persistence::FormatterStorage > storage, std::shared_ptr< daf::base::PropertySet > additionalData) override
 
void update (daf::base::Persistable *persistable, std::shared_ptr< daf::persistence::FormatterStorage > storage, std::shared_ptr< daf::base::PropertySet > additionalData) override
 
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< daf::persistence::Formatter > createInstance (std::shared_ptr< pex::policy::Policy > policy)
 
template<class Archive >
static void delegateSerialize (Archive &ar, int const version, 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 PropertyLists.

Definition at line 39 of file PropertyListFormatter.h.

Constructor & Destructor Documentation

◆ ~PropertyListFormatter()

lsst::afw::formatters::PropertyListFormatter::~PropertyListFormatter ( )
overridedefault

◆ PropertyListFormatter() [1/2]

lsst::afw::formatters::PropertyListFormatter::PropertyListFormatter ( PropertyListFormatter const &  )
default

◆ PropertyListFormatter() [2/2]

lsst::afw::formatters::PropertyListFormatter::PropertyListFormatter ( PropertyListFormatter &&  )
default

Member Function Documentation

◆ createInstance()

std::shared_ptr< lsst::daf::persistence::Formatter > lsst::afw::formatters::PropertyListFormatter::createInstance ( std::shared_ptr< pex::policy::Policy >  policy)
static

Definition at line 123 of file PropertyListFormatter.cc.

◆ delegateSerialize()

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

Definition at line 113 of file PropertyListFormatter.cc.

◆ operator=() [1/2]

PropertyListFormatter & lsst::afw::formatters::PropertyListFormatter::operator= ( PropertyListFormatter const &  )
default

◆ operator=() [2/2]

PropertyListFormatter & lsst::afw::formatters::PropertyListFormatter::operator= ( PropertyListFormatter &&  )
default

◆ read()

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

Definition at line 89 of file PropertyListFormatter.cc.

◆ update()

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

Definition at line 106 of file PropertyListFormatter.cc.

◆ write()

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

Definition at line 60 of file PropertyListFormatter.cc.


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