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) {}
48 Psf const* ps =
dynamic_cast<Psf const*
>(persistable);
55 LOGL_DEBUG(_log,
"PsfFormatter write BoostStorage");
56 boost->getOArchive() & ps;
62 LOGL_DEBUG(_log,
"PsfFormatter write XmlStorage");
63 xml->getOArchive() & make_nvp(
"psf", ps);
78 LOGL_DEBUG(_log,
"PsfFormatter read BoostStorage");
79 boost->getIArchive() & ps;
85 LOGL_DEBUG(_log,
"PsfFormatter read XmlStorage");
86 xml->getIArchive() & make_nvp(
"psf", ps);
98 template <
class Archive>
100 LOGL_DEBUG(_log,
"PsfFormatter delegateSerialize start");
101 Psf* ps =
dynamic_cast<Psf*
>(persistable);
105 #if 0 // not present in baseclass 106 ar & make_nvp(
"width", ps->_width) & make_nvp(
"height", ps->_height);
107 ar & make_nvp(
"k", ps->_kernel);
110 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.