#include <AsciiTable.h>
Inheritance diagram for CCfits::AsciiTable::
Public Methods | |
virtual AsciiTable* | clone (FITSBase *p) const |
virtual void | readData (bool readFlag=false, const std::vector< string > &keys=std::vector< string >()) |
virtual void | addColumn (ValueType type, const string &columnName, long repeatWidth, const string &colUnit=string(""), long decimals=-1, size_t columnNumber=0) |
Protected Methods | |
AsciiTable (FITSBase *p, const string &hduName=string(""), bool readFlag=false, const std::vector< string > &keys=std::vector< string >(), int version=1) | |
AsciiTable (FITSBase *p, const string &hduName, int rows, const std::vector< string > &columnName=std::vector< string >(), const std::vector< string > &columnFmt=std::vector< string >(), const std::vector< string > &columnUnit=std::vector< string >(), int version=1) | |
AsciiTable (FITSBase *p, int number) | |
~AsciiTable () |
May only contain columns with scalar row entries and a small range of data types. AsciiTable (re)implements functions prescribed in the Table abstract class. The implementations allow the calling of cfitsio specialized routines for AsciiTable header construction.
Direct instantiation of AsciiTable objects is disallowed: they are created by explicit calls to FITS::addTable( ... ), FITS::read(...) or internally by one of the FITS ctors on initialization. The default for FITS::addTable is to produce BinTable extensions.
|
reading constructor: Construct a AsciiTable extension from an extension of an existing disk file.
The Table is specified by name and optional version number within the file. An array of strings representing columns or keys indicates which data are to be read. The column data are only read if readFlag is true. Reading on construction is optimized, so it is more efficient to read data at the point of instantiation. This favours a "resource acquisition is initialization" model of data management.
|
|
writing constructor: create new Ascii Table object with the specified columns.
The constructor creates a valid HDU which is ready for Column::write or insertRows operations. The disk FITS file is update accordingly. The data type of each column is determined by the columnFmt argument (TFORM keywords). See cfitsio documentation for acceptable values.
|
|
read AsciiTable with HDU number
This is used internally by methods that need to access HDUs for which no EXTNAME [or equivalent] keyword exists. |
|
destructor.
|
|
add a new column to an existing table HDU.
Reimplemented from CCfits::ExtHDU. |
|
virtual copy constructor.
Reimplemented from CCfits::ExtHDU. |
|
read columns and keys specified in the input array.
See Table class documentation for further details. Reimplemented from CCfits::ExtHDU. |