9 #include "boost/serialization/nvp.hpp" 24 LOG_LOGGER _log =
LOG_GET(
"afw.detection.PsfFormatter");
35 using boost::serialization::make_nvp;
40 :
dafPersist::Formatter(typeid(this)), _policy(policy) {}
53 Psf const* ps =
dynamic_cast<Psf const*
>(persistable);
60 LOGL_DEBUG(_log,
"PsfFormatter write BoostStorage");
61 boost->getOArchive() & ps;
67 LOGL_DEBUG(_log,
"PsfFormatter write XmlStorage");
68 xml->getOArchive() & make_nvp(
"psf", ps);
83 LOGL_DEBUG(_log,
"PsfFormatter read BoostStorage");
84 boost->getIArchive() & ps;
90 LOGL_DEBUG(_log,
"PsfFormatter read XmlStorage");
91 xml->getIArchive() & make_nvp(
"psf", ps);
103 template <
class Archive>
105 LOGL_DEBUG(_log,
"PsfFormatter delegateSerialize start");
106 Psf* ps =
dynamic_cast<Psf*
>(persistable);
110 #if 0 // not present in baseclass 111 ar & make_nvp(
"width", ps->_width) & make_nvp(
"height", ps->_height);
112 ar & make_nvp(
"k", ps->_kernel);
115 LOGL_DEBUG(_log,
"PsfFormatter delegateSerialize end");
#define LOGL_DEBUG(logger, message...)
A base class for image defects.
T dynamic_pointer_cast(T... args)
#define LSST_EXCEPT(type,...)
A polymorphic base class for representing an image's Point Spread Function.