CCfits - HEASARC - NASA
CCfits - HEASARC - NASA CCfits - HEASARC - NASA
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
- Page 87 and 88: 24.14 CCfits::FITS Class Reference
- Page 89 and 90: 24.14 CCfits::FITS Class Reference
- Page 91 and 92: 24.14 CCfits::FITS Class Reference
- Page 93 and 94: 24.14 CCfits::FITS Class Reference
- Page 95 and 96: 24.14 CCfits::FITS Class Reference
- Page 97 and 98: 24.14 CCfits::FITS Class Reference
- Page 99 and 100: 24.14 CCfits::FITS Class Reference
- Page 101 and 102: 24.16 CCfits::FITS::CantOpen Class
- Page 103 and 104: 24.18 CCfits::FITS::OperationNotSup
- Page 105 and 106: 24.20 CCfits::FitsException Class R
- Page 107 and 108: 24.21 CCfits::FitsFatal Class Refer
- Page 109 and 110: 24.23 CCfits::FITSUtil::CAarray< T
- Page 111 and 112: 24.26 CCfits::FITSUtil::MatchName<
- Page 113 and 114: 24.30 CCfits::FITSUtil::MatchType<
- Page 115 and 116: 24.32 CCfits::HDU Class Reference 1
- Page 117 and 118: 24.32 CCfits::HDU Class Reference 1
- Page 119 and 120: 24.32 CCfits::HDU Class Reference 1
- Page 121 and 122: 24.32 CCfits::HDU Class Reference 1
- Page 123 and 124: 24.34 CCfits::HDU::InvalidImageData
- Page 125 and 126: 24.36 CCfits::HDU::NoSuchKeyword Cl
- Page 127 and 128: 24.37 CCfits::ImageExt< T > Class T
- Page 129 and 130: 24.38 CCfits::Keyword Class Referen
- Page 131 and 132: 24.39 CCfits::PHDU Class Reference
- Page 133 and 134: 24.39 CCfits::PHDU Class Reference
- Page 135 and 136: 24.39 CCfits::PHDU Class Reference
- Page 137: 24.39 CCfits::PHDU Class Reference
- Page 141 and 142: 24.40 CCfits::Table Class Reference
- Page 143 and 144: 24.41 CCfits::Table::NoSuchColumn C
- Page 145 and 146: 24.41 CCfits::Table::NoSuchColumn C
- Page 147 and 148: INDEX 142 CCfits::FITS::NoSuchHDU,
- Page 149 and 150: INDEX 144 CCfits::Table, 136, 137 d
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