16 #include "boost/serialization/nvp.hpp"
31 static void execTrace(std::string s,
int level =
EXEC_TRACE) {
35 namespace afwDetect = lsst::afw::detection;
36 namespace afwMath = lsst::afw::math;
37 namespace dafBase = lsst::daf::base;
38 namespace dafPersist = lsst::daf::persistence;
39 namespace pexPolicy = lsst::pex::policy;
41 using boost::serialization::make_nvp;
54 dafPersist::Formatter(typeid(this)), _policy(policy) {}
64 execTrace(
"PsfFormatter write start");
67 throw LSST_EXCEPT(lsst::pex::exceptions::RuntimeError,
"Persisting non-Psf");
70 execTrace(
"PsfFormatter write BoostStorage");
74 execTrace(
"PsfFormatter write end");
78 execTrace(
"PsfFormatter write XmlStorage");
82 execTrace(
"PsfFormatter write end");
85 throw LSST_EXCEPT(lsst::pex::exceptions::RuntimeError,
"Unrecognized Storage for Psf");
90 execTrace(
"PsfFormatter read start");
93 execTrace(
"PsfFormatter read BoostStorage");
97 execTrace(
"PsfFormatter read end");
101 execTrace(
"PsfFormatter read XmlStorage");
105 execTrace(
"PsfFormatter read end");
108 throw LSST_EXCEPT(lsst::pex::exceptions::RuntimeError,
"Unrecognized Storage for Psf");
114 throw LSST_EXCEPT(lsst::pex::exceptions::RuntimeError,
"Unexpected call to update for Psf");
120 template <
class Archive>
126 execTrace(
"PsfFormatter delegateSerialize start");
129 throw LSST_EXCEPT(lsst::pex::exceptions::RuntimeError,
"Serializing non-Psf");
131 #if 0 // not present in baseclass
132 ar & make_nvp(
"width", ps->_width) & make_nvp(
"height", ps->_height);
133 ar & make_nvp(
"k", ps->_kernel);
136 execTrace(
"PsfFormatter delegateSerialize end");
Class for XML file storage.
Include files required for standard LSST Exception handling.
virtual boost::archive::text_iarchive & getIArchive(void)
boost::shared_ptr< PropertySet > Ptr
boost::shared_ptr< Policy > Ptr
definition of the Trace messaging facilities
limited backward compatibility to the DC2 run-time trace facilities
virtual boost::archive::xml_iarchive & getIArchive(void)
Interface for XmlStorage class.
#define LSST_EXCEPT(type,...)
virtual boost::archive::text_oarchive & getOArchive(void)
virtual boost::archive::xml_oarchive & getOArchive(void)
boost::shared_ptr< Storage > Ptr
Class for boost::serialization storage.
Base class for all persistable classes.
Interface for LogicalLocation class.
A polymorphic base class for representing an image's Point Spread Function.
Interface for BoostStorage class.