lsst.afw  14.0-25-g0e8fc950e+6
Public Member Functions | Friends | List of all members
lsst::afw::table::io::OutputArchiveHandle Class Reference

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

#include <OutputArchive.h>

Public Member Functions

BaseCatalog makeCatalog (Schema const &schema)
 Return a new, empty catalog with the given schema. More...
 
void saveCatalog (BaseCatalog const &catalog)
 Save a catalog in the archive. More...
 
 ~OutputArchiveHandle ()
 
 OutputArchiveHandle (const OutputArchiveHandle &)=delete
 
OutputArchiveHandle & operator= (const OutputArchiveHandle &)=delete
 
 OutputArchiveHandle (OutputArchiveHandle &&)=delete
 
OutputArchiveHandle & operator= (OutputArchiveHandle &&)=delete
 
int put (Persistable const *obj, bool permissive=false)
 Save a nested Persistable to the same archive. More...
 
int put (std::shared_ptr< Persistable const > obj, bool permissive=false)
 Save a nested Persistable to the same archive. More...
 

Friends

class OutputArchive::Impl
 

Detailed Description

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.

Definition at line 112 of file OutputArchive.h.

Constructor & Destructor Documentation

◆ ~OutputArchiveHandle()

lsst::afw::table::io::OutputArchiveHandle::~OutputArchiveHandle ( )

◆ OutputArchiveHandle() [1/2]

lsst::afw::table::io::OutputArchiveHandle::OutputArchiveHandle ( const OutputArchiveHandle &  )
delete

◆ OutputArchiveHandle() [2/2]

lsst::afw::table::io::OutputArchiveHandle::OutputArchiveHandle ( OutputArchiveHandle &&  )
delete

Member Function Documentation

◆ makeCatalog()

BaseCatalog lsst::afw::table::io::OutputArchiveHandle::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.

◆ operator=() [1/2]

OutputArchiveHandle& lsst::afw::table::io::OutputArchiveHandle::operator= ( const OutputArchiveHandle &  )
delete

◆ operator=() [2/2]

OutputArchiveHandle& lsst::afw::table::io::OutputArchiveHandle::operator= ( OutputArchiveHandle &&  )
delete

◆ put() [1/2]

int lsst::afw::table::io::OutputArchiveHandle::put ( Persistable const *  obj,
bool  permissive = false 
)

Save a nested Persistable to the same archive.

◆ put() [2/2]

int lsst::afw::table::io::OutputArchiveHandle::put ( std::shared_ptr< Persistable const >  obj,
bool  permissive = false 
)
inline

Save a nested Persistable to the same archive.

Definition at line 137 of file OutputArchive.h.

◆ saveCatalog()

void lsst::afw::table::io::OutputArchiveHandle::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.

Friends And Related Function Documentation

◆ OutputArchive::Impl

friend class OutputArchive::Impl
friend

Definition at line 153 of file OutputArchive.h.


The documentation for this class was generated from the following file: