LSSTApplications  20.0.0
LSSTDataManagementBasePackage
ArchiveIndexSchema.cc
Go to the documentation of this file.
1 // -*- lsst-c++ -*-
2 
4 
5 namespace lsst {
6 namespace afw {
7 namespace table {
8 namespace io {
9 
11 
12 constexpr int const ArchiveIndexSchema::NO_CATALOGS_SAVED;
13 
15  static ArchiveIndexSchema instance;
16  return instance;
17 }
18 
19 ArchiveIndexSchema::ArchiveIndexSchema()
20  : schema(),
21  id(schema.addField<int>(
22  "id",
23  "Archive ID of the persistable object that owns the records pointed at by this entry")),
24  catArchive(schema.addField<int>(
25  "cat.archive",
26  "index of the catalog this entry points to, from the perspective of the archive")),
27  catPersistable(schema.addField<int>(
28  "cat.persistable",
29  "index of the catalog this entry points to, from the perspective of the Persistable")),
30  row0(schema.addField<int>("row0", "first row used by the persistable object in this catalog")),
31  nRows(schema.addField<int>("nrows",
32  "number of rows used by the persistable object in this catalog")),
33  name(schema.addField<std::string>("name", "unique name for the persistable object's class",
34  MAX_NAME_LENGTH)),
35  module(schema.addField<std::string>(
36  "module", "Python module that should be imported to register the object's factory",
37  MAX_MODULE_LENGTH)) {}
38 } // namespace io
39 } // namespace table
40 } // namespace afw
41 } // namespace lsst
schema
table::Schema schema
Definition: Amplifier.cc:115
lsst::afw::table::io::ArchiveIndexSchema::NO_CATALOGS_SAVED
static constexpr int const NO_CATALOGS_SAVED
Special value used for catArchive, catPersistable, and row0 when an object with no state is saved.
Definition: ArchiveIndexSchema.h:52
ArchiveIndexSchema.h
lsst::afw
Definition: imageAlgorithm.dox:1
lsst::afw::table::io::ArchiveIndexSchema::get
static ArchiveIndexSchema const & get()
Return the singleton instance.
Definition: ArchiveIndexSchema.cc:14
lsst::afw::geom.transform.transformContinued.name
string name
Definition: transformContinued.py:32
lsst::afw::table::io::ArchiveIndexSchema::MAX_NAME_LENGTH
static int const MAX_NAME_LENGTH
Definition: ArchiveIndexSchema.h:45
id
table::Key< int > id
Definition: Detector.cc:162
lsst::afw::table::io::ArchiveIndexSchema
Schema for the index catalog that specifies where objects are stored in the data catalogs.
Definition: ArchiveIndexSchema.h:35
lsst
A base class for image defects.
Definition: imageAlgorithm.dox:1
std
STL namespace.
lsst::meas::modelfit.psf.psfContinued.module
module
Definition: psfContinued.py:42