Commit 0823bc017e2fe018b909c03505b3cb0609280e5f

Authored by knodlseder
1 parent cc704da6

add has() and ptr_column() methods

Showing 1 changed file with 6 additions and 1 deletions
include/GFitsTable.hpp
... ... @@ -43,7 +43,10 @@
43 43 * @brief Abstract interface for FITS table
44 44 *
45 45 * This class defines the abstract interface for a FITS table. A FITS table
46   - * is a collection of columns with an identical number of rows.
  46 + * is a collection of columns with an identical number of rows. This class
  47 + * provides high level access to table columns.
  48 + *
  49 + * @todo Implement remove_column method
47 50 ***************************************************************************/
48 51 class GFitsTable : public GFitsHDU {
49 52  
... ... @@ -76,6 +79,7 @@ public:
76 79 void remove_rows(const int& rownum, const int& nrows);
77 80 int nrows(void) const;
78 81 int ncols(void) const;
  82 + bool has(const std::string& colname) const;
79 83 std::string print(void) const;
80 84  
81 85 protected:
... ... @@ -100,6 +104,7 @@ private:
100 104 void copy_members(const GFitsTable& table);
101 105 void free_members(void);
102 106 GFitsTableCol* alloc_column(int typecode) const;
  107 + GFitsTableCol* ptr_column(const std::string& colname) const;
103 108 };
104 109  
105 110 #endif /* GFITSTABLE_HPP */
... ...