Commit a8afe7e15a49d3aaa5b998d9ceff5ca4db2dc56e

Authored by Jürgen Knödlseder
1 parent bac7285b

Do final adjustments after introduction of GBase class.

I went over all .hpp to make sure that the GBase.hpp file is properly included, and no supoerfluous other includes remain. I also checked that no ostream and GLog friends are no longer available.

I went over all .i files to make sure that classes are derived from GBase.
include/GCaldb.hpp
@@ -28,11 +28,10 @@ @@ -28,11 +28,10 @@
28 #define GCALDB_HPP 28 #define GCALDB_HPP
29 29
30 /* __ Includes ___________________________________________________________ */ 30 /* __ Includes ___________________________________________________________ */
31 -#include <iostream>  
32 #include <string> 31 #include <string>
33 #include "GBase.hpp" 32 #include "GBase.hpp"
34 #include "GFits.hpp" 33 #include "GFits.hpp"
35 -#include "GFitsBinTable.hpp" 34 +#include "GFitsTable.hpp"
36 35
37 36
38 /***********************************************************************//** 37 /***********************************************************************//**
include/GCsv.hpp
@@ -30,9 +30,7 @@ @@ -30,9 +30,7 @@
30 /* __ Includes ___________________________________________________________ */ 30 /* __ Includes ___________________________________________________________ */
31 #include <vector> 31 #include <vector>
32 #include <string> 32 #include <string>
33 -#include <iostream>  
34 #include "GBase.hpp" 33 #include "GBase.hpp"
35 -#include "GLog.hpp"  
36 34
37 35
38 /***********************************************************************//** 36 /***********************************************************************//**
include/GDerivative.hpp
@@ -29,7 +29,6 @@ @@ -29,7 +29,6 @@
29 29
30 /* __ Includes ___________________________________________________________ */ 30 /* __ Includes ___________________________________________________________ */
31 #include <string> 31 #include <string>
32 -#include <iostream>  
33 #include "GBase.hpp" 32 #include "GBase.hpp"
34 #include "GFunction.hpp" 33 #include "GFunction.hpp"
35 34
include/GEbounds.hpp
@@ -28,7 +28,6 @@ @@ -28,7 +28,6 @@
28 #define GEBOUNDS_HPP 28 #define GEBOUNDS_HPP
29 29
30 /* __ Includes ___________________________________________________________ */ 30 /* __ Includes ___________________________________________________________ */
31 -#include <iostream>  
32 #include <string> 31 #include <string>
33 #include "GBase.hpp" 32 #include "GBase.hpp"
34 #include "GFits.hpp" 33 #include "GFits.hpp"
include/GFitsTableCol.hpp
@@ -30,6 +30,7 @@ @@ -30,6 +30,7 @@
30 /* __ Includes ___________________________________________________________ */ 30 /* __ Includes ___________________________________________________________ */
31 #include <string> 31 #include <string>
32 #include <vector> 32 #include <vector>
  33 +#include "GBase.hpp"
33 34
34 35
35 /***********************************************************************//** 36 /***********************************************************************//**
include/GModelPar.hpp
@@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
30 /* __ Includes ___________________________________________________________ */ 30 /* __ Includes ___________________________________________________________ */
31 #include <string> 31 #include <string>
32 #include "GBase.hpp" 32 #include "GBase.hpp"
33 -#include "GException.hpp"  
34 #include "GXmlElement.hpp" 33 #include "GXmlElement.hpp"
35 34
36 35
include/GModels.hpp
@@ -28,6 +28,7 @@ @@ -28,6 +28,7 @@
28 #define GMODELS_HPP 28 #define GMODELS_HPP
29 29
30 /* __ Includes ___________________________________________________________ */ 30 /* __ Includes ___________________________________________________________ */
  31 +#include <string>
