|
lsst.afw gba399f52f3+9b61cfce8e
|
Namespaces | |
| namespace | python |
Classes | |
| struct | ArchiveIndexSchema |
| Schema for the index catalog that specifies where objects are stored in the data catalogs. More... | |
| class | CatalogVector |
| A vector of catalogs used by Persistable. More... | |
| class | FitsColumnReader |
| Polymorphic reader interface used to read different kinds of objects from one or more FITS binary table columns. More... | |
| class | FitsReader |
| A utility class for reading FITS binary tables. More... | |
| class | FitsSchemaInputMapper |
| A class that describes a mapping from a FITS binary table to an afw::table Schema. More... | |
| struct | FitsSchemaItem |
| A structure that describes a field as a collection of related strings read from the FITS header. More... | |
| class | FitsWriter |
| Writer object for FITS binary tables. More... | |
| class | InputArchive |
| A multi-catalog archive object used to load table::io::Persistable objects. More... | |
| class | OutputArchive |
| A multi-catalog archive object used to save table::io::Persistable objects. More... | |
| class | OutputArchiveHandle |
| An object passed to Persistable::write to allow it to persist itself. More... | |
| class | PersistableFacade |
| A CRTP facade class for subclasses of Persistable. More... | |
| class | PersistableFactory |
| A base class for factory classes used to reconstruct objects from records. More... | |
Functions | |
| LSST_EXCEPTION_TYPE (MalformedArchiveError, lsst::afw::table::io::PersistenceError, lsst::afw::table::io::MalformedArchiveError) class Persistable | |
| An exception thrown when problems occur during persistence. | |
| void | erase (int column) |
| void lsst::afw::table::io::erase | ( | int | column | ) |
| lsst::afw::table::io::LSST_EXCEPTION_TYPE | ( | MalformedArchiveError | , |
| lsst::afw::table::io::PersistenceError | , | ||
| lsst::afw::table::io::MalformedArchiveError | ) |
An exception thrown when problems occur during persistence.
An exception thrown when an InputArchive's contents do not make sense.
This is the exception thrown by the LSST_ARCHIVE_ASSERT macro. An assertion macro used to validate the structure of an InputArchive.
This assertion is not enabled/disabled by NDEBUG, and throws an exception rather than aborting, and should be reserved for errors that should only occur when an InputArchive is found to be in a state that could not have been produced by an OutputArchive. A base class for objects that can be persisted via afw::table::io Archive classes.
Inheriting from Persistable provides a public API for reading/writing individual objects to FITS that is fully defined in the base class, with derived classes only needing to implement persistence to catalogs. It is expected that objects that contain multiple persistables (such as Exposures) will create their own InputArchives and OutputArchives, and use these to avoid writing the same object twice (which would otherwise be a big concern for future objects like ExposureCatalog and CoaddPsf).
Generally speaking, an abstract base class that inherits from Persistable should also inherit from PersistableFacade<Base>. A concrete class that inherits (possibly indirectly) from Persistable should inherit from PersistableFacade<Derived> (though this just provides a slightly nicer interface to users), implement isPersistable(), getPersistenceName(), getPythonModule(), and write(), and define a subclass of PersistableFactory. Inheritance from PersistableFacade should always precede inheritance from Persistable.
Persistable has no pure virtual member functions, and instead contains a default implementation that throws LogicError when the user attempts to save an object for which persistence has not actually been implemented.
Write the object to a regular FITS file.
| [in] | fileName | Name of the file to write to. |
| [in] | mode | If "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file. |
Write the object to a FITS image in memory.
| [in] | manager | Name of the file to write to. |
| [in] | mode | If "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file. |
Write the object to an already-open FITS object.
| [in] | fitsfile | Open FITS object to write to. |
Return true if this particular object can be persisted using afw::table::io.
Return the unique name used to persist this object and look up its factory.
Must be less than ArchiveIndexSchema::MAX_NAME_LENGTH characters.
Return the fully-qualified Python module that should be imported to guarantee that its factory is registered.
Must be less than ArchiveIndexSchema::MAX_MODULE_LENGTH characters.
Will be ignored if empty.
Write the object to one or more catalogs.
The handle object passed to this function provides an interface for adding new catalogs and adding nested objects to the same archive (while checking for duplicates). See OutputArchiveHandle for more information.
Definition at line 38 of file Persistable.h.