Commit 08b4792d56c5c2ca5d36bf86ddb4cdc742545d37

Authored by knodlseder
1 parent 9f5df52f

add remove_rows() method

include/GFitsTable.hpp
1 1 /***************************************************************************
2 2 * GFitsTable.hpp - FITS table abstract base class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2008-2010 by Jurgen Knodlseder *
  4 + * copyright (C) 2008-2011 by Jurgen Knodlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7   - * This program is free software; you can redistribute it and/or modify *
8   - * it under the terms of the GNU General Public License as published by *
9   - * the Free Software Foundation; either version 2 of the License, or *
10   - * (at your option) any later version. *
  7 + * This program is free software: you can redistribute it and/or modify *
  8 + * it under the terms of the GNU General Public License as published by *
  9 + * the Free Software Foundation, either version 3 of the License, or *
  10 + * (at your option) any later version. *
  11 + * *
  12 + * This program is distributed in the hope that it will be useful, *
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  15 + * GNU General Public License for more details. *
  16 + * *
  17 + * You should have received a copy of the GNU General Public License *
  18 + * along with this program. If not, see <http://www.gnu.org/licenses/>. *
11 19 * *
12 20 ***************************************************************************/
13 21 /**
14 22 * @file GFitsTable.hpp
15   - * @brief GFitsTable class definition.
  23 + * @brief FITS table abstract base class interface definition
16 24 * @author J. Knodlseder
17 25 */
18 26  
... ... @@ -61,6 +69,7 @@ public:
61 69 void insert_column(int colnum, GFitsTableCol& column);
62 70 void append_rows(const int& nrows);
63 71 void insert_rows(const int& rownum, const int& nrows);
  72 + void remove_rows(const int& rownum, const int& nrows);
64 73 GFitsTableCol* column(const std::string& colname);
65 74 GFitsTableCol* column(const int& colnum);
66 75 int nrows(void) const;
... ...
pyext/GFitsTable.i
1 1 /***************************************************************************
2 2 * GFitsTable.i - FITS table abstract base class SWIG interface *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright : (C) 2008-2011 by Jurgen Knodlseder *
  4 + * copyright (C) 2008-2011 by Jurgen Knodlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7   - * This program is free software; you can redistribute it and/or modify *
8   - * it under the terms of the GNU General Public License as published by *
9   - * the Free Software Foundation; either version 2 of the License, or *
10   - * (at your option) any later version. *
  7 + * This program is free software: you can redistribute it and/or modify *
  8 + * it under the terms of the GNU General Public License as published by *
  9 + * the Free Software Foundation, either version 3 of the License, or *
  10 + * (at your option) any later version. *
  11 + * *
  12 + * This program is distributed in the hope that it will be useful, *
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  15 + * GNU General Public License for more details. *
  16 + * *
  17 + * You should have received a copy of the GNU General Public License *
  18 + * along with this program. If not, see <http://www.gnu.org/licenses/>. *
11 19 * *
12 20 ***************************************************************************/
13 21 /**
14 22 * @file GFitsTable.i
15   - * @brief GFitsTable class SWIG file.
  23 + * @brief FITS table abstract base class Python interface definition
16 24 * @author J. Knodlseder
17 25 */
18 26 %{
... ... @@ -72,7 +80,7 @@ static int table_column_tuple(PyObject *input, int *ptr) {
72 80 /***********************************************************************//**
73 81 * @class GFitsTable
74 82 *
75   - * @brief Abstract SWIG interface for the FITS table classes.
  83 + * @brief FITS table abstract base class Python interface definition
76 84 ***************************************************************************/
77 85 class GFitsTable : public GFitsHDU {
78 86 public:
... ... @@ -90,6 +98,7 @@ public:
90 98 void insert_column(int colnum, GFitsTableCol& column);
91 99 void append_rows(const int& nrows);
92 100 void insert_rows(const int& rownum, const int& nrows);
  101 + void remove_rows(const int& rownum, const int& nrows);
93 102 GFitsTableCol* column(const std::string& colname);
94 103 GFitsTableCol* column(const int& colnum);
95 104 int nrows(void) const;
... ...