CCfits - HEASARC - NASA
CCfits - HEASARC - NASA
CCfits - HEASARC - NASA
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
24.2 <strong>CCfits</strong>::BinTable Class Reference 47<br />
24.2.1 Detailed Description<br />
Class Representing Binary Table Extensions. Contains columns with scalar or vector<br />
row entries.<br />
BinTable (re)implements functions prescribed in the Table abstract class. The implementations<br />
allow the calling of cfitsio specialized routines for BinTable header construction.<br />
functions particular to the BinTable class include those dealing with variable<br />
width columns<br />
Direct instantiation of BinTable objects is disallowed: they are created by explicit calls<br />
to FITS::addTable( ... ), FITS::read(...) or internally by one of the FITS ctors on<br />
initialization. For addTable, creation of BinTables is the default.<br />
24.2.2 Constructor & Destructor Documentation<br />
24.2.2.1 <strong>CCfits</strong>::BinTable::BinTable ( FITSBase ∗ p, const String & hduName =<br />
String(""), bool readFlag = false, const std::vector< String > & keys =<br />
std::vector(), int version = 1 ) [protected]<br />
reading constructor.<br />
Construct a BinTable extension from an extension of an existing disk file. The Table<br />
is specified by name and optional version number within the file. An array of strings<br />
representing columns or keys indicates which data are to be read. The column data<br />
are only read if readFlag is true. Reading on construction is optimized, so it is more<br />
efficient to read data at the point of instantiation. This favours a "resource acquisition<br />
is initialization" model of data management.<br />
Parameters<br />
p Pointer to FITSBase class, an internal implementation detail<br />
hduName name of BinTable object to be read.<br />
readFlag flag to determine whether to read data on construction<br />
keys (optional) a list of keywords/columns to be read. The implementation<br />
will determine which are keywords. If none are specified, the constructor<br />
will simply read the header<br />
version (optional) version number. If not specified, will read the first extension<br />
that matches hduName.<br />
24.2.2.2 <strong>CCfits</strong>::BinTable::BinTable ( FITSBase ∗ p, const String & hduName, int rows, const<br />
std::vector< String > & columnName = std::vector(), const<br />
std::vector< String > & columnFmt = std::vector(), const<br />
std::vector< String > & columnUnit = std::vector(), int<br />
version = 1 ) [protected]<br />
writing constructor<br />
Generated on Tue Dec 6 2011 16:12:51 for <strong>CCfits</strong> by Doxygen