<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>CCfits: CCfits::Table::NoSuchColumn Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><b>CCfits</b>::<a class="el" href="classCCfits_1_1Table.html">Table</a>::<a class="el" href="classCCfits_1_1Table_1_1NoSuchColumn.html">NoSuchColumn</a> </div> </div> <div class="contents"> <h1>CCfits::Table::NoSuchColumn Class Reference<br/> <small> [<a class="el" href="group__FITSexcept.html">FITS Exceptions</a>]</small> </h1><!-- doxytag: class="CCfits::Table::NoSuchColumn" --><!-- doxytag: inherits="CCfits::FitsException" --> <p>Exception to be thrown on a failure to retrieve a column specified either by name or index number. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="Table_8h_source.html">Table.h</a>></code></p> <div class="dynheader"> Inheritance diagram for CCfits::Table::NoSuchColumn:</div> <div class="dynsection"> <div class="center"> <img src="classCCfits_1_1Table_1_1NoSuchColumn.gif" alt="Inheritance diagram" usemap="#CCfits::Table::NoSuchColumn_map" alt=""/> <map id="CCfits::Table::NoSuchColumn_map" name="CCfits::Table::NoSuchColumn_map"> <area href="classCCfits_1_1FitsException.html" alt="CCfits::FitsException" shape="rect" coords="0,0,176,24"/> </map> </div> </div> <p><a href="classCCfits_1_1Table_1_1NoSuchColumn-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCCfits_1_1Table_1_1NoSuchColumn.html#a3f2a9ac7e04e28c2c13b33934a8ba485">NoSuchColumn</a> (int index, bool silent=true)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Exception ctor for exception thrown if the requested column (specified by name) is not present. <a href="#a3f2a9ac7e04e28c2c13b33934a8ba485"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCCfits_1_1Table_1_1NoSuchColumn.html#a5f21d893d831bb74eff8703b3c6d0b1e">NoSuchColumn</a> (const String &name, bool silent=true)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Exception ctor for exception thrown if the requested column (specified by name) is not present. <a href="#a5f21d893d831bb74eff8703b3c6d0b1e"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Exception to be thrown on a failure to retrieve a column specified either by name or index number. </p> <p>When a <a class="el" href="classCCfits_1_1Table.html">Table</a> object is created, the header is read and a column object created for each column defined. Thus id this exception is thrown the column requested does not exist in the <a class="el" href="classCCfits_1_1HDU.html" title="Base class for all HDU [Header-Data Unit] objects.">HDU</a> (note that the column can easily exist and not contain any data since the user controls whether the column will be read when the <a class="el" href="classCCfits_1_1FITS.html" title="Memory object representation of a disk FITS file.">FITS</a> object is instantiated).</p> <p>It is expected that the index number calls will be primarily internal. The underlying implementation makes lookup by name more efficient.</p> <p>The exception has two variants, which take either an integer or a string as parameter. These are used according to the accessor that threw them, either by name or index. </p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a5f21d893d831bb74eff8703b3c6d0b1e"></a><!-- doxytag: member="CCfits::Table::NoSuchColumn::NoSuchColumn" ref="a5f21d893d831bb74eff8703b3c6d0b1e" args="(const String &name, bool silent=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">CCfits::Table::NoSuchColumn::NoSuchColumn </td> <td>(</td> <td class="paramtype">const String & </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>silent</em> = <code>true</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Exception ctor for exception thrown if the requested column (specified by name) is not present. </p> <p>Message: Fits Error: cannot find <a class="el" href="classCCfits_1_1Column.html" title="Abstract base class for Column objects.">Column</a> named: <em>name</em> is printed.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>the requested column name </td></tr> <tr><td valign="top"></td><td valign="top"><em>silent</em> </td><td>if true, print message whether <a class="el" href="classCCfits_1_1FITS.html#ac897e39e93234792d519913e656be5fc" title="return verbose setting for library">FITS::verboseMode</a> is set or not. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a3f2a9ac7e04e28c2c13b33934a8ba485"></a><!-- doxytag: member="CCfits::Table::NoSuchColumn::NoSuchColumn" ref="a3f2a9ac7e04e28c2c13b33934a8ba485" args="(int index, bool silent=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">CCfits::Table::NoSuchColumn::NoSuchColumn </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>index</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>silent</em> = <code>true</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Exception ctor for exception thrown if the requested column (specified by name) is not present. </p> <p>Message: Fits Error: column not present - <a class="el" href="classCCfits_1_1Column.html" title="Abstract base class for Column objects.">Column</a> number <em>index</em> is printed.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>the requested column number </td></tr> <tr><td valign="top"></td><td valign="top"><em>silent</em> </td><td>if true, print message whether <a class="el" href="classCCfits_1_1FITS.html#ac897e39e93234792d519913e656be5fc" title="return verbose setting for library">FITS::verboseMode</a> is set or not. </td></tr> </table> </dd> </dl> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="Table_8h_source.html">Table.h</a></li> <li>Table.cxx</li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on Wed Sep 9 11:59:48 2009 for CCfits by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>