2#ifndef AFW_TABLE_IO_FitsReader_h_INCLUDED
3#define AFW_TABLE_IO_FitsReader_h_INCLUDED
70 template <
typename ContainerT>
74 fits.readMetadata(*metadata,
true);
103 template <
typename ContainerT,
typename SourceT>
#define LSST_EXCEPT(type,...)
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
Tag types used to declare specialized field types.
A utility class for reading FITS binary tables.
FitsReader(FitsReader &&)=default
virtual std::shared_ptr< BaseTable > makeTable(FitsSchemaInputMapper &mapper, std::shared_ptr< daf::base::PropertyList > metadata, int ioFlags, bool stripMetadata) const
Callback to create a Table object from a FITS binary table schema.
virtual ~FitsReader()=default
virtual bool usesArchive(int ioFlags) const
Callback that should return true if the FitsReader subclass makes use of an InputArchive to read firs...
static ContainerT apply(afw::fits::Fits &fits, int ioFlags, std::shared_ptr< InputArchive > archive=std::shared_ptr< InputArchive >())
Create a new Catalog by reading a FITS binary table.
FitsReader(std::string const &persistedClassName)
Construct a FitsReader, registering it to be used for all persisted tables with the given tag.
FitsReader & operator=(FitsReader const &)=default
FitsReader(FitsReader const &)=default
static ContainerT apply(SourceT &source, int hdu, int ioFlags, std::shared_ptr< InputArchive > archive=std::shared_ptr< InputArchive >())
Create a new Catalog by reading a FITS file.
FitsReader & operator=(FitsReader &&)=default