25 #ifndef LSST_AFW_FORMATTERS_PROPERTYLISTFORMATTER_H
26 #define LSST_AFW_FORMATTERS_PROPERTYLISTFORMATTER_H
28 #include "lsst/daf/base.h"
29 #include "lsst/daf/persistence.h"
30 #include "lsst/pex/policy/Policy.h"
34 namespace formatters {
43 virtual void write(daf::base::Persistable
const* persistable,
44 std::shared_ptr<daf::persistence::FormatterStorage> storage,
45 std::shared_ptr<daf::base::PropertySet> additionalData);
47 virtual daf::base::Persistable*
read(std::shared_ptr<daf::persistence::FormatterStorage> storage,
48 std::shared_ptr<daf::base::PropertySet> additionalData);
50 virtual void update(daf::base::Persistable* persistable,
51 std::shared_ptr<daf::persistence::FormatterStorage> storage,
52 std::shared_ptr<daf::base::PropertySet> additionalData);
54 static std::shared_ptr<daf::persistence::Formatter>
createInstance(
55 std::shared_ptr<pex::policy::Policy> policy);
57 template <
class Archive>
63 static daf::persistence::FormatterRegistration registration;