Class OutputArchiveHandle

Class Documentation

class OutputArchiveHandle

An object passed to Persistable::write to allow it to persist itself.

OutputArchiveHandle provides an interface to add additional catalogs and save nested Persistables to the same archive.

Unnamed Group

int put(Persistable const *obj, bool permissive = false)
int put(std::shared_ptr<Persistable const> obj, bool permissive = false)
int put(Persistable const &obj, bool permissive = false)

Public Functions

BaseCatalog makeCatalog(Schema const &schema)

Return a new, empty catalog with the given schema.

All catalogs passed to saveCatalog should be originally created by makeCatalog, or at least share the same table.

void saveEmpty()

Indicate that the object being persisted has no state, and hence will never call makeCatalog() or saveCatalog().

void saveCatalog(BaseCatalog const &catalog)

Save a catalog in the archive.

The catalog must have been created using makeCatalog, or be a shallow copy or subset of such a catalog.

~OutputArchiveHandle()
OutputArchiveHandle(const OutputArchiveHandle&)
OutputArchiveHandle &operator=(const OutputArchiveHandle&)
OutputArchiveHandle(OutputArchiveHandle&&)
OutputArchiveHandle &operator=(OutputArchiveHandle&&)

Friends

friend lsst::afw::table::io::OutputArchiveHandle::OutputArchive::Impl