AsciiTable.h
// Astrophysics Science Division,
// NASA/ Goddard Space Flight Center
// HEASARC
// http://heasarc.gsfc.nasa.gov
// e-mail: ccfits@legacy.gsfc.nasa.gov
//
// Original author: Ben Dorman
#ifndef ASCIITABLE_H
#define ASCIITABLE_H 1
// HDUCreator
#include "HDUCreator.h"
// Table
#include "Table.h"
// needed for CLONE_DEFECT
#ifdef _MSC_VER
#include "MSconfig.h"
#endif
namespace CCfits {
class AsciiTable : public Table //## Inherits: <unnamed>%3804A75CE420
{
public:
virtual AsciiTable * clone (FITS* 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 = 0, size_t columnNumber = 0);
// Additional Public Declarations
protected:
AsciiTable (FITS* p, const String &hduName = String(""), bool readFlag = false, const std::vector<String>& keys = std::vector<String>(), int version = 1);
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);
// ExtHDU constructor for getting ExtHDUs by number.
// Necessary since EXTNAME is a reserved not required
// keyword.
AsciiTable (FITS* p, int number);
~AsciiTable();
// Additional Protected Declarations
private:
AsciiTable(const AsciiTable &right);
virtual void readTableHeader (int ncols, std::vector<String>& colName, std::vector<String>& colFmt, std::vector<String>& colUnit);
// Additional Private Declarations
private: //## implementation
// Additional Implementation Declarations
friend class HDUCreator;
};
// Class CCfits::AsciiTable
} // namespace CCfits
#endif
CCfits::ExtHDU::version
int version() const
return the extension version number.
Definition: ExtHDU.h:677
CCfits::AsciiTable
Class Representing Ascii Table Extensions.
Definition: AsciiTable.h:136
CCfits::AsciiTable::readData
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
CCfits::AsciiTable::AsciiTable
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
CCfits::FITS
Memory object representation of a disk FITS file.
Definition: FITS.h:628
CCfits::ValueType
ValueType
CCfits value types and their CFITSIO equivalents (in caps)
Definition: CCfits.h:81
CCfits::AsciiTable::~AsciiTable
~AsciiTable()
destructor.
Definition: AsciiTable.cxx:77
CCfits::Table
Definition: Table.h:282
CCfits::AsciiTable::addColumn
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
CCfits::Table::rows
virtual long rows() const
return the number of rows in the table (NAXIS2).
Definition: Table.h:381
CCfits::AsciiTable::clone
virtual AsciiTable * clone(FITS *p) const
virtual copy constructor
Definition: AsciiTable.cxx:131