40 LOG_LOGGER _log =
LOG_GET(
"afw.PropertyListFormatter");
47 namespace formatters {
58 :
lsst::daf::persistence::Formatter(typeid(this)) {}
63 LOGL_DEBUG(_log,
"PropertyListFormatter write start");
69 auto& actualStorage = *storage;
72 "FitsStorage for PropertyList read-only (writing is not supported)");
83 metadata->combine(inheritedMetadata);
92 LOGL_DEBUG(_log,
"PropertyListFormatter read start");
96 LOGL_DEBUG(_log,
"PropertyListFormatter read FitsStorage");
98 auto ip = readMetadataAsUniquePtr(
fits->getPath(),
fits->getHdu(),
false);
100 LOGL_DEBUG(_log,
"PropertyListFormatter read end");
112 template <
class Archive>
115 LOGL_DEBUG(_log,
"PropertyListFormatter delegateSerialize start");
#define LOGL_DEBUG(logger, message...)
A base class for image defects.
T dynamic_pointer_cast(T... args)
#define LSST_EXCEPT(type,...)
std::shared_ptr< daf::base::PropertyList > readMetadata(std::string const &fileName, int hdu=DEFAULT_HDU, bool strip=false)
Read FITS header.