diff --git a/include/GFitsTable.hpp b/include/GFitsTable.hpp index 4a49798..29bd5a0 100644 --- a/include/GFitsTable.hpp +++ b/include/GFitsTable.hpp @@ -1,18 +1,26 @@ /*************************************************************************** * GFitsTable.hpp - FITS table abstract base class * * ----------------------------------------------------------------------- * - * copyright (C) 2008-2010 by Jurgen Knodlseder * + * copyright (C) 2008-2011 by Jurgen Knodlseder * * ----------------------------------------------------------------------- * * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * * * ***************************************************************************/ /** * @file GFitsTable.hpp - * @brief GFitsTable class definition. + * @brief FITS table abstract base class interface definition * @author J. Knodlseder */ @@ -61,6 +69,7 @@ public: void insert_column(int colnum, GFitsTableCol& column); void append_rows(const int& nrows); void insert_rows(const int& rownum, const int& nrows); + void remove_rows(const int& rownum, const int& nrows); GFitsTableCol* column(const std::string& colname); GFitsTableCol* column(const int& colnum); int nrows(void) const; diff --git a/pyext/GFitsTable.i b/pyext/GFitsTable.i index 8d4bffc..48c86e8 100644 --- a/pyext/GFitsTable.i +++ b/pyext/GFitsTable.i @@ -1,18 +1,26 @@ /*************************************************************************** * GFitsTable.i - FITS table abstract base class SWIG interface * * ----------------------------------------------------------------------- * - * copyright : (C) 2008-2011 by Jurgen Knodlseder * + * copyright (C) 2008-2011 by Jurgen Knodlseder * * ----------------------------------------------------------------------- * * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * * * ***************************************************************************/ /** * @file GFitsTable.i - * @brief GFitsTable class SWIG file. + * @brief FITS table abstract base class Python interface definition * @author J. Knodlseder */ %{ @@ -72,7 +80,7 @@ static int table_column_tuple(PyObject *input, int *ptr) { /***********************************************************************//** * @class GFitsTable * - * @brief Abstract SWIG interface for the FITS table classes. + * @brief FITS table abstract base class Python interface definition ***************************************************************************/ class GFitsTable : public GFitsHDU { public: @@ -90,6 +98,7 @@ public: void insert_column(int colnum, GFitsTableCol& column); void append_rows(const int& nrows); void insert_rows(const int& rownum, const int& nrows); + void remove_rows(const int& rownum, const int& nrows); GFitsTableCol* column(const std::string& colname); GFitsTableCol* column(const int& colnum); int nrows(void) const;