BinTable.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 BINTABLE_H
#define BINTABLE_H 1
// HDUCreator
#include "HDUCreator.h"
// Table
#include "Table.h"
// needed for CLONE_DEFECT
#ifdef _MSC_VER
#include "MSconfig.h"
#endif
namespace CCfits {
class BinTable : public Table //## Inherits: <unnamed>%3804A7E75F10
{
public:
virtual BinTable * 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:
BinTable(const BinTable &right);
BinTable (FITS* p, const String &hduName = String(""), bool readFlag = false, const std::vector<String>& keys = std::vector<String>(), int version = 1);
BinTable (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);
// ctor for creating a grouping table
BinTable (FITS* p, int version = 1, const String & groupName = String(""));
// ExtHDU constructor for getting ExtHDUs by number.
// Necessary since EXTNAME is a reserved, not required, keyword.
BinTable (FITS* p, int number);
~BinTable();
// Additional Protected Declarations
private:
virtual void readTableHeader (int ncols, std::vector<String>& colName, std::vector<String>& colFmt, std::vector<String>& colUnit);
void readVariableColumns (const std::vector<String> &varColumns);
// Additional Private Declarations
private: //## implementation
// Additional Implementation Declarations
friend class HDUCreator;
};
// Class CCfits::BinTable
} // namespace CCfits
#endif
CCfits::BinTable::~BinTable
~BinTable()
destructor.
Definition: BinTable.cxx:78
CCfits::BinTable::clone
virtual BinTable * clone(FITS *p) const
virtual copy constructor
Definition: BinTable.cxx:127
CCfits::ExtHDU::version
int version() const
return the extension version number.
Definition: ExtHDU.h:677
CCfits::FITS
Memory object representation of a disk FITS file.
Definition: FITS.h:628
CCfits::BinTable
Class Representing Binary Table Extensions. Contains columns with scalar or vector row entries...
Definition: BinTable.h:130
CCfits::ValueType
ValueType
CCfits value types and their CFITSIO equivalents (in caps)
Definition: CCfits.h:81
CCfits::BinTable::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: BinTable.cxx:134
CCfits::Table
Definition: Table.h:282
CCfits::Table::rows
virtual long rows() const
return the number of rows in the table (NAXIS2).
Definition: Table.h:381
CCfits::BinTable::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: BinTable.cxx:309