27.01.2015 Views

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

24.12 <strong>CCfits</strong>::ExtHDU Class Reference 75<br />

set required gcount keyword value<br />

• long pcount () const<br />

return required pcount keyword value<br />

• void pcount (long value)<br />

set required pcount keyword value<br />

• HduType xtension () const<br />

return the extension type<br />

• void xtension (HduType value)<br />

set the extension type<br />

24.12.1 Detailed Description<br />

base class for all FITS extension HDUs, i.e. Image Extensions and Tables.<br />

ExtHDU needs to have the combined public interface of Table objects and images. It<br />

achieves this by providing the same set of read and write operations as PHDU, and also<br />

providing the same operations for extracting columns from the extension as does Table<br />

[after which the column interface is accessible]. Differentiation between extension<br />

types operates by exception handling: .i.e. attempting to access image data structures<br />

on a Table object through the ExtHDU interface will or trying to return a Column<br />

reference from an Image extension will both throw an exception<br />

24.12.2 Constructor & Destructor Documentation<br />

24.12.2.1 <strong>CCfits</strong>::ExtHDU::ExtHDU ( FITSBase ∗ p, HduType xtype, const String &<br />

hduName, int bitpix, int naxis, const std::vector< long > & axes, int version )<br />

[protected]<br />

writing constructor.<br />

The writing constructor forces the user to supply a name for the HDU. The bitpix,<br />

naxes and naxis data required by this constructor are required FITS keywords for any<br />

HDUs.<br />

24.12.2.2 <strong>CCfits</strong>::ExtHDU::ExtHDU ( FITSBase ∗ p, HduType xtype, int number )<br />

[protected]<br />

ExtHDU constructor for getting ExtHDUs by number.<br />

Necessary since EXTNAME is a reserved, not required, keyword. But a synthetic name<br />

is supplied by static ExtHDU::readHduName which is called by this constructor.<br />

24.12.3 Member Function Documentation<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!