| LSSTApplications
    20.0.0
    LSSTDataManagementBasePackage | 
 
 
 
Go to the documentation of this file.
   22 class SimpleFitsWriter : 
public io::FitsWriter {
 
   24     explicit SimpleFitsWriter(Fits* 
fits, 
int flags) : io::FitsWriter(
fits, flags) {}
 
   34                           "Cannot use a SimpleFitsWriter on a non-Simple table.");
 
   37     _fits->writeKey(
"AFW_TYPE", 
"SIMPLE", 
"Tells lsst::afw to load this as a Simple table.");
 
   51 class SimpleFitsReader : 
public io::FitsReader {
 
   53     SimpleFitsReader() : io::FitsReader(
"SIMPLE") {}
 
   57                                          bool stripMetadata)
 const override {
 
   59         table->setMetadata(metadata);
 
   65 static SimpleFitsReader 
const simpleFitsReader;
 
   79                           "Schema for Simple must contain at least the keys defined by makeMinimalSchema().");
 
   94 SimpleTable::MinimalSchema::MinimalSchema() {
 
   99 SimpleTable::MinimalSchema& SimpleTable::getMinimalSchema() {
 
  100     static MinimalSchema it;
 
  105     return std::make_shared<SimpleFitsWriter>(fitsfile, flags);
 
  113     auto record = constructRecord<SimpleRecord>();
 
  
static std::shared_ptr< SimpleTable > make(Schema const &schema, std::shared_ptr< IdFactory > const &idFactory)
Construct a new table.
SimpleTable(Schema const &schema, std::shared_ptr< IdFactory > const &idFactory)
static bool checkSchema(Schema const &other)
Return true if the given schema is a valid SimpleTable schema.
Defines the fields and offsets for a table.
Base class for all tables.
ItemVariant const  * other
std::shared_ptr< BaseRecord > _makeRecord() override
Default-construct an associated record (protected implementation).
Reports errors in the logical structure of the program.
A base class for image defects.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Table class that must contain a unique ID field and a celestial coordinate field.
virtual void _writeTable(std::shared_ptr< BaseTable const > const &table, std::size_t nRows)
Write a table and its schema.
std::shared_ptr< BaseTable > _clone() const override
Clone implementation with noncovariant return types.
Reports invalid arguments.
std::shared_ptr< IdFactory > getIdFactory()
Return the object that generates IDs for the table (may be null).
A custom container class for records, based on std::vector.
Custom catalog class for record/table subclasses that are guaranteed to have an ID,...
static CoordKey addFields(afw::table::Schema &schema, std::string const &name, std::string const &doc)
Add a pair of _ra, _dec fields to a Schema, and return a CoordKey that points to them.