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.41 <strong>CCfits</strong>::Table::NoSuchColumn Class Reference 139<br />

• NoSuchColumn (int index, bool silent=true)<br />

Exception ctor for exception thrown if the requested column (specified by name) is not<br />

present.<br />

24.41.1 Detailed Description<br />

Exception to be thrown on a failure to retrieve a column specified either by name or<br />

index number.<br />

When a Table object is created, the header is read and a column object created for each<br />

column defined. Thus id this exception is thrown the column requested does not exist<br />

in the HDU (note that the column can easily exist and not contain any data since the<br />

user controls whether the column will be read when the FITS object is instantiated).<br />

It is expected that the index number calls will be primarily internal. The underlying<br />

implementation makes lookup by name more efficient.<br />

The exception has two variants, which take either an integer or a string as parameter.<br />

These are used according to the accessor that threw them, either by name or index.<br />

24.41.2 Constructor & Destructor Documentation<br />

24.41.2.1 <strong>CCfits</strong>::Table::NoSuchColumn::NoSuchColumn ( const String & name, bool silent =<br />

true )<br />

Exception ctor for exception thrown if the requested column (specified by name) is not<br />

present.<br />

Message: Fits Error: cannot find Column named: name is printed.<br />

Parameters<br />

name the requested column name<br />

silent if true, print message whether FITS::verboseMode is set or not.<br />

24.41.2.2 <strong>CCfits</strong>::Table::NoSuchColumn::NoSuchColumn ( int index, bool silent = true )<br />

Exception ctor for exception thrown if the requested column (specified by name) is not<br />

present.<br />

Message: Fits Error: column not present - Column number index is printed.<br />

Parameters<br />

index the requested column number<br />

silent if true, print message whether FITS::verboseMode is set or not.<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!