lsst.afw
g3a5ebb7d8a+28b83bf6a5
Toggle main menu visibility
Loading...
Searching...
No Matches
src
table
io
ArchiveIndexSchema.cc
Go to the documentation of this file.
1
// -*- lsst-c++ -*-
2
3
#include "
lsst/afw/table/io/ArchiveIndexSchema.h
"
4
5
namespace
lsst
{
6
namespace
afw
{
7
namespace
table
{
8
namespace
io
{
9
10
int
const
ArchiveIndexSchema::MAX_NAME_LENGTH
;
11
12
constexpr
int
const
ArchiveIndexSchema::NO_CATALOGS_SAVED
;
13
14
ArchiveIndexSchema
const
&
ArchiveIndexSchema::get
() {
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
ArchiveIndexSchema.h
lsst::afw::table::io
Definition
tablePersistence.dox:3
lsst::afw::table
Definition
table.dox:3
lsst::afw
Definition
imageAlgorithm.dox:1
lsst
std
STL namespace.
lsst::afw::table::io::ArchiveIndexSchema::MAX_NAME_LENGTH
static int const MAX_NAME_LENGTH
Definition
ArchiveIndexSchema.h:45
lsst::afw::table::io::ArchiveIndexSchema::ArchiveIndexSchema
ArchiveIndexSchema(const ArchiveIndexSchema &)=delete
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
lsst::afw::table::io::ArchiveIndexSchema::get
static ArchiveIndexSchema const & get()
Return the singleton instance.
Definition
ArchiveIndexSchema.cc:14
Generated on
for lsst.afw by
1.17.0