lsst.daf.persistence  13.0-30-gd2bda26+1
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Public Member Functions | Static Public Member Functions | List of all members
lsst::daf::persistence::PropertySetFormatter Class Reference

Formatter for persistence of PropertySet instances. More...

#include <PropertySetFormatter.h>

Inheritance diagram for lsst::daf::persistence::PropertySetFormatter:
lsst::daf::persistence::Formatter

Public Member Functions

virtual ~PropertySetFormatter (void)
 Minimal destructor. More...
 
virtual void write (dafBase::Persistable const *persistable, dafPersist::FormatterStorage::Ptr storage, dafBase::PropertySet::Ptr additionalData)
 
virtual dafBase::Persistable * read (dafPersist::FormatterStorage::Ptr storage, dafBase::PropertySet::Ptr additionalData)
 
virtual void update (dafBase::Persistable *persistable, dafPersist::FormatterStorage::Ptr storage, dafBase::PropertySet::Ptr additionalData)
 
- Public Member Functions inherited from lsst::daf::persistence::Formatter
virtual ~Formatter (void)
 Minimal destructor. More...
 
virtual void write (lsst::daf::base::Persistable const *persistable, FormatterStorage::Ptr storage, lsst::daf::base::PropertySet::Ptr additionalData)=0
 Write a Persistable instance to a FormatterStorage instance. More...
 
virtual
lsst::daf::base::Persistable * 
read (FormatterStorage::Ptr storage, lsst::daf::base::PropertySet::Ptr additionalData)=0
 Read a Persistable instance from a FormatterStorage instance. More...
 
virtual void update (lsst::daf::base::Persistable *persistable, FormatterStorage::Ptr storage, lsst::daf::base::PropertySet::Ptr additionalData)=0
 Update an existing Persistable instance with information from an additional FormatterStorage instance. More...
 

Static Public Member Functions

template<class Archive >
static void delegateSerialize (Archive &ar, unsigned int const version, dafBase::Persistable *persistable)
 Serialize a PropertySet to a Boost archive. More...
 
- Static Public Member Functions inherited from lsst::daf::persistence::Formatter
static Formatter::Ptr lookupFormatter (std::string const &persistableType, lsst::pex::policy::Policy::Ptr policy)
 Lookup Formatter subclass by name of Persistable subclass. More...
 
static Formatter::Ptr lookupFormatter (std::type_info const &persistableType, lsst::pex::policy::Policy::Ptr policy)
 Lookup Formatter subclass by its type_info from typeid(). More...
 

Additional Inherited Members

- Public Types inherited from lsst::daf::persistence::Formatter
typedef std::shared_ptr
< Formatter
Ptr
 
typedef Ptr(* FactoryPtr )(lsst::pex::policy::Policy::Ptr)
 Pointer to a (static) factory function for a Formatter subclass. More...
 
- Protected Member Functions inherited from lsst::daf::persistence::Formatter
 Formatter (std::type_info const &type)
 Constructor. More...
 

Detailed Description

Formatter for persistence of PropertySet instances.

Definition at line 58 of file PropertySetFormatter.h.

Constructor & Destructor Documentation

lsst::daf::persistence::PropertySetFormatter::~PropertySetFormatter ( void  )
virtual

Minimal destructor.

Definition at line 93 of file PropertySetFormatter.cc.

Member Function Documentation

template<class Archive >
void lsst::daf::persistence::PropertySetFormatter::delegateSerialize ( Archive &  ar,
unsigned int const  version,
dafBase::Persistable *  persistable 
)
static

Serialize a PropertySet to a Boost archive.

Handles text or XML archives, input or output.

Parameters
[in,out]arBoost archive
[in]versionVersion of the PropertySet class
[in,out]persistablePointer to the PropertySet as a Persistable

Definition at line 114 of file PropertySetFormatter.cc.

dafBase::Persistable * lsst::daf::persistence::PropertySetFormatter::read ( dafPersist::FormatterStorage::Ptr  storage,
dafBase::PropertySet::Ptr  additionalData 
)
virtual

Definition at line 216 of file PropertySetFormatter.cc.

void lsst::daf::persistence::PropertySetFormatter::update ( dafBase::Persistable *  persistable,
dafPersist::FormatterStorage::Ptr  storage,
dafBase::PropertySet::Ptr  additionalData 
)
virtual

Definition at line 239 of file PropertySetFormatter.cc.

void lsst::daf::persistence::PropertySetFormatter::write ( dafBase::Persistable const *  persistable,
dafPersist::FormatterStorage::Ptr  storage,
dafBase::PropertySet::Ptr  additionalData 
)
virtual

Definition at line 96 of file PropertySetFormatter.cc.


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