Commit 0823bc017e2fe018b909c03505b3cb0609280e5f
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,7 +43,10 @@ | ||
| 43 | * @brief Abstract interface for FITS table | 43 | * @brief Abstract interface for FITS table |
| 44 | * | 44 | * |
| 45 | * This class defines the abstract interface for a FITS table. A FITS table | 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 | class GFitsTable : public GFitsHDU { | 51 | class GFitsTable : public GFitsHDU { |
| 49 | 52 | ||
| @@ -76,6 +79,7 @@ public: | @@ -76,6 +79,7 @@ public: | ||
| 76 | void remove_rows(const int& rownum, const int& nrows); | 79 | void remove_rows(const int& rownum, const int& nrows); |
| 77 | int nrows(void) const; | 80 | int nrows(void) const; |
| 78 | int ncols(void) const; | 81 | int ncols(void) const; |
| 82 | + bool has(const std::string& colname) const; | ||
| 79 | std::string print(void) const; | 83 | std::string print(void) const; |
| 80 | 84 | ||
| 81 | protected: | 85 | protected: |
| @@ -100,6 +104,7 @@ private: | @@ -100,6 +104,7 @@ private: | ||
| 100 | void copy_members(const GFitsTable& table); | 104 | void copy_members(const GFitsTable& table); |
| 101 | void free_members(void); | 105 | void free_members(void); |
| 102 | GFitsTableCol* alloc_column(int typecode) const; | 106 | GFitsTableCol* alloc_column(int typecode) const; |
| 107 | + GFitsTableCol* ptr_column(const std::string& colname) const; | ||
| 103 | }; | 108 | }; |
| 104 | 109 | ||
| 105 | #endif /* GFITSTABLE_HPP */ | 110 | #endif /* GFITSTABLE_HPP */ |