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.13 CCfits::ExtHDU::WrongExtensionType Class Reference 81 24.13 CCfits::ExtHDU::WrongExtensionType Class Reference Exception to be thrown on unmatched extension types. #include Inheritance diagram for CCfits::ExtHDU::WrongExtensionType: CCfits::FitsException CCfits::ExtHDU::WrongExtensionType Public Member Functions • WrongExtensionType (const String &msg, bool silent=true) Exception ctor, prefixes the string "Fits Error: wrong extension type" before the specific message. 24.13.1 Detailed Description Exception to be thrown on unmatched extension types. This exception is to be thrown if the user requested a particular extension and it does not correspond to the expected type. 24.13.2 Constructor & Destructor Documentation 24.13.2.1 CCfits::ExtHDU::WrongExtensionType::WrongExtensionType ( const String & msg, bool silent = true ) Exception ctor, prefixes the string "Fits Error: wrong extension type" before the specific message. Parameters msg A specific diagnostic message silent if true, print message whether FITS::verboseMode is set or not. The documentation for this class was generated from the following files: • ExtHDU.h • ExtHDU.cxx Generated on Tue Dec 6 2011 16:12:51 for CCfits by Doxygen

24.14 CCfits::FITS Class Reference 82 24.14 CCfits::FITS Class Reference Memory object representation of a disk FITS file. #include Classes • class CantCreate thrown on failure to create new file • class CantOpen thrown on failure to open existing file • class NoSuchHDU exception thrown by HDU retrieval methods. • class OperationNotSupported thrown for unsupported operations, such as attempted to select rows from an image extension. Public Member Functions • FITS (const String &name, RWmode mode=Read, bool readDataFlag=false, const std::vector< String > &primaryKeys=std::vector< String >()) basic constructor • FITS (const String &name, RWmode mode, const string &hduName, bool read- DataFlag=false, const std::vector< String > &hduKeys=std::vector< String >(), const std::vector< String > &primaryKey=std::vector< String >(), int version=1) Open a FITS file and read a single specified HDU. • FITS (const String &name, RWmode mode, const std::vector< String > &hdu- Names, bool readDataFlag=false, const std::vector< String > &primaryKey=std- ::vector< String >()) • FITS (const String &fileName, const FITS &source) create a new FITS object and corresponding file with copy of the primary header of the source If the filename corresponds to an existing file and does not start with the ’!’ character the construction will fail with a CantCreate exception. • FITS (const String &name, RWmode mode, const std::vector< String > &hdu- Names, const std::vector< std::vector< String > > &hduKeys, bool readData- Flag=false, const std::vector< String > &primaryKeys=std::vector< String >(), const std::vector< int > &hduVersions=std::vector< int >()) FITS read constructor in full generality. • FITS (const String &name, int bitpix, int naxis, long ∗naxes) Constructor for creating new FITS objects containing images. Generated on Tue Dec 6 2011 16:12:51 for CCfits by Doxygen

24.14 <strong>CCfits</strong>::FITS Class Reference 82<br />

24.14 <strong>CCfits</strong>::FITS Class Reference<br />

Memory object representation of a disk FITS file.<br />

#include <br />

Classes<br />

• class CantCreate<br />

thrown on failure to create new file<br />

• class CantOpen<br />

thrown on failure to open existing file<br />

• class NoSuchHDU<br />

exception thrown by HDU retrieval methods.<br />

• class OperationNotSupported<br />

thrown for unsupported operations, such as attempted to select rows from an image<br />

extension.<br />

Public Member Functions<br />

• FITS (const String &name, RWmode mode=Read, bool readDataFlag=false,<br />

const std::vector< String > &primaryKeys=std::vector< String >())<br />

basic constructor<br />

• FITS (const String &name, RWmode mode, const string &hduName, bool read-<br />

DataFlag=false, const std::vector< String > &hduKeys=std::vector< String >(),<br />

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

Open a FITS file and read a single specified HDU.<br />

• FITS (const String &name, RWmode mode, const std::vector< String > &hdu-<br />

Names, bool readDataFlag=false, const std::vector< String > &primaryKey=std-<br />

::vector< String >())<br />

• FITS (const String &fileName, const FITS &source)<br />

create a new FITS object and corresponding file with copy of the primary header of<br />

the source If the filename corresponds to an existing file and does not start with the<br />

’!’ character the construction will fail with a CantCreate exception.<br />

• FITS (const String &name, RWmode mode, const std::vector< String > &hdu-<br />

Names, const std::vector< std::vector< String > > &hduKeys, bool readData-<br />

Flag=false, const std::vector< String > &primaryKeys=std::vector< String >(),<br />

const std::vector< int > &hduVersions=std::vector< int >())<br />

FITS read constructor in full generality.<br />

• FITS (const String &name, int bitpix, int naxis, long ∗naxes)<br />

Constructor for creating new FITS objects containing images.<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!