23 #ifndef AFW_TABLE_Simple_h_INCLUDED
24 #define AFW_TABLE_Simple_h_INCLUDED
34 namespace lsst {
namespace afw {
namespace table {
221 #endif // !AFW_TABLE_Simple_h_INCLUDED
boost::shared_ptr< IdFactory > _idFactory
Defines the fields and offsets for a table.
void setId(RecordId id)
Convenience accessors for the keys in the minimal reference schema.
SortedCatalogT< Record const > ConstCatalog
Key< geom::Angle > getRa() const
Return a constituent Key.
Writer object for FITS binary tables.
virtual void set(BaseRecord &record, coord::IcrsCoord const &value) const
Set an IcrsCoord in the given record.
SortedCatalogT< SimpleRecord > Catalog
boost::shared_ptr< SimpleTable > clone() const
Return a polymorphic deep copy of the table.
A mapping between the keys of two Schemas, used to copy data between them.
static Schema makeMinimalSchema()
Return a minimal schema for Simple tables and records.
static CoordKey getCoordKey()
Key for the celestial coordinates.
static boost::shared_ptr< SimpleTable > make(Schema const &schema)
Construct a new table.
boost::shared_ptr< BaseTable const > getTable() const
Return the table this record is associated with.
ColumnViewT< SimpleRecord > ColumnView
boost::shared_ptr< IdFactory > getIdFactory()
Return the object that generates IDs for the table (may be null).
static boost::shared_ptr< SimpleTable > make(Schema const &schema, boost::shared_ptr< IdFactory > const &idFactory)
Construct a new table.
RecordId getId() const
Convenience accessors for the keys in the minimal reference schema.
virtual boost::shared_ptr< BaseTable > _clone() const =0
Clone implementation with noncovariant return types.
static boost::shared_ptr< IdFactory > makeSimple()
Return a simple IdFactory that simply counts from 1.
static MinimalSchema & getMinimalSchema()
SimpleRecord(boost::shared_ptr< SimpleTable > const &table)
static bool checkSchema(Schema const &other)
Return true if the given schema is a valid SimpleTable schema.
virtual boost::shared_ptr< BaseRecord > _makeRecord()=0
Default-construct an associated record (protected implementation).
std::map< Citizen const *, CitizenInfo > table
SortedCatalogT< Record > Catalog
IcrsCoord getCoord() const
Convenience accessors for the keys in the minimal reference schema.
Table class that must contain a unique ID field and a celestial coordinate field. ...
int contains(Schema const &other, int flags=EQUAL_KEYS) const
Test whether the given schema is a subset of this.
void setIdFactory(boost::shared_ptr< IdFactory > f)
Switch to a new IdFactory – object that generates IDs for the table (may be null).
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
virtual boost::shared_ptr< io::FitsWriter > makeFitsWriter(fits::Fits *fitsfile, int flags) const
boost::shared_ptr< SimpleRecord > makeRecord()
Default-construct an associated record.
static Key< RecordId > getIdKey()
Key for the unique ID.
A polymorphic functor base class for generating record IDs for a table.
boost::shared_ptr< BaseRecord > copyRecord(BaseRecord const &input)
Deep-copy a record, requiring that it have the same schema as this table.
ColumnViewT< SimpleRecord > ColumnView
void setCoord(IcrsCoord const &coord)
Convenience accessors for the keys in the minimal reference schema.
Base class for all records.
Key< geom::Angle > getDec() const
Return a constituent Key.
void disconnectAliases()
Sever the connection between this schema and any others with which it shares aliases.
Angle getDec() const
Convenience accessors for the keys in the minimal reference schema.
SimpleTable(Schema const &schema, boost::shared_ptr< IdFactory > const &idFactory)
void setDec(Angle dec)
Convenience accessors for the keys in the minimal reference schema.
boost::shared_ptr< SimpleRecord > copyRecord(BaseRecord const &other)
Deep-copy a record, requiring that it have the same schema as this table.
Record class that must contain a unique ID field and a celestial coordinate field.
boost::shared_ptr< SimpleTable const > getTable() const
SortedCatalogT< SimpleRecord const > ConstCatalog
boost::int64_t RecordId
Type used for unique IDs for records.
A class to handle Icrs coordinates (inherits from Coord)
void setRa(Angle ra)
Convenience accessors for the keys in the minimal reference schema.
Base class for all tables.
Angle getRa() const
Convenience accessors for the keys in the minimal reference schema.
A FunctorKey used to get or set celestial coordiantes from a pair of Angle keys.