From 6fa211725872b8c5fbfb0aad85b1c81d983716d2 Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Tue, 11 Mar 2008 00:16:42 +0000 Subject: [PATCH] initial implementation --- pyext/GFitsAsciiTable.i | 37 +++++++++++++++++++++++++++++++++++++ pyext/gammalib.i | 1 + 2 files changed, 38 insertions(+), 0 deletions(-) create mode 100644 pyext/GFitsAsciiTable.i diff --git a/pyext/GFitsAsciiTable.i b/pyext/GFitsAsciiTable.i new file mode 100644 index 0000000..e3a467f --- /dev/null +++ b/pyext/GFitsAsciiTable.i @@ -0,0 +1,37 @@ +/*************************************************************************** + * GFitsAsciiTable.hpp - FITS ASCII table class SWIG definition * + * ----------------------------------------------------------------------- * + * copyright : (C) 2008 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. * + * * + ***************************************************************************/ +/** + * @file GFitsAsciiTable.i + * @brief GFitsAsciiTable class SWIG file. + * @author J. Knodlseder + */ +%{ +/* Put headers and other declarations here that are needed for compilation */ +#include "GFitsAsciiTable.hpp" +%} +%feature("notabstract") GFitsAsciiTable; + + +/***********************************************************************//** + * @class GFitsAsciiTable + * + * @brief SWIG interface for FITS binary table + ***************************************************************************/ +class GFitsAsciiTable : public GFitsTable { +public: + // Constructors and destructors + GFitsAsciiTable(); + GFitsAsciiTable(int nrows); + GFitsAsciiTable(const GFitsAsciiTable& table); + virtual ~GFitsAsciiTable(); +}; diff --git a/pyext/gammalib.i b/pyext/gammalib.i index ae00e68..1d09c30 100755 --- a/pyext/gammalib.i +++ b/pyext/gammalib.i @@ -27,6 +27,7 @@ #include "GFitsImage.i" #include "GFitsDblImage.i" #include "GFitsTable.i" +#include "GFitsAsciiTable.i" #include "GFitsBinTable.i" #include "GFitsTableCol.i" #include "GFitsTableDblCol.i" -- libgit2 0.21.4