2 #ifndef AFW_TABLE_IO_Persistable_h_INCLUDED 3 #define AFW_TABLE_IO_Persistable_h_INCLUDED 25 class OutputArchiveHandle;
48 #define LSST_ARCHIVE_ASSERT(EXPR) \ 50 throw LSST_EXCEPT(lsst::afw::table::io::MalformedArchiveError, "Archive assertion failed: " #EXPR) 134 virtual void write(OutputArchiveHandle& handle)
const;
148 template <typename T>
175 template <typename T>
176 class PersistableFacade {
184 return dynamicCast(Persistable::_readFits(fitsfile));
195 return dynamicCast(Persistable::_readFits(fileName, hdu));
206 return dynamicCast(Persistable::_readFits(manager, hdu));
249 CatalogVector
const& catalogs)
const = 0;
275 #endif // !AFW_TABLE_IO_Persistable_h_INCLUDED
io::CatalogVector CatalogVector
An object passed to Persistable::write to allow it to persist itself.
A base class for factory classes used to reconstruct objects from records.
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
Reports errors in external input/output operations.
static std::shared_ptr< T > readFits(std::string const &fileName, int hdu=fits::DEFAULT_HDU)
Read an object from a regular FITS file.
A base class for objects that can be persisted via afw::table::io Archive classes.
A multi-catalog archive object used to save table::io::Persistable objects.
A base class for image defects.
Lifetime-management for memory that goes into FITS memory files.
A vector of catalogs used by Persistable.
io::OutputArchiveHandle OutputArchiveHandle
ItemVariant const * other
virtual bool isPersistable() const noexcept
Return true if this particular object can be persisted using afw::table::io.
static std::shared_ptr< T > readFits(fits::Fits &fitsfile)
Read an object from an already open FITS object.
#define LSST_EXCEPTION_TYPE(t, b, c)
Macro used to define new types of exceptions without additional data.
A CRTP facade class for subclasses of Persistable.
An exception thrown when problems occur during persistence.
static std::shared_ptr< T > readFits(fits::MemFileManager &manager, int hdu=fits::DEFAULT_HDU)
Read an object from a FITS file in memory.
const int DEFAULT_HDU
Specify that the default HDU should be read.
io::InputArchive InputArchive