2 #ifndef AFW_TABLE_IO_OutputArchive_h_INCLUDED 3 #define AFW_TABLE_IO_OutputArchive_h_INCLUDED 14 template <
typename RecordT>
21 class OutputArchiveHandle;
80 return put(obj.
get(), permissive);
125 BaseCatalog makeCatalog(
Schema const& schema);
139 void saveCatalog(BaseCatalog
const& catalog);
145 return put(obj.
get(), permissive);
160 friend class OutputArchive::Impl;
176 #endif // !AFW_TABLE_IO_OutputArchive_h_INCLUDED Defines the fields and offsets for a table.
int countCatalogs() const
Return the total number of catalogs, including the index.
BaseCatalog const & getCatalog(int n) const
Return the nth catalog. Catalog 0 is always the index catalog.
OutputArchive()
Construct an empty OutputArchive containing no objects.
CatalogT< BaseRecord > BaseCatalog
An object passed to Persistable::write to allow it to persist itself.
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
friend class OutputArchiveHandle
A base class for objects that can be persisted via afw::table::io Archive classes.
A multi-catalog archive object used to save table::io::Persistable objects.
void writeFits(fits::Fits &fitsfile) const
Write the archive to an already-open FITS object.
A base class for image defects.
BaseCatalog const & getIndexCatalog() const
Return the index catalog that specifies where objects are stored in the data catalogs.
int put(Persistable const *obj, bool permissive=false)
Save an object to the archive and return a unique ID that can be used to retrieve it from an InputArc...
int put(std::shared_ptr< Persistable const > obj, bool permissive=false)
Save an object to the archive and return a unique ID that can be used to retrieve it from an InputArc...
OutputArchive & operator=(OutputArchive const &other)
Assign from another OutputArchive. Saved objects are not deep-copied.
int put(std::shared_ptr< Persistable const > obj, bool permissive=false)
Save an object to the archive and return a unique ID that can be used to retrieve it from an InputArc...