25 #ifndef LSST_AFW_FORMATTERS_MASKFORMATTER_H
26 #define LSST_AFW_FORMATTERS_MASKFORMATTER_H
32 #include "lsst/daf/base.h"
33 #include "lsst/daf/persistence.h"
34 #include "lsst/pex/policy/Policy.h"
38 namespace formatters {
43 template <
typename MaskPixelT>
48 virtual void write(lsst::daf::base::Persistable
const* persistable,
49 std::shared_ptr<lsst::daf::persistence::FormatterStorage> storage,
50 std::shared_ptr<lsst::daf::base::PropertySet> additionalData);
51 virtual lsst::daf::base::Persistable*
read(std::shared_ptr<lsst::daf::persistence::FormatterStorage> storage,
52 std::shared_ptr<lsst::daf::base::PropertySet> additionalData);
53 virtual void update(lsst::daf::base::Persistable* persistable,
54 std::shared_ptr<lsst::daf::persistence::FormatterStorage> storage,
55 std::shared_ptr<lsst::daf::base::PropertySet> additionalData);
57 static std::shared_ptr<lsst::daf::persistence::Formatter>
createInstance(
58 std::shared_ptr<lsst::pex::policy::Policy> policy);
60 template <
class Archive>
64 explicit MaskFormatter(std::shared_ptr<lsst::pex::policy::Policy> policy);
66 static lsst::daf::persistence::FormatterRegistration registration;