25 #ifndef LSST_AFW_FORMATTERS_WCSFORMATTER_H
26 #define LSST_AFW_FORMATTERS_WCSFORMATTER_H
32 #include "lsst/daf/base.h"
33 #include "lsst/daf/persistence.h"
40 namespace formatters {
49 virtual void write(lsst::daf::base::Persistable
const* persistable,
50 std::shared_ptr<lsst::daf::persistence::FormatterStorage> storage,
51 std::shared_ptr<lsst::daf::base::PropertySet> additionalData);
52 virtual lsst::daf::base::Persistable*
read(std::shared_ptr<lsst::daf::persistence::FormatterStorage> storage,
53 std::shared_ptr<lsst::daf::base::PropertySet> additionalData);
54 virtual void update(lsst::daf::base::Persistable* persistable,
55 std::shared_ptr<lsst::daf::persistence::FormatterStorage> storage,
56 std::shared_ptr<lsst::daf::base::PropertySet> additionalData);
60 static std::shared_ptr<lsst::daf::persistence::Formatter>
createInstance(
61 std::shared_ptr<lsst::pex::policy::Policy> policy);
63 template <
class Archive>
67 explicit WcsFormatter(std::shared_ptr<lsst::pex::policy::Policy> policy);
69 static lsst::daf::persistence::FormatterRegistration registration;
Implementation of the WCS standard for a any projection.