Commit da2eda2feb20c201c7f046a6521b93fc885a5c96

Authored by Jürgen Knödlseder
1 parent 5f2e0885

Add classname() method to Python interface (#1321)

Showing 205 changed files with 655 additions and 602 deletions

Too many changes.

To preserve performance only 100 of 205 files are displayed.

include/GFitsAsciiTable.hpp
... ... @@ -47,7 +47,7 @@ class GFitsAsciiTable : public GFitsTable {
47 47 public:
48 48 // Constructors and destructors
49 49 GFitsAsciiTable(void);
50   - GFitsAsciiTable(const int& nrows);
  50 + explicit GFitsAsciiTable(const int& nrows);
51 51 GFitsAsciiTable(const GFitsAsciiTable& table);
52 52 virtual ~GFitsAsciiTable(void);
53 53  
... ...
include/GFitsBinTable.hpp
1 1 /***************************************************************************
2 2 * GFitsBinTable.hpp - FITS binary table class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2008-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2008-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -41,7 +41,7 @@ class GFitsBinTable : public GFitsTable {
41 41 public:
42 42 // Constructors and destructors
43 43 GFitsBinTable(void);
44   - GFitsBinTable(const int& nrows);
  44 + explicit GFitsBinTable(const int& nrows);
45 45 GFitsBinTable(const GFitsBinTable& table);
46 46 virtual ~GFitsBinTable(void);
47 47  
... ...
include/GPhotons.hpp
... ... @@ -36,7 +36,7 @@
36 36 /***********************************************************************//**
37 37 * @class GPhotons
38 38 *
39   - * @brief Photons container class
  39 + * @brief Photon container class
40 40 *
41 41 * This class is a container for photons. Photons are implemented by the
42 42 * GPhoton class which stores the physical attributes of a photon such as the
... ...
include/GSkyRegionCircle.hpp
1 1 /***************************************************************************
2 2 * GSkyRegionCircle.hpp - circular sky region class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2013-2014 by Michael Mayer *
  4 + * copyright (C) 2013-2015 by Michael Mayer *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -60,7 +60,7 @@ class GSkyRegionCircle : public GSkyRegion {
60 60 public:
61 61 // Constructors and destructors
62 62 GSkyRegionCircle(void);
63   - GSkyRegionCircle(GSkyDir& centre, const double& radius);
  63 + GSkyRegionCircle(const GSkyDir& centre, const double& radius);
64 64 GSkyRegionCircle(const double& ra, const double& dec, const double& radius);
65 65 explicit GSkyRegionCircle(const std::string& line);
66 66 GSkyRegionCircle(const GSkyRegionCircle& region);
... ...
include/GSource.hpp
... ... @@ -55,10 +55,8 @@ class GSource : public GBase {
55 55 public:
56 56 // Constructors and destructors
57 57 GSource(void);
58   - explicit GSource(const std::string& name,
59   - GModelSpatial* model,
60   - const GEnergy& energy,
61   - const GTime& time);
  58 + GSource(const std::string& name, GModelSpatial* model,
  59 + const GEnergy& energy, const GTime& time);
62 60 GSource(const GSource& src);
63 61 virtual ~GSource(void);
64 62  
... ...
include/GWcs.hpp
... ... @@ -48,10 +48,10 @@ class GWcs : public GSkyProjection {
48 48 public:
49 49 // Constructors and destructors
50 50 GWcs(void);
51   - explicit GWcs(const std::string& coords,
52   - const double& crval1, const double& crval2,
53   - const double& crpix1, const double& crpix2,
54   - const double& cdelt1, const double& cdelt2);
  51 + GWcs(const std::string& coords,
  52 + const double& crval1, const double& crval2,
  53 + const double& crpix1, const double& crpix2,
  54 + const double& cdelt1, const double& cdelt2);
55 55 explicit GWcs(const GFitsHDU& hdu);
56 56 GWcs(const GWcs& wcs);
57 57 virtual ~GWcs(void);
... ...
include/GWcsAIT.hpp
1 1 /***************************************************************************
2 2 * GWcsAIT.hpp - Aitoff (AIT) projection class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2013-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2013-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,10 +45,10 @@ class GWcsAIT : public GWcs {
45 45 public:
46 46 // Constructors and destructors
47 47 GWcsAIT(void);
48   - explicit GWcsAIT(const std::string& coords,
49   - const double& crval1, const double& crval2,
50   - const double& crpix1, const double& crpix2,
51   - const double& cdelt1, const double& cdelt2);
  48 + GWcsAIT(const std::string& coords,
  49 + const double& crval1, const double& crval2,
  50 + const double& crpix1, const double& crpix2,
  51 + const double& cdelt1, const double& cdelt2);
52 52 GWcsAIT(const GWcsAIT& wcs);
53 53 virtual ~GWcsAIT(void);
54 54  
... ...
include/GWcsAZP.hpp
1 1 /***************************************************************************
2 2 * GWcsAZP.hpp - Zenithal/azimuthal perspective (AZP) projection class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,10 +45,10 @@ class GWcsAZP : public GWcs {
45 45 public:
46 46 // Constructors and destructors
47 47 GWcsAZP(void);
48   - explicit GWcsAZP(const std::string& coords,
49   - const double& crval1, const double& crval2,
50   - const double& crpix1, const double& crpix2,
51   - const double& cdelt1, const double& cdelt2);
  48 + GWcsAZP(const std::string& coords,
  49 + const double& crval1, const double& crval2,
  50 + const double& crpix1, const double& crpix2,
  51 + const double& cdelt1, const double& cdelt2);
52 52 GWcsAZP(const GWcsAZP& wcs);
53 53 virtual ~GWcsAZP(void);
54 54  
... ...
include/GWcsCAR.hpp
1 1 /***************************************************************************
2 2 * GWcsCAR.hpp - Plate carree (CAR) projection class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,15 +45,15 @@ class GWcsCAR : public GWcs {
45 45 public:
46 46 // Constructors and destructors
47 47 GWcsCAR(void);
48   - explicit GWcsCAR(const std::string& coords,
49   - const double& crval1, const double& crval2,
50   - const double& crpix1, const double& crpix2,
51   - const double& cdelt1, const double& cdelt2);
  48 + GWcsCAR(const std::string& coords,
  49 + const double& crval1, const double& crval2,
  50 + const double& crpix1, const double& crpix2,
  51 + const double& cdelt1, const double& cdelt2);
52 52 GWcsCAR(const GWcsCAR& wcs);
53 53 virtual ~GWcsCAR(void);
54 54  
55 55 // Operators
56   - GWcsCAR& operator= (const GWcsCAR& wcs);
  56 + GWcsCAR& operator=(const GWcsCAR& wcs);
57 57  
58 58 // Implemented pure virtual base class methods
59 59 virtual void clear(void);
... ...
include/GWcsMER.hpp
1 1 /***************************************************************************
2 2 * GWcsMER.hpp - Mercator's (MER) projection class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,10 +45,10 @@ class GWcsMER : public GWcs {
45 45 public:
46 46 // Constructors and destructors
47 47 GWcsMER(void);
48   - explicit GWcsMER(const std::string& coords,
49   - const double& crval1, const double& crval2,
50   - const double& crpix1, const double& crpix2,
51   - const double& cdelt1, const double& cdelt2);
  48 + GWcsMER(const std::string& coords,
  49 + const double& crval1, const double& crval2,
  50 + const double& crpix1, const double& crpix2,
  51 + const double& cdelt1, const double& cdelt2);
52 52 GWcsMER(const GWcsMER& wcs);
53 53 virtual ~GWcsMER(void);
54 54  
... ...
include/GWcsSTG.hpp
1 1 /***************************************************************************
2 2 * GWcsSTG.hpp - Stereographic (STG) projection class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,10 +45,10 @@ class GWcsSTG : public GWcs {
45 45 public:
46 46 // Constructors and destructors
47 47 GWcsSTG(void);
48   - explicit GWcsSTG(const std::string& coords,
49   - const double& crval1, const double& crval2,
50   - const double& crpix1, const double& crpix2,
51   - const double& cdelt1, const double& cdelt2);
  48 + GWcsSTG(const std::string& coords,
  49 + const double& crval1, const double& crval2,
  50 + const double& crpix1, const double& crpix2,
  51 + const double& cdelt1, const double& cdelt2);
52 52 GWcsSTG(const GWcsSTG& wcs);
53 53 virtual ~GWcsSTG(void);
54 54  
... ...
include/GWcsTAN.hpp
1 1 /***************************************************************************
2 2 * GWcsTAN.hpp - Gnomonic (TAN) projection class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,10 +45,10 @@ class GWcsTAN : public GWcs {
45 45 public:
46 46 // Constructors and destructors
47 47 GWcsTAN(void);
48   - explicit GWcsTAN(const std::string& coords,
49   - const double& crval1, const double& crval2,
50   - const double& crpix1, const double& crpix2,
51   - const double& cdelt1, const double& cdelt2);
  48 + GWcsTAN(const std::string& coords,
  49 + const double& crval1, const double& crval2,
  50 + const double& crpix1, const double& crpix2,
  51 + const double& cdelt1, const double& cdelt2);
52 52 GWcsTAN(const GWcsTAN& wcs);
53 53 virtual ~GWcsTAN(void);
54 54  
... ...
include/GXmlAttribute.hpp
1 1 /***************************************************************************
2 2 * GXmlAttribute.hpp - XML attribute class definition *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -56,8 +56,8 @@ class GXmlAttribute : public GBase {
56 56 public:
57 57 // Constructors and destructors
58 58 GXmlAttribute(void);
59   - explicit GXmlAttribute(const GXmlAttribute& attr);
60   - explicit GXmlAttribute(const std::string& name, const std::string& value);
  59 + GXmlAttribute(const GXmlAttribute& attr);
  60 + GXmlAttribute(const std::string& name, const std::string& value);
61 61 virtual ~GXmlAttribute(void);
62 62  
63 63 // Operators
... ...
inst/com/pyext/GCOMEventBin.i
1 1 /***************************************************************************
2 2 * GCOMEventBin.i - COMPTEL event bin class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -44,6 +44,7 @@ public:
44 44 // Implemented pure virtual base class methods
45 45 virtual void clear(void);
46 46 virtual GCOMEventBin* clone(void) const;
  47 + virtual std::string classname(void) const;
47 48 virtual double size(void) const;
48 49 virtual const GCOMInstDir& dir(void) const;
49 50 virtual const GEnergy& energy(void) const;
... ...
inst/com/pyext/GCOMEventCube.i
1 1 /***************************************************************************
2 2 * GCOMEventCube.i - COMPTEL event bin container class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -48,6 +48,7 @@ public:
48 48 // Implemented pure virtual base class methods
49 49 virtual void clear(void);
50 50 virtual GCOMEventCube* clone(void) const;
  51 + virtual std::string classname(void) const;
51 52 virtual int size(void) const;
52 53 virtual int dim(void) const;
53 54 virtual int naxis(const int& axis) const;
... ...
inst/com/pyext/GCOMInstDir.i
1 1 /***************************************************************************
2   - * GCOMInstDir.i - COMPTEL instrument direction class *
  2 + * GCOMInstDir.i - COMPTEL instrument direction class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -44,12 +44,13 @@ public:
44 44 // Methods
45 45 virtual void clear(void);
46 46 virtual GCOMInstDir* clone(void) const;
  47 + virtual std::string classname(void) const;
47 48  
48 49 // Other methods
49   - void dir(const GSkyDir& dir);
50   - GSkyDir dir(void) const;
51   - void phibar(const double& phibar);
52   - double phibar(void) const;
  50 + void dir(const GSkyDir& dir);
  51 + const GSkyDir& dir(void) const;
  52 + void phibar(const double& phibar);
  53 + const double& phibar(void) const;
53 54 };
54 55  
55 56  
... ...
inst/com/pyext/GCOMModelDRBFitting.i
1 1 /***************************************************************************
2   - * GCOMModelDRBFitting.i - COMPTEL DRB model fitting class *
  2 + * GCOMModelDRBFitting.i - COMPTEL DRB model fitting class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,6 +45,7 @@ public:
45 45 // Implemented pure virtual methods
46 46 virtual void clear(void);
47 47 virtual GCOMModelDRBFitting* clone(void) const;
  48 + virtual std::string classname(void) const;
48 49 virtual std::string type(void) const;
49 50 virtual bool is_constant(void) const;
50 51 virtual double eval(const GEvent& event,
... ...
inst/com/pyext/GCOMResponse.i
1 1 /***************************************************************************
2 2 * GCOMResponse.i - COMPTEL Response class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,6 +45,7 @@ public:
45 45 // Implement pure virtual base class methods
46 46 virtual void clear(void);
47 47 virtual GCOMResponse* clone(void) const;
  48 + virtual std::string classname(void) const;
48 49 virtual bool use_edisp(void) const;
49 50 virtual bool use_tdisp(void) const;
50 51 virtual double irf(const GEvent& event,
... ...
inst/cta/include/GCTAPointing.hpp
1 1 /***************************************************************************
2 2 * GCTAPointing.hpp - CTA pointing class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -65,13 +65,10 @@ public:
65 65 // Operators
66 66 virtual GCTAPointing& operator=(const GCTAPointing& pnt);
67 67  
68   - // Implemented pure virtual methods
69   - virtual void clear(void);
70   - virtual GCTAPointing* clone(void) const;
71   - virtual std::string classname(void) const;
72   - virtual std::string print(const GChatter& chatter = NORMAL) const;
73   -
74   - // Other methods
  68 + // Methods
  69 + void clear(void);
  70 + GCTAPointing* clone(void) const;
  71 + std::string classname(void) const;
75 72 const GSkyDir& dir(void) const;
76 73 void dir(const GSkyDir& dir);
77 74 GCTAInstDir instdir(const GSkyDir& skydir) const;
... ... @@ -85,6 +82,7 @@ public:
85 82 void load(const std::string& filename,
86 83 const std::string& extname = "POINTING");
87 84 void read(const GFitsTable& table);
  85 + std::string print(const GChatter& chatter = NORMAL) const;
88 86  
89 87 protected:
90 88 // Protected methods
... ...
inst/cta/pyext/GCTAAeff.i
1 1 /***************************************************************************
2 2 * GCTAAeff.i - CTA effective area base class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -54,6 +54,7 @@ public:
54 54 // Pure virtual methods
55 55 virtual void clear(void) = 0;
56 56 virtual GCTAAeff* clone(void) const = 0;
  57 + virtual std::string classname(void) const = 0;
57 58 virtual void load(const std::string& filename) = 0;
58 59 virtual std::string filename(void) const = 0;
59 60 };
... ...
inst/cta/pyext/GCTAAeff2D.i
1 1 /***************************************************************************
2 2 * GCTAAeff2D.i - CTA 2D effective area class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -55,6 +55,7 @@ public:
55 55 // Implemented pure virtual methods
56 56 void clear(void);
57 57 GCTAAeff2D* clone(void) const;
  58 + std::string classname(void) const;
58 59 void load(const std::string& filename);
59 60 std::string filename(void) const;
60 61  
... ...
inst/cta/pyext/GCTAAeffArf.i
... ... @@ -55,6 +55,7 @@ public:
55 55 // Implemented pure virtual methods
56 56 void clear(void);
57 57 GCTAAeffArf* clone(void) const;
  58 + std::string classname(void) const;
58 59 void load(const std::string& filename);
59 60 std::string filename(void) const;
60 61  
... ...
inst/cta/pyext/GCTAAeffPerfTable.i
1 1 /***************************************************************************
2 2 * GCTAAeffPerfTable.i - CTA performance table effective area class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -55,6 +55,7 @@ public:
55 55 // Implemented pure virtual methods
56 56 void clear(void);
57 57 GCTAAeffPerfTable* clone(void) const;
  58 + std::string classname(void) const;
58 59 void load(const std::string& filename);
59 60 std::string filename(void) const;
60 61  
... ...
inst/cta/pyext/GCTABackground.i
... ... @@ -50,6 +50,7 @@ public:
50 50 // Pure virtual methods
51 51 virtual void clear(void) = 0;
52 52 virtual GCTABackground* clone(void) const = 0;
  53 + virtual std::string classname(void) const = 0;
53 54 virtual void load(const std::string& filename) = 0;
54 55 virtual std::string filename(void) const = 0;
55 56 virtual GCTAInstDir mc(const GEnergy& energy,
... ...
inst/cta/pyext/GCTABackground3D.i
... ... @@ -51,6 +51,7 @@ public:
51 51 // Implemented pure virtual methods
52 52 void clear(void);
53 53 GCTABackground3D* clone(void) const;
  54 + std::string classname(void) const;
54 55 void load(const std::string& filename);
55 56 std::string filename(void) const;
56 57 GCTAInstDir mc(const GEnergy& energy,
... ...
inst/cta/pyext/GCTABackgroundPerfTable.i
... ... @@ -51,6 +51,7 @@ public:
51 51 // Implemented pure virtual methods
52 52 void clear(void);
53 53 GCTABackgroundPerfTable* clone(void) const;
  54 + std::string classname(void) const;
54 55 void load(const std::string& filename);
55 56 std::string filename(void) const;
56 57 GCTAInstDir mc(const GEnergy& energy,
... ...
inst/cta/pyext/GCTADir.i deleted
1   -/***************************************************************************
2   - * GCTADir.i - CTA direction class *
3   - * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2013 by Jurgen Knodlseder *
5   - * ----------------------------------------------------------------------- *
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 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/>. *
19   - * *
20   - ***************************************************************************/
21   -/**
22   - * @file GCTADir.i
23   - * @brief CTA camera direction class interface definition
24   - * @author Juergen Knoedlseder
25   - */
26   -%{
27   -/* Put headers and other declarations here that are needed for compilation */
28   -#include "GCTADir.hpp"
29   -#include "GTools.hpp"
30   -%}
31   -
32   -
33   -/***********************************************************************//**
34   - * @class GCTADir
35   - *
36   - * @brief CTA camera direction class.
37   - ***************************************************************************/
38   -class GCTADir : public GBase {
39   -
40   -public:
41   - // Constructors and destructors
42   - GCTADir(void);
43   - GCTADir(const GCTADir& dir);
44   - explicit GCTADir(const GSkyDir& dir, const GCTAPointing& pnt);
45   - explicit GCTADir(const GCTAInstDir& dir, const GCTAPointing& pnt);
46   - virtual ~GCTADir(void);
47   -
48   - // Methods
49   - void clear(void);
50   - GCTADir* clone(void) const;
51   - void dir(const GSkyDir& dir, const GCTAPointing& pnt);
52   - void dir(const GCTAInstDir& dir, const GCTAPointing& pnt);
53   - const double& theta(void) const;
54   - const double& phi(void) const;
55   - double theta_deg(void) const;
56   - double phi_deg(void) const;
57   - const double& costheta(void) const;
58   - const double& sintheta(void) const;
59   -};
60   -
61   -
62   -/***********************************************************************//**
63   - * @brief GCTADir class extension
64   - ***************************************************************************/
65   -%extend GCTADir {
66   - GCTADir copy() {
67   - return (*self);
68   - }
69   -};
inst/cta/pyext/GCTAEdisp.i
... ... @@ -53,6 +53,7 @@ public:
53 53 // Pure virtual methods
54 54 virtual void clear(void) = 0;
55 55 virtual GCTAEdisp* clone(void) const = 0;
  56 + virtual std::string classname(void) const = 0;
56 57 virtual void load(const std::string& filename) = 0;
57 58 virtual std::string filename(void) const = 0;
58 59 virtual GEnergy mc(GRan& ran,
... ...
inst/cta/pyext/GCTAEdispPerfTable.i
1 1 /***************************************************************************
2 2 * GCTAEdispPerfTable.i - CTA performance table energy dispersion class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2014 by Christoph Deil & Ellis Owen *
  4 + * copyright (C) 2014-2015 by Christoph Deil & Ellis Owen *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -54,6 +54,7 @@ public:
54 54 // Implemented pure virtual methods
55 55 void clear(void);
56 56 GCTAEdispPerfTable* clone(void) const;
  57 + std::string classname(void) const;
57 58 void load(const std::string& filename);
58 59 std::string filename(void) const;
59 60 GEnergy mc(GRan& ran,
... ...
inst/cta/pyext/GCTAEdispRmf.i
1 1 /***************************************************************************
2 2 * GCTAEdispRmf.i - CTA RMF energy dispersion class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2014 by Christoph Deil & Ellis Owen *
  4 + * copyright (C) 2014-2015 by Christoph Deil & Ellis Owen *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -54,6 +54,7 @@ public:
54 54 // Implemented pure virtual methods
55 55 void clear(void);
56 56 GCTAEdispRmf* clone(void) const;
  57 + std::string classname(void) const;
57 58 void load(const std::string& filename);
58 59 std::string filename(void) const;
59 60 GEnergy mc(GRan& ran,
... ...
inst/cta/pyext/GCTAEventBin.i
1 1 /***************************************************************************
2 2 * GCTAEventBin.i - CTA event bin class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -48,6 +48,7 @@ public:
48 48 // Implemented pure virtual base class methods
49 49 virtual void clear(void);
50 50 virtual GCTAEventBin* clone(void) const;
  51 + virtual std::string classname(void) const;
51 52 virtual double size(void) const;
52 53 virtual const GCTAInstDir& dir(void) const;
53 54 virtual const GEnergy& energy(void) const;
... ...
inst/cta/pyext/GCTAEventList.i
1 1 /***************************************************************************
2 2 * GCTAEventList.i - CTA event atom container class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,6 +45,7 @@ public:
45 45 // Implemented pure virtual base class methods
46 46 virtual void clear(void);
47 47 virtual GCTAEventList* clone(void) const;
  48 + virtual std::string classname(void) const;
48 49 virtual int size(void) const;
49 50 virtual void load(const std::string& filename);
50 51 virtual void save(const std::string& filename,
... ...
inst/cta/pyext/GCTAInstDir.i
1 1 /***************************************************************************
2 2 * GCTAInstDir.i - CTA instrument direction class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -46,6 +46,7 @@ public:
46 46 // Implemented pure virtual base class methods
47 47 void clear(void);
48 48 GCTAInstDir* clone(void) const;
  49 + std::string classname(void) const;
49 50  
50 51 // Other methods
51 52 void dir(const GSkyDir& dir);
... ...
inst/cta/pyext/GCTAModelCubeBackground.i
1 1 /***************************************************************************
2 2 * GCTAModelCubeBackground - CTA cube background model class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -54,6 +54,7 @@ public:
54 54 // Implemented pure virtual methods
55 55 virtual void clear(void);
56 56 virtual GCTAModelCubeBackground* clone(void) const;
  57 + virtual std::string classname(void) const;
57 58 virtual std::string type(void) const;
58 59 virtual bool is_constant(void) const;
59 60 virtual double eval(const GEvent& event,
... ...
inst/cta/pyext/GCTAModelIrfBackground.i
1 1 /***************************************************************************
2 2 * GCTAModelIrfBackground.i - CTA IRF background model class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2014-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -46,6 +46,7 @@ public:
46 46 // Implemented pure virtual methods
47 47 virtual void clear(void);
48 48 virtual GCTAModelIrfBackground* clone(void) const;
  49 + virtual std::string classname(void) const;
49 50 virtual std::string type(void) const;
50 51 virtual bool is_constant(void) const;
51 52 virtual double eval(const GEvent& event,
... ...
inst/cta/pyext/GCTAModelRadial.i
1 1 /***************************************************************************
2 2 * GCTAModelRadial.i - Abstract radial model base class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -46,6 +46,7 @@ public:
46 46 // Pure virtual methods
47 47 virtual void clear(void) = 0;
48 48 virtual GCTAModelRadial* clone(void) const = 0;
  49 + virtual std::string classname(void) const = 0;
49 50 virtual std::string type(void) const = 0;
50 51 virtual double eval(const double& offset) const = 0;
51 52 virtual double eval_gradients(const double& offset) const = 0;
... ...
inst/cta/pyext/GCTAModelRadialAcceptance.i
1 1 /***************************************************************************
2 2 * GCTAModelRadialAcceptance.i - Radial acceptance model class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -49,6 +49,7 @@ public:
49 49 // Implemented pure virtual methods
50 50 virtual void clear(void);
51 51 virtual GCTAModelRadialAcceptance* clone(void) const;
  52 + virtual std::string classname(void) const;
52 53 virtual std::string type(void) const;
53 54 virtual bool is_constant(void) const;
54 55 virtual double eval(const GEvent& event,
... ...
inst/cta/pyext/GCTAModelRadialGauss.i
1 1 /***************************************************************************
2 2 * GCTAModelRadialGauss.i - Radial Gaussian model class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -47,6 +47,7 @@ public:
47 47 // Implemented pure virtual methods
48 48 virtual void clear(void);
49 49 virtual GCTAModelRadialGauss* clone(void) const;
  50 + virtual std::string classname(void) const;
50 51 virtual std::string type(void) const;
51 52 virtual double eval(const double& offset) const;
52 53 virtual double eval_gradients(const double& offset) const;
... ...
inst/cta/pyext/GCTAModelRadialPolynom.i
1 1 /***************************************************************************
2 2 * GCTAModelRadialPolynom.i - Radial Polynom model class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -47,6 +47,7 @@ public:
47 47 // Implemented pure virtual methods
48 48 virtual void clear(void);
49 49 virtual GCTAModelRadialPolynom* clone(void) const;
  50 + virtual std::string classname(void) const;
50 51 virtual std::string type(void) const;
51 52 virtual double eval(const double& offset) const;
52 53 virtual double eval_gradients(const double& offset) const;
... ...
inst/cta/pyext/GCTAModelRadialProfile.i
1 1 /***************************************************************************
2 2 * GCTAModelRadialProfile.i - Radial Profile model class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -48,6 +48,7 @@ public:
48 48 // Implemented pure virtual methods
49 49 virtual void clear(void);
50 50 virtual GCTAModelRadialProfile* clone(void) const;
  51 + virtual std::string classname(void) const;
51 52 virtual std::string type(void) const;
52 53 virtual double eval(const double& offset) const;
53 54 virtual double eval_gradients(const double& offset) const;
... ...
inst/cta/pyext/GCTAModelRadialRegistry.i
1 1 /***************************************************************************
2 2 * GCTAModelRadialRegistry.i - Radial model registry class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,6 +45,7 @@ public:
45 45 virtual ~GCTAModelRadialRegistry(void);
46 46  
47 47 // Methods
  48 + std::string classname(void) const;
48 49 int size(void) const;
49 50 GCTAModelRadial* alloc(const std::string& name) const;
50 51 std::string name(const int& index) const;
... ...
inst/cta/pyext/GCTAOnOffObservation.i
1 1 /***************************************************************************
2 2 * GCTAOnOffObservation.i - CTA on-off observation class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2013 by Michael Mayer *
  4 + * copyright (C) 2013-2015 by Michael Mayer *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -69,6 +69,7 @@ public:
69 69 // Methods
70 70 void clear(void);
71 71 GCTAOnOffObservation* clone(void) const;
  72 + std::string classname(void) const;
72 73 void name(const std::string& name);
73 74 void instrument(const std::string& instrument);
74 75 void id(const std::string& id);
... ...
inst/cta/pyext/GCTAOnOffObservations.i
1 1 /***************************************************************************
2 2 * GCTAOnOffObservations.i - CTA on-off observation container class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2013 by Pierrick Martin *
  4 + * copyright (C) 2013-2015 by Pierrick Martin *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,6 +45,7 @@ public:
45 45 // Methods
46 46 void clear(void);
47 47 GCTAOnOffObservations* clone(void) const;
  48 + std::string classname(void) const;
48 49 GCTAOnOffObservation* at(const int& index);
49 50 int size(void) const;
50 51 bool is_empty(void) const;
... ...
inst/cta/pyext/GCTAPointing.i
1 1 /***************************************************************************
2 2 * GCTAPointing.i - CTA pointing class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2014 by Jurgen Knodlseder *
  4 + * copyright (C) 2010-2015 by Jurgen Knodlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -44,11 +44,10 @@ public:
44 44 GCTAPointing(const GCTAPointing& pnt);
45 45 virtual ~GCTAPointing(void);
46 46  
47   - // Implemented pure virtual methods
48   - virtual void clear(void);
49   - virtual GCTAPointing* clone(void) const;
50   -
51   - // Other methods
  47 + // Methods
  48 + void clear(void);
  49 + GCTAPointing* clone(void) const;
  50 + std::string classname(void) const;
52 51 const GSkyDir& dir(void) const;
53 52 void dir(const GSkyDir& dir);
54 53 GCTAInstDir instdir(const GSkyDir& skydir) const;
... ...
inst/cta/pyext/GCTAPsf.i
1 1 /***************************************************************************
2 2 * GCTAPsf.i - CTA point spread function base class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -55,6 +55,7 @@ public:
55 55 // Pure virtual methods
56 56 virtual void clear(void) = 0;
57 57 virtual GCTAPsf* clone(void) const = 0;
  58 + virtual std::string classname(void) const = 0;
58 59 virtual void load(const std::string& filename) = 0;
59 60 virtual std::string filename(void) const = 0;
60 61 virtual double mc(GRan& ran,
... ...
inst/cta/pyext/GCTAPsf2D.i
1 1 /***************************************************************************
2 2 * GCTAPsf2D.i - CTA 2D point spread function class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -56,6 +56,7 @@ public:
56 56 // Implemented pure virtual methods
57 57 void clear(void);
58 58 GCTAPsf2D* clone(void) const;
  59 + std::string classname(void) const;
59 60 void load(const std::string& filename);
60 61 std::string filename(void) const;
61 62 double mc(GRan& ran,
... ...
inst/cta/pyext/GCTAPsfKing.i
1 1 /***************************************************************************
2 2 * GCTAPsfKing.i - King profile CTA point spread function class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2013-2014 by Michael Mayer *
  4 + * copyright (C) 2013-2015 by Michael Mayer *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -58,6 +58,7 @@ public:
58 58 // Implemented pure virtual methods
59 59 void clear(void);
60 60 GCTAPsfKing* clone(void) const;
  61 + std::string classname(void) const;
61 62 void load(const std::string& filename);
62 63 std::string filename(void) const;
63 64 double mc(GRan& ran,
... ...
inst/cta/pyext/GCTAPsfPerfTable.i
1 1 /***************************************************************************
2 2 * GCTAPsfPerfTable.i - CTA performance table PSF class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -56,6 +56,7 @@ public:
56 56 // Implemented pure virtual methods
57 57 void clear(void);
58 58 GCTAPsfPerfTable* clone(void) const;
  59 + std::string classname(void) const;
59 60 void load(const std::string& filename);
60 61 std::string filename(void) const;
61 62 double mc(GRan& ran,
... ...
inst/cta/pyext/GCTAPsfVector.i
1 1 /***************************************************************************
2 2 * GCTAPsfVector.i - CTA point spread function vector class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -59,6 +59,7 @@ public:
59 59 // Implemented pure virtual methods
60 60 void clear(void);
61 61 GCTAPsfVector* clone(void) const;
  62 + std::string classname(void) const;
62 63 void load(const std::string& filename);
63 64 std::string filename(void) const;
64 65 double mc(GRan& ran,
... ...
inst/cta/pyext/GCTAResponse.i
1 1 /***************************************************************************
2 2 * GCTAResponse.i - CTA response abstract base class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -44,6 +44,7 @@ public:
44 44 // Pure virtual methods
45 45 virtual void clear(void) = 0;
46 46 virtual GCTAResponse* clone(void) const = 0;
  47 + virtual std::string classname(void) const = 0;
47 48 virtual bool use_edisp(void) const = 0;
48 49 virtual bool use_tdisp(void) const = 0;
49 50 virtual double irf(const GEvent& event,
... ...
inst/cta/pyext/GCTAResponseCube.i
1 1 /***************************************************************************
2 2 * GCTAResponseCube.i - CTA cube-style response function class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2014-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,6 +45,7 @@ public:
45 45 // Implement pure virtual base class methods
46 46 virtual void clear(void);
47 47 virtual GCTAResponseCube* clone(void) const;
  48 + virtual std::string classname(void) const;
48 49 virtual bool use_edisp(void) const;
49 50 virtual bool use_tdisp(void) const;
50 51 virtual double irf(const GEvent& event,
... ...
inst/cta/pyext/GCTAResponseIrf.i
1 1 /***************************************************************************
2 2 * GCTAResponseIrf.i - CTA instrument response function class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -101,6 +101,7 @@ public:
101 101 // Implement pure virtual base class methods
102 102 virtual void clear(void);
103 103 virtual GCTAResponseIrf* clone(void) const;
  104 + virtual std::string classname(void) const;
104 105 virtual bool use_edisp(void) const;
105 106 virtual bool use_tdisp(void) const;
106 107 virtual double irf(const GEvent& event,
... ...
inst/cta/pyext/GCTAResponseTable.i
1 1 /***************************************************************************
2 2 * GCTAResponseTable.i - CTA response table class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -133,6 +133,7 @@ public:
133 133 // Methods
134 134 void clear(void);
135 135 GCTAResponseTable* clone(void) const;
  136 + std::string classname(void) const;
136 137 int size(void) const;
137 138 const int& elements(void) const;
138 139 const int& axes(void) const;
... ...
inst/cta/pyext/GCTARoi.i
1 1 /***************************************************************************
2 2 * GCTARoi.i - CTA region of interest class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Jurgen Knodlseder *
  4 + * copyright (C) 2010-2015 by Jurgen Knodlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -46,6 +46,7 @@ public:
46 46 // Implemented pure virtual base class methods
47 47 virtual void clear(void);
48 48 virtual GCTARoi* clone(void) const;
  49 + virtual std::string classname(void) const;
49 50 virtual bool contains(const GEvent& event) const;
50 51  
51 52 // Other methods
... ...
inst/lat/pyext/GLATAeff.i
1 1 /***************************************************************************
2 2 * GLATAeff.i - Fermi/LAT effective area class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -51,6 +51,7 @@ public:
51 51 // Methods
52 52 void clear(void);
53 53 GLATAeff* clone(void) const;
  54 + std::string classname(void) const;
54 55 void load(const std::string filename);
55 56 void save(const std::string filename,
56 57 const bool& clobber = false);
... ...
inst/lat/pyext/GLATEdisp.i
1 1 /***************************************************************************
2 2 * GLATEdisp.i - Fermi/LAT energy dispersion class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -49,6 +49,7 @@ public:
49 49 // Methods
50 50 void clear(void);
51 51 GLATEdisp* clone(void) const;
  52 + std::string classname(void) const;
52 53 void load(const std::string filename);
53 54 void save(const std::string filename,
54 55 const bool& clobber = false);
... ...
inst/lat/pyext/GLATEventAtom.i
1 1 /***************************************************************************
2 2 * GLATEventAtom.i - Fermi/LAT event atom class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -44,6 +44,7 @@ public:
44 44 // Implemented pure virtual base class methods
45 45 void clear(void);
46 46 GLATEventAtom* clone(void) const;
  47 + std::string classname(void) const;
47 48 const GLATInstDir& dir(void) const;
48 49 const GEnergy& energy(void) const;
49 50 const GTime& time(void) const;
... ...
inst/lat/pyext/GLATEventBin.i
1 1 /***************************************************************************
2 2 * GLATEventBin.i - Fermi/LAT event bin class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2009-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2009-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -48,6 +48,7 @@ public:
48 48 // Implemented pure virtual base class methods
49 49 virtual void clear(void);
50 50 virtual GLATEventBin* clone(void) const;
  51 + virtual std::string classname(void) const;
51 52 virtual double size(void) const;
52 53 virtual const GLATInstDir& dir(void) const;
53 54 virtual const GEnergy& energy(void) const;
... ...
inst/lat/pyext/GLATEventCube.i
1 1 /***************************************************************************
2 2 * GLATEventCube.i - Fermi/LAT event cube class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2008-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2008-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,6 +45,7 @@ public:
45 45 // Implemented pure virtual base class methods
46 46 virtual void clear(void);
47 47 virtual GLATEventCube* clone(void) const;
  48 + virtual std::string classname(void) const;
48 49 virtual int size(void) const;
49 50 virtual int dim(void) const;
50 51 virtual int naxis(const int& axis) const;
... ...
inst/lat/pyext/GLATEventList.i
1 1 /***************************************************************************
2 2 * GLATEventList.i - Fermi/LAT event list class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,6 +45,7 @@ public:
45 45 // Implemented pure virtual base class methods
46 46 virtual void clear(void);
47 47 virtual GLATEventList* clone(void) const;
  48 + virtual std::string classname(void) const;
48 49 virtual int size(void) const;
49 50 virtual void load(const std::string& filename);
50 51 virtual void save(const std::string& filename,
... ...
inst/lat/pyext/GLATInstDir.i
1 1 /***************************************************************************
2 2 * GLATInstDir.i - Fermi/LAT instrument direction class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,6 +45,7 @@ public:
45 45 // Implemented pure virtual base class methods
46 46 virtual void clear(void);
47 47 virtual GLATInstDir* clone(void) const;
  48 + virtual std::string classname(void) const;
48 49  
49 50 // Other methods
50 51 void dir(const GSkyDir& dir);
... ...
inst/lat/pyext/GLATLtCube.i
1 1 /***************************************************************************
2 2 * GLATLtCube.i - Fermi/LAT lifetime cube class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -58,6 +58,7 @@ public:
58 58 // Methods
59 59 void clear(void);
60 60 GLATLtCube* clone(void) const;
  61 + std::string classname(void) const;
61 62 void load(const std::string& filename);
62 63 void save(const std::string& filename, bool clobber=false) const;
63 64 };
... ...
inst/lat/pyext/GLATMeanPsf.i
1 1 /***************************************************************************
2 2 * GLATMeanPsf.i - Fermi/LAT mean PSF class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -49,6 +49,7 @@ public:
49 49 // Methods
50 50 void clear(void);
51 51 GLATMeanPsf* clone(void) const;
  52 + std::string classname(void) const;
52 53 int size(void) const;
53 54 void set(const GSkyDir& dir, const GLATObservation& obs);
54 55 int noffsets(void) const;
... ...
inst/lat/pyext/GLATPsf.i
1 1 /***************************************************************************
2 2 * GLATPsf.i - Fermi/LAT point spread function class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -48,22 +48,23 @@ public:
48 48 const double& ctheta);
49 49  
50 50 // Methods
51   - void clear(void);
52   - GLATPsf* clone(void) const;
53   - void load(const std::string& filename);
54   - void save(const std::string& filename,
55   - const bool& clobber = false);
56   - void read(const GFits& file);
57   - void write(GFits& file) const;
58   - int size(void) const;
59   - int nenergies(void) const;
60   - int ncostheta(void) const;
61   - double costhetamin(void) const;
62   - void costhetamin(const double& ctheta);
63   - bool has_phi(void) const;
64   - bool is_front(void) const;
65   - bool is_back(void) const;
66   - int version(void) const;
  51 + void clear(void);
  52 + GLATPsf* clone(void) const;
  53 + std::string classname(void) const;
  54 + void load(const std::string& filename);
  55 + void save(const std::string& filename,
  56 + const bool& clobber = false);
  57 + void read(const GFits& file);
  58 + void write(GFits& file) const;
  59 + int size(void) const;
  60 + int nenergies(void) const;
  61 + int ncostheta(void) const;
  62 + double costhetamin(void) const;
  63 + void costhetamin(const double& ctheta);
  64 + bool has_phi(void) const;
  65 + bool is_front(void) const;
  66 + bool is_back(void) const;
  67 + int version(void) const;
67 68 };
68 69  
69 70  
... ...
inst/lat/pyext/GLATResponse.i
1 1 /***************************************************************************
2 2 * GLATResponse.i - Fermi/LAT Response class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2008-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2008-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -44,6 +44,7 @@ public:
44 44 // Implemented pure virtual methods
45 45 virtual void clear(void);
46 46 virtual GLATResponse* clone(void) const;
  47 + virtual std::string classname(void) const;
47 48 virtual bool use_edisp(void) const;
48 49 virtual bool use_tdisp(void) const;
49 50 virtual double irf(const GEvent& event,
... ...
inst/lat/pyext/GLATRoi.i
1 1 /***************************************************************************
2 2 * GLATRoi.i - Fermi/LAT region of interest class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,6 +45,7 @@ public:
45 45 // Implemented pure virtual base class methods
46 46 virtual void clear(void);
47 47 virtual GLATRoi* clone(void) const;
  48 + virtual std::string classname(void) const;
48 49 virtual bool contains(const GEvent& event) const;
49 50  
50 51 // Other methods
... ...
inst/mwl/pyext/GMWLDatum.i
1 1 /***************************************************************************
2 2 * GMWLDatum.i - Multi-wavelength spectral point class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -47,6 +47,7 @@ public:
47 47 // Implemented pure virtual base class methods
48 48 virtual void clear(void);
49 49 virtual GMWLDatum* clone(void) const;
  50 + virtual std::string classname(void) const;
50 51 virtual double size(void) const;
51 52 virtual const GInstDir& dir(void) const;
52 53 virtual const GEnergy& energy(void) const;
... ...
inst/mwl/pyext/GMWLSpectrum.i
1 1 /***************************************************************************
2 2 * GMWLSpectrum.i - Multi-wavelength spectrum class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -45,6 +45,7 @@ public:
45 45 // Implemented pure virtual methods
46 46 virtual void clear(void);
47 47 virtual GMWLSpectrum* clone(void) const;
  48 + virtual std::string classname(void) const;
48 49 virtual int size(void) const;
49 50 virtual int dim(void) const;
50 51 virtual int naxis(const int& axis) const;
... ...
pyext/GApplication.i
1 1 /***************************************************************************
2 2 * GApplication.i - GammaLib application base class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -52,6 +52,7 @@ public:
52 52 // Methods
53 53 void clear(void);
54 54 GApplication* clone(void) const;
  55 + std::string classname(void) const;
55 56 const std::string& name(void) const;
56 57 const std::string& version(void) const;
57 58 double telapse(void) const;
... ...
pyext/GApplicationPar.i
1 1 /***************************************************************************
2 2 * GApplicationPar.i - Application parameter class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -49,6 +49,7 @@ public:
49 49 // Methods
50 50 void clear(void);
51 51 GApplicationPar* clone(void) const;
  52 + std::string classname(void) const;
52 53 void type(const std::string& type);
53 54 void mode(const std::string& mode);
54 55 void value(const std::string& value);
... ...
pyext/GApplicationPars.i
1 1 /***************************************************************************
2 2 * GApplicationPars.i - Application parameter container *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -49,6 +49,7 @@ public:
49 49 // Methods
50 50 void clear(void);
51 51 GApplicationPars* clone(void) const;
  52 + std::string classname(void) const;
52 53 GApplicationPar& at(const int& index);
53 54 int size(void) const;
54 55 bool is_empty(void) const;
... ...
pyext/GArf.i
1 1 /***************************************************************************
2 2 * GArf.i - XSPEC Auxiliary Response File class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2013-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -47,6 +47,7 @@ public:
47 47 // Methods
48 48 void clear(void);
49 49 GArf* clone(void) const;
  50 + std::string classname(void) const;
50 51 int size(void) const;
51 52 double& at(const int& index);
52 53 const GEbounds& ebounds(void) const;
... ...
pyext/GBase.i
1 1 /***************************************************************************
2 2 * GBase.i - GammaLib base class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2012-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2012-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -44,7 +44,7 @@
44 44 *
45 45 * clone() Creates a deep copy of the object
46 46 *
47   - * print() Print content of object
  47 + * classname() Returns the mane of the class
48 48 ***************************************************************************/
49 49 class GBase {
50 50 public:
... ... @@ -52,8 +52,9 @@ public:
52 52 virtual ~GBase(void);
53 53  
54 54 // Methods
55   - virtual void clear(void) = 0;
56   - virtual GBase* clone(void) const = 0;
  55 + virtual void clear(void) = 0;
  56 + virtual GBase* clone(void) const = 0;
  57 + virtual std::string classname(void) const = 0;
57 58 };
58 59  
59 60  
... ...
pyext/GCaldb.i
1 1 /***************************************************************************
2 2 * GCaldb.i - Calibration database class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -46,6 +46,7 @@ public:
46 46 // Methods
47 47 void clear(void);
48 48 GCaldb* clone(void) const;
  49 + std::string classname(void) const;
49 50 int size(void) const;
50 51 std::string rootdir(void) const;
51 52 void rootdir(const std::string& pathname);
... ...
pyext/GCsv.i
1 1 /***************************************************************************
2 2 * GCsv.i - Column separated values table class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -94,6 +94,7 @@ public:
94 94 // Methods
95 95 void clear(void);
96 96 GCsv* clone(void) const;
  97 + std::string classname(void) const;
97 98 int size(void) const;
98 99 const int& ncols(void) const;
99 100 const int& nrows(void) const;
... ...
pyext/GDerivative.i
1 1 /***************************************************************************
2 2 * GDerivative.i - Derivative class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2011-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -46,6 +46,7 @@ public:
46 46 // Methods
47 47 void clear(void);
48 48 GDerivative* clone(void) const;
  49 + std::string classname(void) const;
49 50 void max_iter(const int& max_iter);
50 51 void eps(const double& eps);
51 52 void step_frac(const double& fraction);
... ...
pyext/GEbounds.i
1 1 /***************************************************************************
2 2 * GEbounds.i - Energy boundaries class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -50,6 +50,7 @@ public:
50 50 // Methods
51 51 void clear(void);
52 52 GEbounds* clone(void) const;
  53 + std::string classname(void) const;
53 54 int size(void) const;
54 55 bool is_empty(void) const;
55 56 void append(const GEnergy& emin, const GEnergy& emax);
... ...
pyext/GEnergies.i
1 1 /***************************************************************************
2 2 * GEnergies.i - Energy container class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2013-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -47,22 +47,23 @@ public:
47 47 virtual ~GEnergies(void);
48 48  
49 49 // Methods
50   - void clear(void);
51   - GEnergies* clone(void) const;
52   - GEnergy& at(const int& index);
53   - int size(void) const;
54   - bool is_empty(void) const;
55   - GEnergy& append(const GEnergy& energy);
56   - GEnergy& insert(const int& index, const GEnergy& energy);
57   - void remove(const int& index);
58   - void reserve(const int& num);
59   - void extend(const GEnergies& energies);
60   - void load(const std::string& filename,
61   - const std::string& extname = "ENERGIES");
62   - void save(const std::string& filename, const bool& clobber = false,
63   - const std::string& extname = "ENERGIES") const;
64   - void read(const GFitsTable& table);
65   - void write(GFits& file, const std::string& extname = "ENERGIES") const;
  50 + void clear(void);
  51 + GEnergies* clone(void) const;
  52 + std::string classname(void) const;
  53 + GEnergy& at(const int& index);
  54 + int size(void) const;
  55 + bool is_empty(void) const;
  56 + GEnergy& append(const GEnergy& energy);
  57 + GEnergy& insert(const int& index, const GEnergy& energy);
  58 + void remove(const int& index);
  59 + void reserve(const int& num);
  60 + void extend(const GEnergies& energies);
  61 + void load(const std::string& filename,
  62 + const std::string& extname = "ENERGIES");
  63 + void save(const std::string& filename, const bool& clobber = false,
  64 + const std::string& extname = "ENERGIES") const;
  65 + void read(const GFitsTable& table);
  66 + void write(GFits& file, const std::string& extname = "ENERGIES") const;
66 67 };
67 68  
68 69  
... ...
pyext/GEnergy.i
1 1 /***************************************************************************
2 2 * GEnergy.i - Energy class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -56,32 +56,33 @@ public:
56 56 double operator()(const std::string& unit) const;
57 57  
58 58 // Methods
59   - void clear(void);
60   - GEnergy* clone(void) const;
61   - double erg(void) const;
62   - double keV(void) const;
63   - double MeV(void) const;
64   - double GeV(void) const;
65   - double TeV(void) const;
66   - double Angstrom(void) const;
67   - double log10erg(void) const;
68   - double log10keV(void) const;
69   - double log10MeV(void) const;
70   - double log10GeV(void) const;
71   - double log10TeV(void) const;
72   - double log10(const std::string& unit) const;
73   - void erg(const double& eng);
74   - void keV(const double& eng);
75   - void MeV(const double& eng);
76   - void GeV(const double& eng);
77   - void TeV(const double& eng);
78   - void Angstrom(const double& wavelength);
79   - void log10erg(const double& eng);
80   - void log10keV(const double& eng);
81   - void log10MeV(const double& eng);
82   - void log10GeV(const double& eng);
83   - void log10TeV(const double& eng);
84   - void log10(const double& eng, const std::string& unit);
  59 + void clear(void);
  60 + GEnergy* clone(void) const;
  61 + std::string classname(void) const;
  62 + double erg(void) const;
  63 + double keV(void) const;
  64 + double MeV(void) const;
  65 + double GeV(void) const;
  66 + double TeV(void) const;
  67 + double Angstrom(void) const;
  68 + double log10erg(void) const;
  69 + double log10keV(void) const;
  70 + double log10MeV(void) const;
  71 + double log10GeV(void) const;
  72 + double log10TeV(void) const;
  73 + double log10(const std::string& unit) const;
  74 + void erg(const double& eng);
  75 + void keV(const double& eng);
  76 + void MeV(const double& eng);
  77 + void GeV(const double& eng);
  78 + void TeV(const double& eng);
  79 + void Angstrom(const double& wavelength);
  80 + void log10erg(const double& eng);
  81 + void log10keV(const double& eng);
  82 + void log10MeV(const double& eng);
  83 + void log10GeV(const double& eng);
  84 + void log10TeV(const double& eng);
  85 + void log10(const double& eng, const std::string& unit);
85 86 };
86 87  
87 88  
... ...
pyext/GEvent.i
1 1 /***************************************************************************
2 2 * GEvent.i - Abstract event base class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -74,6 +74,7 @@ public:
74 74 // Pure virtual methods
75 75 virtual void clear(void) = 0;
76 76 virtual GEvent* clone(void) const = 0;
  77 + virtual std::string classname(void) const = 0;
77 78 virtual double size(void) const = 0;
78 79 virtual const GInstDir& dir(void) const = 0;
79 80 virtual const GEnergy& energy(void) const = 0;
... ...
pyext/GEventAtom.i
1 1 /***************************************************************************
2 2 * GEventAtom.i - Abstract event atom base class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -63,6 +63,7 @@ public:
63 63 // Pure virtual methods
64 64 virtual void clear(void) = 0;
65 65 virtual GEvent* clone(void) const = 0;
  66 + virtual std::string classname(void) const = 0;
66 67 virtual double size(void) const;
67 68 virtual const GInstDir& dir(void) const = 0;
68 69 virtual const GEnergy& energy(void) const = 0;
... ...
pyext/GEventBin.i
1 1 /***************************************************************************
2 2 * GEventBin.i - Abstract event bin base class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2009-2013 by Jurgen Knodlseder *
  4 + * copyright (C) 2009-2015 by Jurgen Knodlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -65,6 +65,7 @@ public:
65 65 // Pure virtual methods
66 66 virtual void clear(void) = 0;
67 67 virtual GEvent* clone(void) const = 0;
  68 + virtual std::string classname(void) const = 0;
68 69 virtual double size(void) const = 0;
69 70 virtual const GInstDir& dir(void) const = 0;
70 71 virtual const GEnergy& energy(void) const = 0;
... ...
pyext/GEventCube.i
1 1 /***************************************************************************
2 2 * GEventCube.i - Abstract event bin container class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Jurgen Knodlseder *
  4 + * copyright (C) 2010-2015 by Jurgen Knodlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -44,6 +44,7 @@ public:
44 44 // Pure virtual methods
45 45 virtual void clear(void) = 0;
46 46 virtual GEventCube* clone(void) const = 0;
  47 + virtual std::string classname(void) const = 0;
47 48 virtual int size(void) const = 0;
48 49 virtual int dim(void) const = 0;
49 50 virtual int naxis(const int& axis) const = 0;
... ...
pyext/GEventList.i
1 1 /***************************************************************************
2 2 * GEventList.i - Abstract event atom container class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -44,6 +44,7 @@ public:
44 44 // Pure virtual methods
45 45 virtual void clear(void) = 0;
46 46 virtual GEventList* clone(void) const = 0;
  47 + virtual std::string classname(void) const = 0;
47 48 virtual int size(void) const = 0;
48 49 virtual void load(const std::string& filename) = 0;
49 50 virtual void save(const std::string& filename,
... ...
pyext/GEvents.i
1 1 /***************************************************************************
2 2 * GEvents.i - Abstract event container class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2014 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -48,6 +48,7 @@ public:
48 48 // Pure virtual methods
49 49 virtual void clear(void) = 0;
50 50 virtual GEvents* clone(void) const = 0;
  51 + virtual std::string classname(void) const = 0;
51 52 virtual int size(void) const = 0;
52 53 virtual void load(const std::string& filename) = 0;
53 54 virtual void save(const std::string& filename,
... ...
pyext/GFits.i
1 1 /***************************************************************************
2   - * GFits.hpp - FITS file class *
  2 + * GFits.i - FITS file class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2008-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2008-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -60,6 +60,7 @@ public:
60 60 // Methods
61 61 void clear(void);
62 62 GFits* clone(void) const;
  63 + std::string classname(void) const;
63 64 GFitsHDU* at(const int& extno);
64 65 GFitsHDU* at(const std::string& extname);
65 66 GFitsImage* image(const int& extno);
... ...
pyext/GFitsAsciiTable.i
1 1 /***************************************************************************
2 2 * GFitsAsciiTable.i - FITS ASCII table class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2008-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2008-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -39,14 +39,15 @@ class GFitsAsciiTable : public GFitsTable {
39 39 public:
40 40 // Constructors and destructors
41 41 GFitsAsciiTable(void);
42   - GFitsAsciiTable(int nrows);
  42 + explicit GFitsAsciiTable(const int& nrows);
43 43 GFitsAsciiTable(const GFitsAsciiTable& table);
44 44 virtual ~GFitsAsciiTable(void);
45 45  
46 46 // Methods
47 47 virtual void clear(void);
48 48 virtual GFitsAsciiTable* clone(void) const;
49   - HDUType exttype(void) const { return HT_ASCII_TABLE; }
  49 + virtual std::string classname(void) const;
  50 + HDUType exttype(void) const;
50 51 };
51 52  
52 53  
... ...
pyext/GFitsBinTable.i
1 1 /***************************************************************************
2 2 * GFitsBinTable.i - FITS binary table class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2008-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2008-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -39,14 +39,15 @@ class GFitsBinTable : public GFitsTable {
39 39 public:
40 40 // Constructors and destructors
41 41 GFitsBinTable(void);
42   - GFitsBinTable(int nrows);
  42 + explicit GFitsBinTable(const int& nrows);
43 43 GFitsBinTable(const GFitsBinTable& table);
44 44 virtual ~GFitsBinTable(void);
45 45  
46 46 // Implemented pure virtual methods
47 47 virtual void clear(void);
48 48 virtual GFitsBinTable* clone(void) const;
49   - HDUType exttype(void) const { return HT_BIN_TABLE; }
  49 + virtual std::string classname(void) const;
  50 + HDUType exttype(void) const;
50 51 };
51 52  
52 53  
... ...
pyext/GFitsHDU.i
1 1 /***************************************************************************
2 2 * GFitsHDU.i - FITS HDU handling class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2008-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2008-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -56,9 +56,10 @@ public:
56 56 };
57 57  
58 58 // Pure virtual methods
59   - virtual void clear(void) = 0;
60   - virtual GFitsHDU* clone(void) const = 0;
61   - virtual HDUType exttype(void) const = 0;
  59 + virtual void clear(void) = 0;
  60 + virtual GFitsHDU* clone(void) const = 0;
  61 + virtual std::string classname(void) const = 0;
  62 + virtual HDUType exttype(void) const = 0;
62 63  
63 64 // Implemented methods
64 65 int size(void) const;
... ...
pyext/GFitsHeader.i
1 1 /***************************************************************************
2   - * GFitsHeader.hpp - FITS header cards container class *
  2 + * GFitsHeader.i - FITS header cards container class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2008-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2008-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -47,6 +47,7 @@ public:
47 47 // Methods
48 48 void clear(void);
49 49 GFitsHeader* clone(void) const;
  50 + std::string classname(void) const;
50 51 GFitsHeaderCard& at(const int& cardno);
51 52 GFitsHeaderCard& at(const std::string& keyname);
52 53 std::string string(const int& cardno) const;
... ...
pyext/GFitsHeaderCard.i
1 1 /***************************************************************************
2   - * GFitsHeaderCard.hpp - FITS header card class *
  2 + * GFitsHeaderCard.i - FITS header card class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2008-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2008-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -57,6 +57,7 @@ public:
57 57 // Methods
58 58 void clear(void);
59 59 GFitsHeaderCard* clone(void) const;
  60 + std::string classname(void) const;
60 61 void keyname(const std::string& keyname);
61 62 std::string keyname(void) const;
62 63 void value(const std::string& value);
... ...
pyext/GFitsImage.i
1 1 /***************************************************************************
2 2 * GFitsImage.i - Abstract FITS image base class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2008-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2008-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -107,6 +107,7 @@ public:
107 107 // Pure virtual methods
108 108 virtual void clear(void) = 0;
109 109 virtual GFitsImage* clone(void) const = 0;
  110 + virtual std::string classname(void) const = 0;
110 111 virtual void* pixels(void) = 0;
111 112 virtual double pixel(const int& ix) const = 0;
112 113 virtual double pixel(const int& ix, const int& iy) const = 0;
... ...
pyext/GFitsImageByte.i
1 1 /***************************************************************************
2 2 * GFitsImageByte.i - FITS Byte image class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -49,6 +49,7 @@ public:
49 49 // Methods
50 50 void clear(void);
51 51 GFitsImageByte* clone(void) const;
  52 + std::string classname(void) const;
52 53 double pixel(const int& ix) const;
53 54 double pixel(const int& ix, const int& iy) const;
54 55 double pixel(const int& ix, const int& iy, const int& iz) const;
... ...
pyext/GFitsImageDouble.i
1 1 /***************************************************************************
2 2 * GFitsImageDouble.i - Double precision FITS image class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -50,6 +50,7 @@ public:
50 50 // Methods
51 51 void clear(void);
52 52 GFitsImageDouble* clone(void) const;
  53 + std::string classname(void) const;
53 54 double pixel(const int& ix) const;
54 55 double pixel(const int& ix, const int& iy) const;
55 56 double pixel(const int& ix, const int& iy, const int& iz) const;
... ...
pyext/GFitsImageFloat.i
1 1 /***************************************************************************
2 2 * GFitsImageFloat.i - Single precision FITS image class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -50,6 +50,7 @@ public:
50 50 // Methods
51 51 void clear(void);
52 52 GFitsImageFloat* clone(void) const;
  53 + std::string classname(void) const;
53 54 double pixel(const int& ix) const;
54 55 double pixel(const int& ix, const int& iy) const;
55 56 double pixel(const int& ix, const int& iy, const int& iz) const;
... ...
pyext/GFitsImageLong.i
1 1 /***************************************************************************
2 2 * GFitsImageLong.i - Long integer FITS image class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -50,6 +50,7 @@ public:
50 50 // Methods
51 51 void clear(void);
52 52 GFitsImageLong* clone(void) const;
  53 + std::string classname(void) const;
53 54 double pixel(const int& ix) const;
54 55 double pixel(const int& ix, const int& iy) const;
55 56 double pixel(const int& ix, const int& iy, const int& iz) const;
... ...
pyext/GFitsImageLongLong.i
1 1 /***************************************************************************
2 2 * GFitsImageLongLong.i - Long long integer FITS image class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -50,6 +50,7 @@ public:
50 50 // Methods
51 51 void clear(void);
52 52 GFitsImageLongLong* clone(void) const;
  53 + std::string classname(void) const;
53 54 double pixel(const int& ix) const;
54 55 double pixel(const int& ix, const int& iy) const;
55 56 double pixel(const int& ix, const int& iy, const int& iz) const;
... ...
pyext/GFitsImageSByte.i
1 1 /***************************************************************************
2 2 * GFitsImageSByte.i - Signed Byte FITS image class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -50,6 +50,7 @@ public:
50 50 // Methods
51 51 void clear(void);
52 52 GFitsImageSByte* clone(void) const;
  53 + std::string classname(void) const;
53 54 double pixel(const int& ix) const;
54 55 double pixel(const int& ix, const int& iy) const;
55 56 double pixel(const int& ix, const int& iy, const int& iz) const;
... ...
pyext/GFitsImageShort.i
1 1 /***************************************************************************
2 2 * GFitsImageShort.i - Short integer FITS image class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -50,6 +50,7 @@ public:
50 50 // Methods
51 51 void clear(void);
52 52 GFitsImageShort* clone(void) const;
  53 + std::string classname(void) const;
53 54 double pixel(const int& ix) const;
54 55 double pixel(const int& ix, const int& iy) const;
55 56 double pixel(const int& ix, const int& iy, const int& iz) const;
... ...
pyext/GFitsImageULong.i
1 1 /***************************************************************************
2 2 * GFitsImageULong.i - Unsigned long image FITS class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2013 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2015 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -50,6 +50,7 @@ public:
50 50 // Methods
51 51 void clear(void);
52 52 GFitsImageULong* clone(void) const;
  53 + std::string classname(void) const;
53 54 double pixel(const int& ix) const;
54 55 double pixel(const int& ix, const int& iy) const;
55 56 double pixel(const int& ix, const int& iy, const int& iz) const;
... ...