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>
153 static
std::shared_ptr<
Persistable> _readFits(
fits::MemFileManager& manager,
int hdu =
fits::DEFAULT_HDU);
175 template <typename T>
176 class PersistableFacade {
238 CatalogVector
const& catalogs)
const = 0;
264 #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.
ItemVariant const * other
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
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.
T dynamic_pointer_cast(T... args)
A vector of catalogs used by Persistable.
io::OutputArchiveHandle OutputArchiveHandle
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)
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