31 #include "GOptimizerPars.hpp" 32 #include "GOptimizerPars.hpp"
32 #include "GModel.hpp" 33 #include "GModel.hpp"
33 #include "GXml.hpp" 34 #include "GXml.hpp"
include/GNodeArray.hpp
@@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
30 /* __ Includes ___________________________________________________________ */ 30 /* __ Includes ___________________________________________________________ */
31 #include <vector> 31 #include <vector>
32 #include <string> 32 #include <string>
33 -#include <iostream>  
34 #include "GBase.hpp" 33 #include "GBase.hpp"
35 #include "GVector.hpp" 34 #include "GVector.hpp"
36 35
include/GOptimizer.hpp
@@ -29,9 +29,7 @@ @@ -29,9 +29,7 @@
29 29
30 /* __ Includes ___________________________________________________________ */ 30 /* __ Includes ___________________________________________________________ */
31 #include <string> 31 #include <string>
32 -#include <iostream>  
33 #include "GBase.hpp" 32 #include "GBase.hpp"
34 -#include "GLog.hpp"  
35 #include "GOptimizerPars.hpp" 33 #include "GOptimizerPars.hpp"
36 #include "GOptimizerFunction.hpp" 34 #include "GOptimizerFunction.hpp"
37 #include "GModels.hpp" 35 #include "GModels.hpp"
@@ -46,10 +44,6 @@ @@ -46,10 +44,6 @@
46 ***************************************************************************/ 44 ***************************************************************************/
47 class GOptimizer : public GBase { 45 class GOptimizer : public GBase {
48 46
49 - // I/O friends  
50 - friend std::ostream& operator<<(std::ostream& os, const GOptimizer& opt);  
51 - friend GLog& operator<<(GLog& log, const GOptimizer& opt);  
52 -  
53 public: 47 public:
54 // Constructors and destructors 48 // Constructors and destructors
55 GOptimizer(void); 49 GOptimizer(void);
include/GPointing.hpp
@@ -31,7 +31,6 @@ @@ -31,7 +31,6 @@
31 #include <string> 31 #include <string>
32 #include "GBase.hpp" 32 #include "GBase.hpp"
33 #include "GSkyDir.hpp" 33 #include "GSkyDir.hpp"
34 -#include "GTime.hpp"  
35 34
36 35
37 /***********************************************************************//** 36 /***********************************************************************//**
@@ -39,8 +38,7 @@ @@ -39,8 +38,7 @@
39 * 38 *
40 * @brief Interface for the pointing classes 39 * @brief Interface for the pointing classes
41 * 40 *
42 - * The pointing class holds information about the time dependent telescope  
43 - * pointing. 41 + * The pointing class holds information about the telescope pointing.
44 ***************************************************************************/ 42 ***************************************************************************/
45 class GPointing : public GBase { 43 class GPointing : public GBase {
46 44
include/GRan.hpp
@@ -29,11 +29,7 @@ @@ -29,11 +29,7 @@
29 29
30 /* __ Includes ___________________________________________________________ */ 30 /* __ Includes ___________________________________________________________ */
31 #include <string> 31 #include <string>
32 -#include <iostream>  
33 #include "GBase.hpp" 32 #include "GBase.hpp"
34 -#include "GSkyDir.hpp"  
35 -#include "GEnergy.hpp"  
36 -#include "GTime.hpp"  
37 33
38 34
39 /***********************************************************************//** 35 /***********************************************************************//**
include/GTestCase.hpp
@@ -28,7 +28,6 @@ @@ -28,7 +28,6 @@
28 #define GTESTCASE_H 28 #define GTESTCASE_H
29 29
30 /* __ Includes ___________________________________________________________ */ 30 /* __ Includes ___________________________________________________________ */
31 -#include <iostream>  
32 #include <string> 31 #include <string>
33 #include "GBase.hpp" 32 #include "GBase.hpp"
34 33
include/GTestSuite.hpp
@@ -34,7 +34,6 @@ class GTestSuite; @@ -34,7 +34,6 @@ class GTestSuite;
34 typedef void (GTestSuite::*pfunction)(void); 34 typedef void (GTestSuite::*pfunction)(void);
35 35
36 /* __ Includes ___________________________________________________________ */ 36 /* __ Includes ___________________________________________________________ */
37 -#include <iostream>  
38 #include <vector> 37 #include <vector>
39 #include <string> 38 #include <string>
40 #include "GLog.hpp" 39 #include "GLog.hpp"
pyext/GCaldb.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GCaldb.i - Calibration database class * 2 * GCaldb.i - Calibration database class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GCaldb.i 22 * @file GCaldb.i
23 * @brief Calibration database class interface definition 23 * @brief Calibration database class interface definition
24 - * @author J. Knoedlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 * 35 *
36 * @brief Interface for the Calibration database class 36 * @brief Interface for the Calibration database class
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GCaldb { 38 +class GCaldb : public GBase {
39 public: 39 public:
40 // Constructors and destructors 40 // Constructors and destructors
41 GCaldb(void); 41 GCaldb(void);
pyext/GEbounds.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GEbounds.i - Energy boundary class python I/F * 2 * GEbounds.i - Energy boundary class python I/F *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2010-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GEbounds.i 22 * @file GEbounds.i
23 * @brief GEbounds class python interface 23 * @brief GEbounds class python interface
24 - * @author J. Knodlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -37,7 +37,7 @@ @@ -37,7 +37,7 @@
37 * 37 *
38 * This class holds a list of energy intervals. 38 * This class holds a list of energy intervals.
39 ***************************************************************************/ 39 ***************************************************************************/
40 -class GEbounds { 40 +class GEbounds : public GBase {
41 public: 41 public:
42 // Constructors and destructors 42 // Constructors and destructors
43 GEbounds(void); 43 GEbounds(void);
@@ -46,26 +46,27 @@ public: @@ -46,26 +46,27 @@ public:
46 virtual ~GEbounds(void); 46 virtual ~GEbounds(void);
47 47
48 // Methods 48 // Methods
49 - void clear(void);  
50 - void append(const GEnergy& emin, const GEnergy& emax);  
51 - void insert(const GEnergy& emin, const GEnergy& emax);  
52 - void setlin(const GEnergy& emin, const GEnergy& emax, const int& num);  
53 - void setlog(const GEnergy& emin, const GEnergy& emax, const int& num);  
54 - void load(const std::string& filename,  
55 - const std::string& extname);  
56 - void save(const std::string& filename, bool clobber,  
57 - const std::string& extname) const;  
58 - void read(GFitsTable* hdu);  
59 - void write(GFits* file, const std::string& extname) const;  
60 - int index(const GEnergy& eng) const;  
61 - int size(void) const { return m_num; }  
62 - GEnergy emin(void) const { return m_emin; }  
63 - GEnergy emax(void) const { return m_emax; }  
64 - GEnergy emin(int inx) const;  
65 - GEnergy emax(int inx) const;  
66 - GEnergy emean(int inx) const;  
67 - GEnergy elogmean(int inx) const;  
68 - bool isin(const GEnergy& eng) const; 49 + void clear(void);
  50 + GEbounds* clone(void) const;
  51 + void append(const GEnergy& emin, const GEnergy& emax);
  52 + void insert(const GEnergy& emin, const GEnergy& emax);
  53 + void setlin(const GEnergy& emin, const GEnergy& emax, const int& num);
  54 + void setlog(const GEnergy& emin, const GEnergy& emax, const int& num);
  55 + void load(const std::string& filename,
  56 + const std::string& extname);
  57 + void save(const std::string& filename, bool clobber,
  58 + const std::string& extname) const;
  59 + void read(GFitsTable* hdu);
  60 + void write(GFits* file, const std::string& extname) const;
  61 + int index(const GEnergy& eng) const;
  62 + int size(void) const;
  63 + GEnergy emin(void) const;
  64 + GEnergy emax(void) const;
  65 + GEnergy emin(int inx) const;
  66 + GEnergy emax(int inx) const;
  67 + GEnergy emean(int inx) const;
  68 + GEnergy elogmean(int inx) const;
  69 + bool isin(const GEnergy& eng) const;
69 }; 70 };
70 71
71 72
pyext/GEnergy.i
@@ -40,7 +40,7 @@ @@ -40,7 +40,7 @@
40 * units. This makes instrument specific implementations more robust and 40 * units. This makes instrument specific implementations more robust and
41 * reduces the risk of unit errors. 41 * reduces the risk of unit errors.
42 ***************************************************************************/ 42 ***************************************************************************/
43 -class GEnergy { 43 +class GEnergy : public GBase {
44 public: 44 public:
45 // Constructors and destructors 45 // Constructors and destructors
46 GEnergy(void); 46 GEnergy(void);
pyext/GEvent.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GEvent.i - Abstract event class python I/F * 2 * GEvent.i - Abstract event class python I/F *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2010-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GEvent.i 22 * @file GEvent.i
23 * @brief GEvent class python interface 23 * @brief GEvent class python interface
24 - * @author J. Knodlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -63,7 +63,7 @@ @@ -63,7 +63,7 @@
63 * The GEvent class does not hold any data members. Data members are stored 63 * The GEvent class does not hold any data members. Data members are stored
64 * in the derived classes. 64 * in the derived classes.
65 ***************************************************************************/ 65 ***************************************************************************/
66 -class GEvent { 66 +class GEvent : public GBase {
67 67
68 public: 68 public:
69 // Constructors and destructors 69 // Constructors and destructors
pyext/GEvents.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GEvents.i - Abstract event container class * 2 * GEvents.i - Abstract event container class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2011 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GEvents.i 22 * @file GEvents.i
23 * @brief Abstract event container class Python interface definition 23 * @brief Abstract event container class Python interface definition
24 - * @author J. Knoedlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 * 35 *
36 * @brief Abstract event container class Python interface 36 * @brief Abstract event container class Python interface
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GEvents { 38 +class GEvents : public GBase {
39 public: 39 public:
40 // Constructors and destructors 40 // Constructors and destructors
41 GEvents(void); 41 GEvents(void);
pyext/GFits.i
@@ -56,7 +56,7 @@ @@ -56,7 +56,7 @@
56 * via members of GFits. A FITS file is composed of Header Data Units (HDU) 56 * via members of GFits. A FITS file is composed of Header Data Units (HDU)
57 * which are implemented by the GFitsHDU class. 57 * which are implemented by the GFitsHDU class.
58 ***************************************************************************/ 58 ***************************************************************************/
59 -class GFits { 59 +class GFits : public GBase {
60 60
61 public: 61 public:
62 // Constructors and destructors 62 // Constructors and destructors
pyext/GFitsHeader.i
@@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
43 * saved into another file (using the 'save' method). Cards are added or 43 * saved into another file (using the 'save' method). Cards are added or
44 * changed using the 'update' method. 44 * changed using the 'update' method.
45 ***************************************************************************/ 45 ***************************************************************************/
46 -class GFitsHeader { 46 +class GFitsHeader : public GBase {
47 public: 47 public:
48 // Constructors and destructors 48 // Constructors and destructors
49 GFitsHeader(void); 49 GFitsHeader(void);
pyext/GFitsHeaderCard.i
@@ -40,7 +40,8 @@ @@ -40,7 +40,8 @@
40 * keyname (string), a value (string, floating pointer, integer or logical) 40 * keyname (string), a value (string, floating pointer, integer or logical)
41 * and a comment (string). COMMENT or HISTORY cards do not have any value. 41 * and a comment (string). COMMENT or HISTORY cards do not have any value.
42 ***************************************************************************/ 42 ***************************************************************************/
43 -class GFitsHeaderCard { 43 +class GFitsHeaderCard : public GBase {
  44 +
44 public: 45 public:
45 // Constructors & Destructors 46 // Constructors & Destructors
46 GFitsHeaderCard(void); 47 GFitsHeaderCard(void);
pyext/GFitsTableCol.i
@@ -49,7 +49,8 @@ @@ -49,7 +49,8 @@
49 * 49 *
50 * @brief FITS table column abstract Python base class definition 50 * @brief FITS table column abstract Python base class definition
51 ***************************************************************************/ 51 ***************************************************************************/
52 -class GFitsTableCol { 52 +class GFitsTableCol : public GBase {
  53 +
53 public: 54 public:
54 // Constructors and destructors 55 // Constructors and destructors
55 GFitsTableCol(void); 56 GFitsTableCol(void);
pyext/GGti.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GGti.i - Good time interval class * 2 * GGti.i - Good time interval class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2011 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GGti.i 22 * @file GGti.i
23 * @brief Good time interval class Python interface definition 23 * @brief Good time interval class Python interface definition
24 - * @author J. Knoedlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 * This class holds a list of Good Time Intervals, i.e. time intervals that 38 * This class holds a list of Good Time Intervals, i.e. time intervals that
39 * are valid for science analysis. Times are stored using the GTime class. 39 * are valid for science analysis. Times are stored using the GTime class.
40 ***************************************************************************/ 40 ***************************************************************************/
41 -class GGti { 41 +class GGti : public GBase {
42 public: 42 public:
43 // Constructors and destructors 43 // Constructors and destructors
44 GGti(void); 44 GGti(void);
@@ -47,6 +47,7 @@ public: @@ -47,6 +47,7 @@ public:
47 47
48 // Methods 48 // Methods
49 void clear(void); 49 void clear(void);
  50 + GGti* clone(void) const;
50 int size(void) const; 51 int size(void) const;
51 void add(const GTime& tstart, const GTime& tstop); 52 void add(const GTime& tstart, const GTime& tstop);
52 void append(const GTime& tstart, const GTime& tstop); 53 void append(const GTime& tstart, const GTime& tstop);
@@ -64,7 +65,7 @@ public: @@ -64,7 +65,7 @@ public:
64 GTime tstop(int inx) const; 65 GTime tstop(int inx) const;
65 double telapse(void) const; 66 double telapse(void) const;
66 double ontime(void) const; 67 double ontime(void) const;
67 - double mjdref(void) const { return m_mjdref; } 68 + double mjdref(void) const;
68 bool isin(const GTime& time) const; 69 bool isin(const GTime& time) const;
69 }; 70 };
70 71
pyext/GInstDir.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GInstDir.i - Instrument direction class python I/F * 2 * GInstDir.i - Instrument direction class python I/F *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2010-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GInstDir.i 22 * @file GInstDir.i
23 * @brief GInstDir class python interface 23 * @brief GInstDir class python interface
24 - * @author J. Knodlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -42,7 +42,8 @@ @@ -42,7 +42,8 @@
42 * reconstructions for imaging devices or detector numbers etc. for 42 * reconstructions for imaging devices or detector numbers etc. for
43 * non-imaging devices. 43 * non-imaging devices.
44 ***************************************************************************/ 44 ***************************************************************************/
45 -class GInstDir { 45 +class GInstDir : public GBase {
  46 +
46 public: 47 public:
47 // Constructors and destructors 48 // Constructors and destructors
48 GInstDir(void); 49 GInstDir(void);
pyext/GIntegral.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GIntegral.hpp - Integration class * 2 * GIntegral.hpp - Integration class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2010-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GIntegral.hpp 22 * @file GIntegral.hpp
23 * @brief Integration class Python interface definition 23 * @brief Integration class Python interface definition
24 - * @author J. Knodlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 * This class allows to perform integration using various methods. The 38 * This class allows to perform integration using various methods. The
39 * integrand is implemented by a derived class of GIntegrand. 39 * integrand is implemented by a derived class of GIntegrand.
40 ***************************************************************************/ 40 ***************************************************************************/
41 -class GIntegral { 41 +class GIntegral : public GBase {
42 public: 42 public:
43 43
44 // Constructors and destructors 44 // Constructors and destructors
pyext/GModel.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GModel.i - Abstract virtual model base class * 2 * GModel.i - Abstract virtual model base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2009-2011 by Juergen Knoedlseder * 4 + * copyright (C) 2009-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GModel.i 22 * @file GModel.i
23 * @brief Abstract model base class python interface 23 * @brief Abstract model base class python interface
24 - * @author J. Knoedlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -35,7 +35,8 @@ @@ -35,7 +35,8 @@
35 * 35 *
36 * @brief Abstract model base class python interface 36 * @brief Abstract model base class python interface
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GModel { 38 +class GModel : public GBase {
  39 +
39 public: 40 public:
40 // Constructors and destructors 41 // Constructors and destructors
41 GModel(void); 42 GModel(void);
pyext/GModelPar.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GModelPar.i - Model parameter class Python interface * 2 * GModelPar.i - Model parameter class Python interface *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2009-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2009-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GModelPar.i 22 * @file GModelPar.i
23 * @brief Model parameter class Python interface 23 * @brief Model parameter class Python interface
24 - * @author J. Knodlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -35,7 +35,8 @@ @@ -35,7 +35,8 @@
35 * 35 *
36 * @brief Model parameter class 36 * @brief Model parameter class
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GModelPar { 38 +class GModelPar : public GBase {
  39 +
39 public: 40 public:
40 // Constructors and destructors 41 // Constructors and destructors
41 GModelPar(void); 42 GModelPar(void);
pyext/GNodeArray.i
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GNodeArray.i 22 * @file GNodeArray.i
23 * @brief Node array class Python interface definition 23 * @brief Node array class Python interface definition
24 - * @author J. Knoedlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -35,7 +35,8 @@ @@ -35,7 +35,8 @@
35 * 35 *
36 * @brief Python interface for the node array class 36 * @brief Python interface for the node array class
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GNodeArray { 38 +class GNodeArray : public GBase {
  39 +
39 public: 40 public:
40 // Constructors and destructors 41 // Constructors and destructors
41 GNodeArray(void); 42 GNodeArray(void);
pyext/GObservation.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GObservation.i - Abstract observation abstract base class * 2 * GObservation.i - Abstract observation abstract base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2008-2011 by Juergen Knoedlseder * 4 + * copyright (C) 2008-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GObservation.i 22 * @file GObservation.i
23 * @brief Abstract observation base class Python interface definition 23 * @brief Abstract observation base class Python interface definition
24 - * @author J. Knoedlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -35,7 +35,8 @@ @@ -35,7 +35,8 @@
35 * 35 *
36 * @brief Abstract Python interface for the observation classes 36 * @brief Abstract Python interface for the observation classes
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GObservation { 38 +class GObservation : public GBase {
  39 +
39 public: 40 public:
40 // Constructors and destructors 41 // Constructors and destructors
41 GObservation(void); 42 GObservation(void);
pyext/GOptimizer.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GOptimizer.i - Optimizer class Python interface * 2 * GOptimizer.i - Optimizer class Python interface *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2009-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2009-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GOptimizer.i 22 * @file GOptimizer.i
23 * @brief Optimizer abstract base class Python interface 23 * @brief Optimizer abstract base class Python interface
24 - * @author J. Knodlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -37,7 +37,8 @@ @@ -37,7 +37,8 @@
37 * 37 *
38 * This class defines the abstract interface for the optimizer class. 38 * This class defines the abstract interface for the optimizer class.
39 ***************************************************************************/ 39 ***************************************************************************/
40 -class GOptimizer { 40 +class GOptimizer : public GBase {
  41 +
41 public: 42 public:
42 // Constructors and destructors 43 // Constructors and destructors
43 GOptimizer(void); 44 GOptimizer(void);
pyext/GPars.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GPars.i - Application parameters Python interface * 2 * GPars.i - Application parameters Python interface *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2010-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GPars.i 22 * @file GPars.i
23 * @brief Application parameter container class Python interface definition 23 * @brief Application parameter container class Python interface definition
24 - * @author Jurgen Knodlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
36 * 36 *
37 * @brief Application parameter container class 37 * @brief Application parameter container class
38 ***************************************************************************/ 38 ***************************************************************************/
39 -class GPars { 39 +class GPars : public GBase {
40 40
41 public: 41 public:
42 // Constructors and destructors 42 // Constructors and destructors
@@ -47,15 +47,15 @@ public: @@ -47,15 +47,15 @@ public:
47 virtual ~GPars(void); 47 virtual ~GPars(void);
48 48
49 // Methods 49 // Methods
50 - void clear(void);  
51 - GPars* clone(void) const;  
52 - int size(void) const;  
53 - void append(const GPar& par);  
54 - void append_standard(void);  
55 - void load(const std::string& filename);  
56 - void load(const std::string& filename, const std::vector<std::string>& args);  
57 - void save(const std::string& filename);  
58 - bool haspar(const std::string& name) const; 50 + void clear(void);
  51 + GPars* clone(void) const;
  52 + int size(void) const;
  53 + void append(const GPar& par);
  54 + void append_standard(void);
  55 + void load(const std::string& filename);
  56 + void load(const std::string& filename, const std::vector<std::string>& args);
  57 + void save(const std::string& filename);
  58 + bool haspar(const std::string& name) const;
59 }; 59 };
60 60
61 61
pyext/GPointing.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GPointing.i - Abstract pointing class * 2 * GPointing.i - Abstract pointing class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2010-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GPointing.i 22 * @file GPointing.i
23 * @brief Abstract pointing class Python interface definition. 23 * @brief Abstract pointing class Python interface definition.
24 - * @author J. Knodlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 * 35 *
36 * @brief Abstract Pointing class 36 * @brief Abstract Pointing class
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GPointing { 38 +class GPointing : public GBase {
39 39
40 public: 40 public:
41 // Constructors and destructors 41 // Constructors and destructors
pyext/GResponse.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GResponse.i - Abstract response base class * 2 * GResponse.i - Abstract response base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2008-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2008-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GResponse.i 22 * @file GResponse.i
23 * @brief Abstract response base class Python interface definition 23 * @brief Abstract response base class Python interface definition
24 - * @author J. Knodlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 * 35 *
36 * @brief Abstract response base class 36 * @brief Abstract response base class
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GResponse { 38 +class GResponse : public GBase {
39 39
40 public: 40 public:
41 // Constructors and destructors 41 // Constructors and destructors
pyext/GRoi.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GRoi.i - Region of interest abstract base class * 2 * GRoi.i - Region of interest abstract base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2010-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GRoi.i 22 * @file GRoi.i
23 * @brief GRoi class python interface 23 * @brief GRoi class python interface
24 - * @author J. Knodlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -40,7 +40,8 @@ @@ -40,7 +40,8 @@
40 * for an analysis. In particular, the definition of a region of interest 40 * for an analysis. In particular, the definition of a region of interest
41 * is required for an unbinned analysis. 41 * is required for an unbinned analysis.
42 ***************************************************************************/ 42 ***************************************************************************/
43 -class GRoi { 43 +class GRoi : public GBase {
  44 +
44 public: 45 public:
45 // Constructors and destructors 46 // Constructors and destructors
46 GRoi(void); 47 GRoi(void);
pyext/GSkyDir.i
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 * 35 *
36 * @brief Sky direction class 36 * @brief Sky direction class
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GSkyDir { 38 +class GSkyDir : public GBase {
39 39
40 public: 40 public:
41 // Constructors and destructors 41 // Constructors and destructors
pyext/GSkyPixel.i
@@ -35,7 +35,8 @@ @@ -35,7 +35,8 @@
35 * 35 *
36 * @brief GSkyPixel class interface defintion 36 * @brief GSkyPixel class interface defintion
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GSkyPixel { 38 +class GSkyPixel : public GBase {
  39 +
39 public: 40 public:
40 // Constructors and destructors 41 // Constructors and destructors
41 GSkyPixel(void); 42 GSkyPixel(void);
pyext/GSkymap.i
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GSkymap.i 22 * @file GSkymap.i
23 * @brief Sky map class SWIG file. 23 * @brief Sky map class SWIG file.
24 - * @author J. Knoedlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -105,7 +105,8 @@ static int skymap_tuple(PyObject *input, int *ptr) { @@ -105,7 +105,8 @@ static int skymap_tuple(PyObject *input, int *ptr) {
105 * 105 *
106 * @brief GSkymap class interface defintion 106 * @brief GSkymap class interface defintion
107 ***************************************************************************/ 107 ***************************************************************************/
108 -class GSkymap { 108 +class GSkymap : public GBase {
  109 +
109 public: 110 public:
110 // Constructors and destructors 111 // Constructors and destructors
111 GSkymap(void); 112 GSkymap(void);
@@ -121,12 +122,13 @@ public: @@ -121,12 +122,13 @@ public:
121 virtual ~GSkymap(void); 122 virtual ~GSkymap(void);
122 123
123 // Methods 124 // Methods
  125 + void clear(void);
  126 + GSkymap* clone(void) const;
124 GSkyDir pix2dir(const int& pix); 127 GSkyDir pix2dir(const int& pix);
125 int dir2pix(const GSkyDir& dir) const; 128 int dir2pix(const GSkyDir& dir) const;
126 double omega(const int& pix) const; 129 double omega(const int& pix) const;
127 GSkyDir xy2dir(const GSkyPixel& pix); 130 GSkyDir xy2dir(const GSkyPixel& pix);
128 GSkyPixel dir2xy(const GSkyDir& dir) const; 131 GSkyPixel dir2xy(const GSkyDir& dir) const;
129 - void clear(void);  
130 void load(const std::string& filename); 132 void load(const std::string& filename);
131 void save(const std::string& filename, bool clobber = false) const; 133 void save(const std::string& filename, bool clobber = false) const;
132 void read(const GFitsHDU* hdu); 134 void read(const GFitsHDU* hdu);
pyext/GTestSuites.i
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 * 35 *
36 * @brief Test suites Python interface defintion 36 * @brief Test suites Python interface defintion
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GTestSuites { 38 +class GTestSuites : public GBase {
39 39
40 public: 40 public:
41 41
pyext/GTime.i
@@ -40,7 +40,8 @@ @@ -40,7 +40,8 @@
40 * The GTime class stores a time value in seconds and its MJD reference in 40 * The GTime class stores a time value in seconds and its MJD reference in
41 * days. The time can be retrieved in any MJD reference. 41 * days. The time can be retrieved in any MJD reference.
42 ***************************************************************************/ 42 ***************************************************************************/
43 -class GTime { 43 +class GTime : public GBase {
  44 +
44 public: 45 public:
45 // Constructors and destructors 46 // Constructors and destructors
46 GTime(void); 47 GTime(void);
pyext/GWcs.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GWcs.i - World Coordinate System virtual base class * 2 * GWcs.i - World Coordinate System virtual base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2010-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GWcs.i 22 * @file GWcs.i
23 * @brief World Coordinate System virtual base class Python interface 23 * @brief World Coordinate System virtual base class Python interface
24 - * @author J. Knodlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -35,7 +35,8 @@ @@ -35,7 +35,8 @@
35 * 35 *
36 * @brief World Coordinate System virtual base class Python interface 36 * @brief World Coordinate System virtual base class Python interface
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GWcs { 38 +class GWcs : public GBase {
  39 +
39 public: 40 public:
40 // Constructors and destructors 41 // Constructors and destructors
41 GWcs(void); 42 GWcs(void);
pyext/GXmlNode.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GXmlNode.i - Abstract XML node base class * 2 * GXmlNode.i - Abstract XML node base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2010-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GXmlNode.i 22 * @file GXmlNode.i
23 * @brief Abstract XML node base class Python interface definition 23 * @brief Abstract XML node base class Python interface definition
24 - * @author J. Knodlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
27 /* Put headers and other declarations here that are needed for compilation */ 27 /* Put headers and other declarations here that are needed for compilation */
@@ -37,7 +37,7 @@ @@ -37,7 +37,7 @@
37 * 37 *
38 * This class defines an abstract node of a XML document. 38 * This class defines an abstract node of a XML document.
39 ***************************************************************************/ 39 ***************************************************************************/
40 -class GXmlNode { 40 +class GXmlNode : public GBase {
41 41
42 public: 42 public:
43 // Constructors and destructors 43 // Constructors and destructors
@@ -58,9 +58,10 @@ public: @@ -58,9 +58,10 @@ public:
58 }; 58 };
59 59
60 // Pure virtual methods 60 // Pure virtual methods
61 - virtual void clear(void) = 0;  
62 - virtual void write(FILE* fptr, int indent = 0) const = 0;  
63 - virtual NodeType type(void) const = 0; 61 + virtual void clear(void) = 0;
  62 + virtual GXmlNode* clone(void) const = 0;
  63 + virtual void write(FILE* fptr, int indent = 0) const = 0;
  64 + virtual NodeType type(void) const = 0;
64 65
65 // Methods 66 // Methods
66 void append(GXmlNode* node); 67 void append(GXmlNode* node);
src/model/GModelRegistry.cpp
@@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
29 #include <config.h> 29 #include <config.h>
30 #endif 30 #endif
31 #include "GModelRegistry.hpp" 31 #include "GModelRegistry.hpp"
  32 +#include "GException.hpp"
32 #include "GTools.hpp" 33 #include "GTools.hpp"
33 34
34 /* __ Static members _____________________________________________________ */ 35 /* __ Static members _____________________________________________________ */
src/model/GModelSpectralRegistry.cpp
@@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
29 #include <config.h> 29 #include <config.h>
30 #endif 30 #endif
31 #include "GModelSpectralRegistry.hpp" 31 #include "GModelSpectralRegistry.hpp"
  32 +#include "GException.hpp"
32 #include "GTools.hpp" 33 #include "GTools.hpp"
33 34
34 /* __ Static members _____________________________________________________ */ 35 /* __ Static members _____________________________________________________ */
src/model/GModelTemporalRegistry.cpp
@@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
29 #include <config.h> 29 #include <config.h>
30 #endif 30 #endif
31 #include "GModelTemporalRegistry.hpp" 31 #include "GModelTemporalRegistry.hpp"
  32 +#include "GException.hpp"
32 #include "GTools.hpp" 33 #include "GTools.hpp"
33 34
34 /* __ Static members _____________________________________________________ */ 35 /* __ Static members _____________________________________________________ */
src/opt/GOptimizer.cpp
1 /*************************************************************************** 1 /***************************************************************************
2 * GOptimizer.cpp - Abstract base class for optimizer * 2 * GOptimizer.cpp - Abstract base class for optimizer *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2009-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2009-2012 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 /** 21 /**
22 * @file GOptimizer.cpp 22 * @file GOptimizer.cpp
23 * @brief GOptimizer abstract base class implementation. 23 * @brief GOptimizer abstract base class implementation.
24 - * @author J. Knodlseder 24 + * @author Juergen Knoedlseder
25 */ 25 */
26 26
27 /* __ Includes ___________________________________________________________ */ 27 /* __ Includes ___________________________________________________________ */
@@ -160,42 +160,3 @@ void GOptimizer::free_members(void) @@ -160,42 +160,3 @@ void GOptimizer::free_members(void)
160 // Return 160 // Return
161 return; 161 return;
162 } 162 }
163 -  
164 -  
165 -/*==========================================================================  
166 - = =  
167 - = Friends =  
168 - = =  
169 - ==========================================================================*/  
170 -  
171 -/***********************************************************************//**  
172 - * @brief Output operator  
173 - *  
174 - * @param[in] os Output stream.  
175 - * @param[in] opt Optimizer.  
176 - ***************************************************************************/  
177 -std::ostream& operator<< (std::ostream& os, const GOptimizer& opt)  
178 -{  
179 - // Write optimizer in output stream  
180 - os << opt.print();  
181 -  
182 - // Return output stream  
183 - return os;  
184 -}  
185 -  
186 -  
187 -/***********************************************************************//**  
188 - * @brief Log operator  
189 - *  
190 - * @param[in] log Logger.  
191 - * @param[in] opt Optimizer.  
192 - ***************************************************************************/  
193 -GLog& operator<< (GLog& log, const GOptimizer& opt)  
194 -{  
195 - // Write optimizer into logger  
196 - log << opt.print();  
197 -  
198 - // Return logger  
199 - return log;  
200 -}  
201 -