CCfits - HEASARC - NASA

CCfits - HEASARC - NASA CCfits - HEASARC - NASA

heasarc.gsfc.nasa.gov
from heasarc.gsfc.nasa.gov More from this publisher
27.01.2015 Views

24.40 CCfits::Table Class Reference 133 24.40 CCfits::Table Class Reference #include Inheritance diagram for CCfits::Table: CCfits::HDU CCfits::ExtHDU CCfits::Table CCfits::AsciiTable CCfits::BinTable Classes • class NoSuchColumn Exception to be thrown on a failure to retrieve a column specified either by name or index number. Public Member Functions • Table (const Table &right) copy constructor • virtual ∼Table () destructor • virtual Column & column (const String &colName, bool caseSensitive=true) const return a reference to a Table column specified by name. • virtual Column & column (int colIndex) const return a reference to the column identified by colIndex • virtual const std::map< string, Column ∗ > & column () const return a reference to the array containing the columns. • virtual std::map< string, Column ∗ > & column () return a reference to the array containing the columns. • virtual void deleteColumn (const String &columnName) delete a column in a Table extension by name. • void deleteRows (long first, long number=1) delete a range of rows in a table. Generated on Tue Dec 6 2011 16:12:51 for CCfits by Doxygen

24.40 CCfits::Table Class Reference 134 • void deleteRows (const std::vector< long > &rowList) delete a set of rows in the table specified by an input array. • virtual long getRowsize () const return the optimal number of rows to read or write at a time • void insertRows (long first, long number=1) insert empty rows into the table • virtual int numCols () const return the number of Columns in the Table (the TFIELDS keyword). • virtual long rows () const return the number of rows in the table (NAXIS2). • void rows (long numRows) set the number of rows in the Table. • void updateRows () update the number of rows in the table Protected Member Functions • Table (FITSBase ∗p, HduType xtype, const String &hduName, int rows, const std::vector< String > &columnName, const std::vector< String > &column- Fmt, const std::vector< String > &columnUnit=std::vector< String >(), int version=1) Constructor to be used for creating new HDUs. • Table (FITSBase ∗p, HduType xtype, const String &hduName=String(""), int version=1) Constructor to be called by operations that read Table specified by hduName and version. • Table (FITSBase ∗p, HduType xtype, int number) Table constructor for getting Tables by number. • void init (bool readFlag=false, const std::vector< String > &keys=std::vector< String >()) • void numCols (int value) set the number of Columns in the Table • virtual void setColumn (const String &colname, Column ∗value) set the column with name colname to the input value. 24.40.1 Detailed Description Table is the abstract common interface to Binary and Ascii Table HDUs. Table is a subclass of ExtHDU that contains an associative array of Column objects. It implements methods for reading and writing columns Generated on Tue Dec 6 2011 16:12:51 for CCfits by Doxygen

24.40 <strong>CCfits</strong>::Table Class Reference 134<br />

• void deleteRows (const std::vector< long > &rowList)<br />

delete a set of rows in the table specified by an input array.<br />

• virtual long getRowsize () const<br />

return the optimal number of rows to read or write at a time<br />

• void insertRows (long first, long number=1)<br />

insert empty rows into the table<br />

• virtual int numCols () const<br />

return the number of Columns in the Table (the TFIELDS keyword).<br />

• virtual long rows () const<br />

return the number of rows in the table (NAXIS2).<br />

• void rows (long numRows)<br />

set the number of rows in the Table.<br />

• void updateRows ()<br />

update the number of rows in the table<br />

Protected Member Functions<br />

• Table (FITSBase ∗p, HduType xtype, const String &hduName, int rows, const<br />

std::vector< String > &columnName, const std::vector< String > &column-<br />

Fmt, const std::vector< String > &columnUnit=std::vector< String >(), int version=1)<br />

Constructor to be used for creating new HDUs.<br />

• Table (FITSBase ∗p, HduType xtype, const String &hduName=String(""), int<br />

version=1)<br />

Constructor to be called by operations that read Table specified by hduName and<br />

version.<br />

• Table (FITSBase ∗p, HduType xtype, int number)<br />

Table constructor for getting Tables by number.<br />

• void init (bool readFlag=false, const std::vector< String > &keys=std::vector<<br />

String >())<br />

• void numCols (int value)<br />

set the number of Columns in the Table<br />

• virtual void setColumn (const String &colname, Column ∗value)<br />

set the column with name colname to the input value.<br />

24.40.1 Detailed Description<br />

Table is the abstract common interface to Binary and Ascii Table HDUs.<br />

Table is a subclass of ExtHDU that contains an associative array of Column objects. It<br />

implements methods for reading and writing columns<br />

Generated on Tue Dec 6 2011 16:12:51 for <strong>CCfits</strong> by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!