10 #define ASCIITABLE_H 1
13 #include "HDUCreator.h"
141 virtual void readData (
bool readFlag =
false,
const std::vector<String>& keys = std::vector<String>());
142 virtual void addColumn (
ValueType type,
const String& columnName,
long repeatWidth,
const String& colUnit = String(
""),
long decimals = 0,
size_t columnNumber = 0);
147 AsciiTable (
FITS* p,
const String &hduName = String(
""),
bool readFlag =
false,
const std::vector<String>& keys = std::vector<String>(),
int version = 1);
148 AsciiTable (
FITS* 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);
160 virtual void readTableHeader (
int ncols, std::vector<String>& colName, std::vector<String>& colFmt, std::vector<String>& colUnit);
166 friend class HDUCreator;
Class Representing Ascii Table Extensions.
Definition: AsciiTable.h:137
virtual void addColumn(ValueType type, const String &columnName, long repeatWidth, const String &colUnit=String(""), long decimals=0, size_t columnNumber=0)
add a new column to an existing table HDU.
Definition: AsciiTable.cxx:239
virtual void readData(bool readFlag=false, const std::vector< String > &keys=std::vector< String >())
read columns and keys specified in the input array.
Definition: AsciiTable.cxx:138
AsciiTable(FITS *p, const String &hduName=String(""), bool readFlag=false, const std::vector< String > &keys=std::vector< String >(), int version=1)
reading constructor: Construct a AsciiTable extension from an extension of an existing disk file.
Definition: AsciiTable.cxx:35
virtual AsciiTable * clone(FITS *p) const
virtual copy constructor
Definition: AsciiTable.cxx:131
~AsciiTable()
destructor.
Definition: AsciiTable.cxx:77
int version() const
return the extension version number.
Definition: ExtHDU.h:677
Memory object representation of a disk FITS file.
Definition: FITS.h:629
virtual long rows() const
return the number of rows in the table (NAXIS2).
Definition: Table.h:381
Namespace enclosing all CCfits classes and globals definitions.
Definition: AsciiTable.cxx:26
ValueType
CCfits value types and their CFITSIO equivalents (in caps)
Definition: CCfits.h:81