14 Registry& getRegistry() {
19 static FitsReader
const baseFitsReader(
"BASE");
25 int ioFlags,
bool stripMetadata)
const {
27 result->setMetadata(metadata);
35 Registry::iterator i = getRegistry().find(name);
36 if (i == getRegistry().
end()) {
39 (
boost::format(
"FitsReader with name '%s' does not exist; check AFW_TYPE keyword.") % name)
A utility class for reading FITS binary tables.
Class for storing ordered metadata with comments.
FitsReader(std::string const &persistedClassName)
Construct a FitsReader, registering it to be used for all persisted tables with the given tag...
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
Reports attempts to access elements using an invalid key.
A base class for image defects.
def format(config, name=None, writeSourceLine=True, prefix="", verbose=False)
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.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
T get(std::string const &name) const
Get the last value for a property name (possibly hierarchical).
static std::shared_ptr< BaseTable > make(Schema const &schema)
Construct a new table.
virtual bool usesArchive(int ioFlags) const
Callback that should return true if the FitsReader subclass makes use of an InputArchive to read firs...