|
lsst.afw
14.0-25-g0e8fc950e+3
|
A multi-catalog archive object used to load table::io::Persistable objects. More...
#include <InputArchive.h>
Public Types | |
| typedef std::map< int, std::shared_ptr< Persistable > > | Map |
Public Member Functions | |
| InputArchive () | |
| Construct an empty InputArchive that contains no objects. More... | |
| InputArchive (BaseCatalog const &index, CatalogVector const &dataCatalogs) | |
| Construct an archive from catalogs. More... | |
| InputArchive (InputArchive const &other) | |
| Copy-constructor. Does not deep-copy loaded Persistables. More... | |
| InputArchive & | operator= (InputArchive const &other) |
| Assignment. Does not deep-copy loaded Persistables. More... | |
| ~InputArchive () | |
| std::shared_ptr< Persistable > | get (int id) const |
| Load the Persistable with the given ID and return it. More... | |
| template<typename T > | |
| std::shared_ptr< T > | get (int id) const |
| Load an object of the given type and ID with error checking. More... | |
| Map const & | getAll () const |
| Load and return all objects in the archive. More... | |
Static Public Member Functions | |
| static InputArchive | readFits (fits::Fits &fitsfile) |
| Read an object from an already open FITS object. More... | |
A multi-catalog archive object used to load table::io::Persistable objects.
An InputArchive can be constructed directly from the catalogs produced by OutputArchive, or more usefully, read from a multi-extension FITS file.
Definition at line 31 of file InputArchive.h.
| typedef std::map<int, std::shared_ptr<Persistable> > lsst::afw::table::io::InputArchive::Map |
Definition at line 33 of file InputArchive.h.
| lsst::afw::table::io::InputArchive::InputArchive | ( | ) |
Construct an empty InputArchive that contains no objects.
| lsst::afw::table::io::InputArchive::InputArchive | ( | BaseCatalog const & | index, |
| CatalogVector const & | dataCatalogs | ||
| ) |
Construct an archive from catalogs.
| lsst::afw::table::io::InputArchive::InputArchive | ( | InputArchive const & | other | ) |
Copy-constructor. Does not deep-copy loaded Persistables.
| lsst::afw::table::io::InputArchive::~InputArchive | ( | ) |
| std::shared_ptr<Persistable> lsst::afw::table::io::InputArchive::get | ( | int | id | ) | const |
Load the Persistable with the given ID and return it.
If the object has already been loaded once, the same instance will be returned again.
|
inline |
Load an object of the given type and ID with error checking.
Definition at line 58 of file InputArchive.h.
| Map const& lsst::afw::table::io::InputArchive::getAll | ( | ) | const |
Load and return all objects in the archive.
| InputArchive& lsst::afw::table::io::InputArchive::operator= | ( | InputArchive const & | other | ) |
Assignment. Does not deep-copy loaded Persistables.
|
static |
Read an object from an already open FITS object.
| [in] | fitsfile | FITS object to read from, already positioned at the desired HDU. |
1.8.13