34 class CoaddInputsFactory :
public table::io::PersistableFactory {
36 virtual std::shared_ptr<table::io::Persistable> read(InputArchive
const& archive,
37 CatalogVector
const& catalogs)
const {
39 std::shared_ptr<CoaddInputs>
result = std::make_shared<CoaddInputs>();
45 CoaddInputsFactory(std::string
const&
name) : table::io::PersistableFactory(name) {}
48 CoaddInputsFactory registration(
"CoaddInputs");
55 : visits(visitSchema), ccds(ccdSchema) {}
58 : visits(visits_), ccds(ccds_) {}
Defines the fields and offsets for a table.
An object passed to Persistable::write to allow it to persist itself.
#define LSST_ARCHIVE_ASSERT(EXPR)
An assertion macro used to validate the structure of an InputArchive.
void writeToArchive(io::OutputArchiveHandle &handle, bool ignoreUnpersistable=true) const
Convenience output function for Persistables that contain an ExposureCatalog.
static ExposureCatalogT readFromArchive(io::InputArchive const &archive, BaseCatalog const &catalog)
Convenience input function for Persistables that contain an ExposureCatalog.
table::Key< std::string > name
Custom catalog class for ExposureRecord/Table.