Commit ec8154a990b618672fc383c9450f29898c4e2a81

Authored by Jürgen Knödlseder
1 parent 211c2251

Remove __str__() extension as it is now implemented in the base class.

Showing 92 changed files with 134 additions and 385 deletions
inst/cta/pyext/GCTAAeff.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GCTAAeff.i - CTA effective area base class * 2 * GCTAAeff.i - CTA effective area base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 by Juergen Knoedlseder * 4 + * copyright (C) 2012-2013 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 *
@@ -63,7 +63,4 @@ public: @@ -63,7 +63,4 @@ public:
63 * @brief GCTAAeff class extension 63 * @brief GCTAAeff class extension
64 ***************************************************************************/ 64 ***************************************************************************/
65 %extend GCTAAeff { 65 %extend GCTAAeff {
66 - char *__str__() {  
67 - return tochar(self->print());  
68 - }  
69 }; 66 };
inst/cta/pyext/GCTAAeff2D.i
@@ -67,9 +67,6 @@ public: @@ -67,9 +67,6 @@ public:
67 * @brief GCTAAeff2D class extension 67 * @brief GCTAAeff2D class extension
68 ***************************************************************************/ 68 ***************************************************************************/
69 %extend GCTAAeff2D { 69 %extend GCTAAeff2D {
70 - char *__str__() {  
71 - return tochar(self->print());  
72 - }  
73 GCTAAeff2D copy() { 70 GCTAAeff2D copy() {
74 return (*self); 71 return (*self);
75 } 72 }
inst/cta/pyext/GCTAAeffArf.i
@@ -74,9 +74,6 @@ public: @@ -74,9 +74,6 @@ public:
74 * @brief GCTAAeffArf class extension 74 * @brief GCTAAeffArf class extension
75 ***************************************************************************/ 75 ***************************************************************************/
76 %extend GCTAAeffArf { 76 %extend GCTAAeffArf {
77 - char *__str__() {  
78 - return tochar(self->print());  
79 - }  
80 GCTAAeffArf copy() { 77 GCTAAeffArf copy() {
81 return (*self); 78 return (*self);
82 } 79 }
inst/cta/pyext/GCTAAeffPerfTable.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GCTAAeffPerfTable.i - CTA performance table effective area class * 2 * GCTAAeffPerfTable.i - CTA performance table effective area class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 by Juergen Knoedlseder * 4 + * copyright (C) 2012-2013 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 *
@@ -69,9 +69,6 @@ public: @@ -69,9 +69,6 @@ public:
69 * @brief GCTAAeffPerfTable class extension 69 * @brief GCTAAeffPerfTable class extension
70 ***************************************************************************/ 70 ***************************************************************************/
71 %extend GCTAAeffPerfTable { 71 %extend GCTAAeffPerfTable {
72 - char *__str__() {  
73 - return tochar(self->print());  
74 - }  
75 GCTAAeffPerfTable copy() { 72 GCTAAeffPerfTable copy() {
76 return (*self); 73 return (*self);
77 } 74 }
inst/cta/pyext/GCTADir.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GCTADir.i - CTA direction class * 2 + * GCTADir.i - CTA direction class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011 by Jurgen Knodlseder * 4 + * copyright (C) 2011-2013 by Jurgen Knodlseder *
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 *
@@ -20,8 +20,8 @@ @@ -20,8 +20,8 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GCTADir.i 22 * @file GCTADir.i
23 - * @brief CTA camera direction class Python interface definition  
24 - * @author J. Knodlseder 23 + * @brief CTA camera direction class interface definition
  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,9 +63,6 @@ public: @@ -63,9 +63,6 @@ public:
63 * @brief GCTADir class extension 63 * @brief GCTADir class extension
64 ***************************************************************************/ 64 ***************************************************************************/
65 %extend GCTADir { 65 %extend GCTADir {
66 - char *__str__() {  
67 - return tochar(self->print());  
68 - }  
69 GCTADir copy() { 66 GCTADir copy() {
70 return (*self); 67 return (*self);
71 } 68 }
inst/cta/pyext/GCTAEdisp.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GCTAEdisp.i - CTA energy dispersion base class * 2 + * GCTAEdisp.i - Energy dispersion base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 by Juergen Knoedlseder * 4 + * copyright (C) 2012-2013 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 *
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GCTAEdisp.i 22 * @file GCTAEdisp.i
23 - * @brief CTA energy dispersion base class definition 23 + * @brief Energy dispersion base class definition
24 * @author Juergen Knoedlseder 24 * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
@@ -65,7 +65,4 @@ public: @@ -65,7 +65,4 @@ public:
65 * @brief GCTAEdisp class extension 65 * @brief GCTAEdisp class extension
66 ***************************************************************************/ 66 ***************************************************************************/
67 %extend GCTAEdisp { 67 %extend GCTAEdisp {
68 - char *__str__() {  
69 - return tochar(self->print());  
70 - }  
71 }; 68 };
inst/cta/pyext/GCTAModelRadial.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GCTAModelRadial.i - Radial model abstract base class python interface * 2 + * GCTAModelRadial.i - Abstract radial model base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011 by Jurgen Knodlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -20,8 +20,8 @@ @@ -20,8 +20,8 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GCTAModelRadial.i 22 * @file GCTAModelRadial.i
23 - * @brief Abstract radial acceptance model class Python interface.  
24 - * @author J. Knodlseder 23 + * @brief Abstract radial model class interface definition
  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,9 +63,6 @@ public: @@ -63,9 +63,6 @@ public:
63 * @brief GCTAModelRadial class extension 63 * @brief GCTAModelRadial class extension
64 ***************************************************************************/ 64 ***************************************************************************/
65 %extend GCTAModelRadial { 65 %extend GCTAModelRadial {
66 - char *__str__() {  
67 - return tochar(self->print());  
68 - }  
69 GModelPar& __getitem__(const int& index) { 66 GModelPar& __getitem__(const int& index) {
70 if (index >= 0 && index < self->size()) 67 if (index >= 0 && index < self->size())
71 return (*self)[index]; 68 return (*self)[index];
inst/cta/pyext/GCTAModelRadialAcceptance.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GCTAModelRadialAcceptance.i - Radial acceptance model class python I/F* 2 + * GCTAModelRadialAcceptance.i - Radial acceptance model class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GCTAModelRadialAcceptance.i 22 * @file GCTAModelRadialAcceptance.i
23 - * @brief Radial acceptance model class Python interface definition 23 + * @brief Radial acceptance model class interface definition
24 * @author Juergen Knoedlseder 24 * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
inst/cta/pyext/GCTAModelRadialGauss.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GCTAModelRadialGauss.i - Radial Gaussian model class python interface * 2 + * GCTAModelRadialGauss.i - Radial Gaussian model class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GCTAModelRadialGauss.i 22 * @file GCTAModelRadialGauss.i
23 - * @brief Radial Gaussian model class Python interface definition 23 + * @brief Radial Gaussian model class interface definition
24 * @author Juergen Knoedlseder 24 * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
@@ -65,7 +65,4 @@ public: @@ -65,7 +65,4 @@ public:
65 * @brief GCTAModelRadialGauss class extension 65 * @brief GCTAModelRadialGauss class extension
66 ***************************************************************************/ 66 ***************************************************************************/
67 %extend GCTAModelRadialGauss { 67 %extend GCTAModelRadialGauss {
68 - char *__str__() {  
69 - return tochar(self->print());  
70 - }  
71 }; 68 };
inst/cta/pyext/GCTAModelRadialPolynom.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GCTAModelRadialPolynom.i - Radial Polynom CTA model class * 2 + * GCTAModelRadialPolynom.i - Radial Polynom model class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GCTAModelRadialPolynom.i 22 * @file GCTAModelRadialPolynom.i
23 - * @brief Radial Polynom model class Python interface definition 23 + * @brief Radial Polynom model class interface definition
24 * @author Juergen Knoedlseder 24 * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
@@ -66,7 +66,4 @@ public: @@ -66,7 +66,4 @@ public:
66 * @brief GCTAModelRadialPolynom class extension 66 * @brief GCTAModelRadialPolynom class extension
67 ***************************************************************************/ 67 ***************************************************************************/
68 %extend GCTAModelRadialPolynom { 68 %extend GCTAModelRadialPolynom {
69 - char *__str__() {  
70 - return tochar(self->print());  
71 - }  
72 }; 69 };
inst/cta/pyext/GCTAModelRadialProfile.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GCTAModelRadialProfile.i - Radial Profile CTA model class * 2 + * GCTAModelRadialProfile.i - Radial Profile model class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -70,7 +70,4 @@ public: @@ -70,7 +70,4 @@ public:
70 * @brief GCTAModelRadialProfile class extension 70 * @brief GCTAModelRadialProfile class extension
71 ***************************************************************************/ 71 ***************************************************************************/
72 %extend GCTAModelRadialProfile { 72 %extend GCTAModelRadialProfile {
73 - char *__str__() {  
74 - return tochar(self->print());  
75 - }  
76 }; 73 };
inst/cta/pyext/GCTAModelRadialRegistry.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GCTAModelRadialRegistry.i - CTA Radial model registry class * 2 + * GCTAModelRadialRegistry.i - Radial model registry class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GCTAModelRadialRegistry.i 22 * @file GCTAModelRadialRegistry.i
23 - * @brief CTA radial model registry class definition 23 + * @brief Radial model registry class definition
24 * @author Juergen Knoedlseder 24 * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
@@ -55,7 +55,4 @@ public: @@ -55,7 +55,4 @@ public:
55 * @brief GCTAModelRadialRegistry class extension 55 * @brief GCTAModelRadialRegistry class extension
56 ***************************************************************************/ 56 ***************************************************************************/
57 %extend GCTAModelRadialRegistry { 57 %extend GCTAModelRadialRegistry {
58 - char *__str__() {  
59 - return tochar(self->print());  
60 - }  
61 }; 58 };
inst/cta/pyext/GCTAPsf.i
@@ -77,7 +77,4 @@ public: @@ -77,7 +77,4 @@ public:
77 * @brief GCTAPsf class extension 77 * @brief GCTAPsf class extension
78 ***************************************************************************/ 78 ***************************************************************************/
79 %extend GCTAPsf { 79 %extend GCTAPsf {
80 - char *__str__() {  
81 - return tochar(self->print());  
82 - }  
83 }; 80 };
inst/cta/pyext/GCTAPsf2D.i
@@ -78,7 +78,4 @@ public: @@ -78,7 +78,4 @@ public:
78 * @brief GCTAPsf2D class extension 78 * @brief GCTAPsf2D class extension
79 ***************************************************************************/ 79 ***************************************************************************/
80 %extend GCTAPsf2D { 80 %extend GCTAPsf2D {
81 - char *__str__() {  
82 - return tochar(self->print());  
83 - }  
84 }; 81 };
inst/cta/pyext/GCTAPsfPerfTable.i
@@ -78,7 +78,4 @@ public: @@ -78,7 +78,4 @@ public:
78 * @brief GCTAPsfPerfTable class extension 78 * @brief GCTAPsfPerfTable class extension
79 ***************************************************************************/ 79 ***************************************************************************/
80 %extend GCTAPsfPerfTable { 80 %extend GCTAPsfPerfTable {
81 - char *__str__() {  
82 - return tochar(self->print());  
83 - }  
84 }; 81 };
inst/cta/pyext/GCTAPsfVector.i
@@ -84,7 +84,4 @@ public: @@ -84,7 +84,4 @@ public:
84 * @brief GCTAPsfVector class extension 84 * @brief GCTAPsfVector class extension
85 ***************************************************************************/ 85 ***************************************************************************/
86 %extend GCTAPsfVector { 86 %extend GCTAPsfVector {
87 - char *__str__() {  
88 - return tochar(self->print());  
89 - }  
90 }; 87 };
inst/cta/pyext/GCTAResponseTable.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GCTAResponseTable.i - CTA response table class * 2 * GCTAResponseTable.i - CTA response table class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 by Juergen Knoedlseder * 4 + * copyright (C) 2012-2013 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 *
@@ -78,9 +78,6 @@ public: @@ -78,9 +78,6 @@ public:
78 * @brief GCTAResponse class extension 78 * @brief GCTAResponse class extension
79 ***************************************************************************/ 79 ***************************************************************************/
80 %extend GCTAResponseTable { 80 %extend GCTAResponseTable {
81 - char *__str__() {  
82 - return tochar(self->print());  
83 - }  
84 GCTAResponseTable copy() { 81 GCTAResponseTable copy() {
85 return (*self); 82 return (*self);
86 } 83 }
inst/lat/pyext/GLATAeff.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GLATAeff.i - Fermi/LAT effective area * 2 + * GLATAeff.i - Fermi/LAT effective area class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 by Juergen Knoedlseder * 4 + * copyright (C) 2012-2013 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 *
@@ -74,9 +74,6 @@ public: @@ -74,9 +74,6 @@ public:
74 * @brief GLATAeff class extension 74 * @brief GLATAeff class extension
75 ***************************************************************************/ 75 ***************************************************************************/
76 %extend GLATAeff { 76 %extend GLATAeff {
77 - char *__str__() {  
78 - return tochar(self->print());  
79 - }  
80 GLATAeff copy() { 77 GLATAeff copy() {
81 return (*self); 78 return (*self);
82 } 79 }
inst/lat/pyext/GLATEdisp.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GLATEdisp.i - Fermi/LAT energy dispersion * 2 + * GLATEdisp.i - Fermi/LAT energy dispersion class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 by Juergen Knoedlseder * 4 + * copyright (C) 2012-2013 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 *
@@ -69,9 +69,6 @@ public: @@ -69,9 +69,6 @@ public:
69 * @brief GLATEdisp class extension 69 * @brief GLATEdisp class extension
70 ***************************************************************************/ 70 ***************************************************************************/
71 %extend GLATEdisp { 71 %extend GLATEdisp {
72 - char *__str__() {  
73 - return tochar(self->print());  
74 - }  
75 GLATEdisp copy() { 72 GLATEdisp copy() {
76 return (*self); 73 return (*self);
77 } 74 }
inst/lat/pyext/GLATEventAtom.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GLATEventAtom.i - Fermi/LAT event atom class * 2 + * GLATEventAtom.i - Fermi/LAT event atom class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 by Juergen Knoedlseder * 4 + * copyright (C) 2012-2013 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 *
@@ -55,9 +55,6 @@ public: @@ -55,9 +55,6 @@ public:
55 * @brief GLATEventAtom class extension 55 * @brief GLATEventAtom class extension
56 ***************************************************************************/ 56 ***************************************************************************/
57 %extend GLATEventAtom { 57 %extend GLATEventAtom {
58 - char *__str__() {  
59 - return tochar(self->print());  
60 - }  
61 GLATEventAtom copy() { 58 GLATEventAtom copy() {
62 return (*self); 59 return (*self);
63 } 60 }
inst/lat/pyext/GLATEventList.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GLATEventList.i - Fermi-LAT event atom container class * 2 + * GLATEventList.i - Fermi/LAT event atom container class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 by Juergen Knoedlseder * 4 + * copyright (C) 2012-2013 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 *
@@ -60,9 +60,6 @@ public: @@ -60,9 +60,6 @@ public:
60 * @brief GLATEventList class extension 60 * @brief GLATEventList class extension
61 ***************************************************************************/ 61 ***************************************************************************/
62 %extend GLATEventList { 62 %extend GLATEventList {
63 - char *__str__() {  
64 - return tochar(self->print());  
65 - }  
66 GLATEventList copy() { 63 GLATEventList copy() {
67 return (*self); 64 return (*self);
68 } 65 }
inst/lat/pyext/GLATLtCube.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GLATLtCube.i - Fermi/LAT lifetime cube * 2 + * GLATLtCube.i - Fermi/LAT lifetime cube class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -20,8 +20,8 @@ @@ -20,8 +20,8 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GLATLtCube.i 22 * @file GLATLtCube.i
23 - * @brief Fermi/LAT lifetime cube Python interface definition  
24 - * @author J. Knoedlseder 23 + * @brief Fermi/LAT lifetime cube interface definition
  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 */
@@ -65,9 +65,6 @@ public: @@ -65,9 +65,6 @@ public:
65 * @brief GLATLtCube class extension 65 * @brief GLATLtCube class extension
66 ***************************************************************************/ 66 ***************************************************************************/
67 %extend GLATLtCube { 67 %extend GLATLtCube {
68 - char *__str__() {  
69 - return tochar(self->print());  
70 - }  
71 GLATLtCube copy() { 68 GLATLtCube copy() {
72 return (*self); 69 return (*self);
73 } 70 }
inst/lat/pyext/GLATMeanPsf.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GLATMeanPsf.hpp - Fermi/LAT mean PSF * 2 + * GLATMeanPsf.hpp - Fermi/LAT mean PSF class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -20,8 +20,8 @@ @@ -20,8 +20,8 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GLATMeanPsf.hpp 22 * @file GLATMeanPsf.hpp
23 - * @brief Fermi LAT mean PSF Python interface definition  
24 - * @author J. Knodlseder 23 + * @brief Fermi/LAT mean PSF interface definition
  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 */
@@ -75,9 +75,6 @@ public: @@ -75,9 +75,6 @@ public:
75 * @brief GLATMeanPsf class extension 75 * @brief GLATMeanPsf class extension
76 ***************************************************************************/ 76 ***************************************************************************/
77 %extend GLATMeanPsf { 77 %extend GLATMeanPsf {
78 - char *__str__() {  
79 - return tochar(self->print());  
80 - }  
81 GLATMeanPsf copy() { 78 GLATMeanPsf copy() {
82 return (*self); 79 return (*self);
83 } 80 }
inst/lat/pyext/GLATPointing.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GLATPointing.i - Fermi-LAT pointing class * 2 + * GLATPointing.i - Fermi/LAT pointing class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 by Juergen Knoedlseder * 4 + * copyright (C) 2012-2013 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 *
@@ -54,9 +54,6 @@ public: @@ -54,9 +54,6 @@ public:
54 * @brief GLATPointing class extension 54 * @brief GLATPointing class extension
55 ***************************************************************************/ 55 ***************************************************************************/
56 %extend GLATPointing { 56 %extend GLATPointing {
57 - char *__str__() {  
58 - return tochar(self->print());  
59 - }  
60 GLATPointing copy() { 57 GLATPointing copy() {
61 return (*self); 58 return (*self);
62 } 59 }
inst/lat/pyext/GLATPsf.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GLATPsf.i - Fermi/LAT point spread function * 2 + * GLATPsf.i - Fermi/LAT point spread function class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 by Juergen Knoedlseder * 4 + * copyright (C) 2012-2013 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 GLATPsf.i 22 * @file GLATPsf.i
23 * @brief Fermi/LAT point spread function class definition 23 * @brief Fermi/LAT point spread function class 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 */
@@ -74,9 +74,6 @@ public: @@ -74,9 +74,6 @@ public:
74 * @brief GLATPsf class extension 74 * @brief GLATPsf class extension
75 ***************************************************************************/ 75 ***************************************************************************/
76 %extend GLATPsf { 76 %extend GLATPsf {
77 - char *__str__() {  
78 - return tochar(self->print());  
79 - }  
80 GLATPsf copy() { 77 GLATPsf copy() {
81 return (*self); 78 return (*self);
82 } 79 }
pyext/GApplication.i
@@ -80,7 +80,7 @@ public: @@ -80,7 +80,7 @@ public:
80 ***************************************************************************/ 80 ***************************************************************************/
81 %extend GApplication { 81 %extend GApplication {
82 char *__str__() { 82 char *__str__() {
83 - return tochar(self->print()); 83 + return gammalib::tochar(self->print());
84 } 84 }
85 GPar& __getitem__(const std::string& name) { 85 GPar& __getitem__(const std::string& name) {
86 return (*self)[name]; 86 return (*self)[name];
pyext/GCaldb.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GCaldb.i - Calibration database class * 2 + * GCaldb.i - Calibration database class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -59,7 +59,7 @@ public: @@ -59,7 +59,7 @@ public:
59 ***************************************************************************/ 59 ***************************************************************************/
60 %extend GCaldb { 60 %extend GCaldb {
61 char *__str__() { 61 char *__str__() {
62 - return tochar(self->print()); 62 + return gammalib::tochar(self->print());
63 } 63 }
64 GCaldb copy() { 64 GCaldb copy() {
65 return (*self); 65 return (*self);
pyext/GCsv.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GCsv.i - Column separated values table class * 2 * GCsv.i - Column separated values table class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2010-2013 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 GCsv.hpp 22 * @file GCsv.hpp
23 * @brief Column separated values table class Python bindings 23 * @brief Column separated values table class Python bindings
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 */
@@ -107,9 +107,6 @@ public: @@ -107,9 +107,6 @@ public:
107 * @brief GCsv class extension 107 * @brief GCsv class extension
108 ***************************************************************************/ 108 ***************************************************************************/
109 %extend GCsv { 109 %extend GCsv {
110 - char *__str__() {  
111 - return tochar(self->print());  
112 - }  
113 std::string __getitem__(int GCsvInx[]) { 110 std::string __getitem__(int GCsvInx[]) {
114 return (*self)(GCsvInx[0], GCsvInx[1]); 111 return (*self)(GCsvInx[0], GCsvInx[1]);
115 } 112 }
pyext/GDerivative.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GDerivative.i - Derivative class * 2 * GDerivative.i - Derivative class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -68,9 +68,6 @@ public: @@ -68,9 +68,6 @@ public:
68 * @brief GDerivative class extension 68 * @brief GDerivative class extension
69 ***************************************************************************/ 69 ***************************************************************************/
70 %extend GDerivative { 70 %extend GDerivative {
71 - char *__str__() {  
72 - return tochar(self->print());  
73 - }  
74 GDerivative copy() { 71 GDerivative copy() {
75 return (*self); 72 return (*self);
76 } 73 }
pyext/GEbounds.i
@@ -80,9 +80,6 @@ public: @@ -80,9 +80,6 @@ public:
80 * @brief GEbounds class extension 80 * @brief GEbounds class extension
81 ***************************************************************************/ 81 ***************************************************************************/
82 %extend GEbounds { 82 %extend GEbounds {
83 - char *__str__() {  
84 - return tochar(self->print());  
85 - }  
86 int __len__() { 83 int __len__() {
87 return (self->size()); 84 return (self->size());
88 } 85 }
pyext/GEnergy.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GEnergy.i - Energy class * 2 * GEnergy.i - Energy class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -80,9 +80,6 @@ public: @@ -80,9 +80,6 @@ public:
80 * @brief GEnergy class extension 80 * @brief GEnergy class extension
81 ***************************************************************************/ 81 ***************************************************************************/
82 %extend GEnergy { 82 %extend GEnergy {
83 - char *__str__() {  
84 - return tochar(self->print());  
85 - }  
86 GEnergy __add__(const GEnergy& eng) const { 83 GEnergy __add__(const GEnergy& eng) const {
87 return ((*self) + eng); 84 return ((*self) + eng);
88 } 85 }
pyext/GEvent.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GEvent.i - Abstract event class python I/F * 2 + * GEvent.i - Abstract event class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GEvent.i 22 * @file GEvent.i
23 - * @brief GEvent class python interface 23 + * @brief Abstract event base class interface definition
24 * @author Juergen Knoedlseder 24 * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
@@ -89,7 +89,4 @@ public: @@ -89,7 +89,4 @@ public:
89 * @brief GEvent class extension 89 * @brief GEvent class extension
90 ***************************************************************************/ 90 ***************************************************************************/
91 %extend GEvent { 91 %extend GEvent {
92 - char *__str__() {  
93 - return tochar(self->print());  
94 - }  
95 }; 92 };
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-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -84,9 +84,6 @@ public: @@ -84,9 +84,6 @@ public:
84 * @brief GEvents class extension 84 * @brief GEvents class extension
85 ***************************************************************************/ 85 ***************************************************************************/
86 %extend GEvents { 86 %extend GEvents {
87 - char *__str__() {  
88 - return tochar(self->print());  
89 - }  
90 GEvent* __getitem__(int index) { 87 GEvent* __getitem__(int index) {
91 if (index >= 0 && index < self->size()) { 88 if (index >= 0 && index < self->size()) {
92 return (*self)[index]; 89 return (*self)[index];
pyext/GFits.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GFits.i - FITS file access class * 2 + * GFits.i - FITS file access class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2008-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2008-2013 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 *
@@ -180,9 +180,6 @@ public: @@ -180,9 +180,6 @@ public:
180 * @brief GFits class SWIG extension 180 * @brief GFits class SWIG extension
181 ***************************************************************************/ 181 ***************************************************************************/
182 %extend GFits { 182 %extend GFits {
183 - char *__str__() {  
184 - return tochar(self->print());  
185 - }  
186 GFits copy() { 183 GFits copy() {
187 return (*self); 184 return (*self);
188 } 185 }
pyext/GFitsAsciiTable.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GFitsAsciiTable.i - FITS ASCII table class * 2 * GFitsAsciiTable.i - FITS ASCII table class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2008-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2008-2013 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 *
@@ -54,9 +54,6 @@ public: @@ -54,9 +54,6 @@ public:
54 * @brief GFitsAsciiTable class SWIG extension 54 * @brief GFitsAsciiTable class SWIG extension
55 ***************************************************************************/ 55 ***************************************************************************/
56 %extend GFitsAsciiTable { 56 %extend GFitsAsciiTable {
57 - char *__str__() {  
58 - return tochar(self->print());  
59 - }  
60 GFitsAsciiTable copy() { 57 GFitsAsciiTable copy() {
61 return (*self); 58 return (*self);
62 } 59 }
pyext/GFitsBinTable.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GFitsBinTable.i - FITS binary table class * 2 * GFitsBinTable.i - FITS binary table class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2008-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2008-2013 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 *
@@ -54,9 +54,6 @@ public: @@ -54,9 +54,6 @@ public:
54 * @brief GFitsBinTable class SWIG extension 54 * @brief GFitsBinTable class SWIG extension
55 ***************************************************************************/ 55 ***************************************************************************/
56 %extend GFitsBinTable { 56 %extend GFitsBinTable {
57 - char *__str__() {  
58 - return tochar(self->print());  
59 - }  
60 GFitsBinTable copy() { 57 GFitsBinTable copy() {
61 return (*self); 58 return (*self);
62 } 59 }
pyext/GFitsHDU.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GFitsHDU.i - FITS HDU handling class * 2 + * GFitsHDU.i - FITS HDU handling class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2008-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2008-2013 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 *
@@ -87,7 +87,4 @@ public: @@ -87,7 +87,4 @@ public:
87 * @brief GFitsHDU class SWIG extension 87 * @brief GFitsHDU class SWIG extension
88 ***************************************************************************/ 88 ***************************************************************************/
89 %extend GFitsHDU { 89 %extend GFitsHDU {
90 - char *__str__() {  
91 - return tochar(self->print());  
92 - }  
93 }; 90 };
pyext/GFitsHeader.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GFitsHeader.i - FITS header handling class SWIG file * 2 + * GFitsHeader.i - FITS header class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright : (C) 2008-2011 by Juergen Knoedlseder * 4 + * copyright (C) 2008-2013 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 *
@@ -20,8 +20,8 @@ @@ -20,8 +20,8 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GFitsHeader.i 22 * @file GFitsHeader.i
23 - * @brief FITS header class Python interface definition  
24 - * @author J. Knoedlseder 23 + * @brief FITS header class interface definition
  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 */
@@ -75,9 +75,6 @@ public: @@ -75,9 +75,6 @@ public:
75 * @brief GFitsHeader class SWIG extension 75 * @brief GFitsHeader class SWIG extension
76 ***************************************************************************/ 76 ***************************************************************************/
77 %extend GFitsHeader { 77 %extend GFitsHeader {
78 - char *__str__() {  
79 - return tochar(self->print());  
80 - }  
81 GFitsHeader copy() { 78 GFitsHeader copy() {
82 return (*self); 79 return (*self);
83 } 80 }
pyext/GFitsHeaderCard.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GFitsHeaderCard.hpp - FITS header card class SWIG file * 2 + * GFitsHeaderCard.hpp - FITS header card class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2008-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2008-2013 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 *
@@ -86,9 +86,6 @@ public: @@ -86,9 +86,6 @@ public:
86 * @brief GFitsHeaderCard class SWIG extension 86 * @brief GFitsHeaderCard class SWIG extension
87 ***************************************************************************/ 87 ***************************************************************************/
88 %extend GFitsHeaderCard { 88 %extend GFitsHeaderCard {
89 - char *__str__() {  
90 - return tochar(self->print());  
91 - }  
92 GFitsHeaderCard copy() { 89 GFitsHeaderCard copy() {
93 return (*self); 90 return (*self);
94 } 91 }
pyext/GFitsImage.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GFitsImage.i - FITS image abstract base class SWIG interface * 2 + * GFitsImage.i - FITS abstract image base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright : (C) 2008-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2008-2013 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 *
@@ -131,7 +131,4 @@ public: @@ -131,7 +131,4 @@ public:
131 * @brief GFitsImage class extension 131 * @brief GFitsImage class extension
132 ***************************************************************************/ 132 ***************************************************************************/
133 %extend GFitsImage { 133 %extend GFitsImage {
134 - char *__str__() {  
135 - return tochar(self->print());  
136 - }  
137 }; 134 };
pyext/GFitsTable.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GFitsTable.i - FITS table abstract base class SWIG interface * 2 + * GFitsTable.i - FITS abstract table base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2008-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2008-2013 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 *
@@ -134,9 +134,6 @@ public: @@ -134,9 +134,6 @@ public:
134 * @brief GFitsTable class extension 134 * @brief GFitsTable class extension
135 ***************************************************************************/ 135 ***************************************************************************/
136 %extend GFitsTable { 136 %extend GFitsTable {
137 - char *__str__() {  
138 - return tochar(self->print());  
139 - }  
140 GFitsTableCol& __getitem__(const int& colnum) { 137 GFitsTableCol& __getitem__(const int& colnum) {
141 return (*self)[colnum]; 138 return (*self)[colnum];
142 } 139 }
pyext/GFitsTableCol.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GFitsTableCol.i - FITS table column abstract base class * 2 + * GFitsTableCol.i - FITS abstract table column base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2008-2011 by Jurgen Knodlseder * 4 + * copyright (C) 2008-2013 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 *
@@ -20,8 +20,8 @@ @@ -20,8 +20,8 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GFitsTableCol.i 22 * @file GFitsTableCol.i
23 - * @brief FITS table column abstract Python base class definition  
24 - * @author J. Knodlseder 23 + * @brief FITS abstract table column base class definition
  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 */
@@ -104,9 +104,6 @@ public: @@ -104,9 +104,6 @@ public:
104 * @todo Add range checking for type casting 104 * @todo Add range checking for type casting
105 ***************************************************************************/ 105 ***************************************************************************/
106 %extend GFitsTableCol { 106 %extend GFitsTableCol {
107 - char *__str__() {  
108 - return tochar(self->print());  
109 - }  
110 107
111 // String setting 108 // String setting
112 void __setitem__(int GFitsTableColInx[], std::string value) { 109 void __setitem__(int GFitsTableColInx[], std::string value) {
pyext/GGti.i
@@ -79,9 +79,6 @@ public: @@ -79,9 +79,6 @@ public:
79 * @brief GGti class extension 79 * @brief GGti class extension
80 ***************************************************************************/ 80 ***************************************************************************/
81 %extend GGti { 81 %extend GGti {
82 - char *__str__() {  
83 - return tochar(self->print());  
84 - }  
85 int __len__() { 82 int __len__() {
86 return (self->size()); 83 return (self->size());
87 } 84 }
pyext/GInstDir.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GInstDir.i - Instrument direction class python I/F * 2 + * GInstDir.i - Abstract instrument direction base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -60,7 +60,4 @@ public: @@ -60,7 +60,4 @@ public:
60 * @brief GInstDir class extension 60 * @brief GInstDir class extension
61 ***************************************************************************/ 61 ***************************************************************************/
62 %extend GInstDir { 62 %extend GInstDir {
63 - char *__str__() {  
64 - return tochar(self->print());  
65 - }  
66 }; 63 };
pyext/GIntegral.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GIntegral.hpp - Integration class * 2 + * GIntegral.hpp - Integration class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -68,9 +68,6 @@ public: @@ -68,9 +68,6 @@ public:
68 * @brief GIntegral class extension 68 * @brief GIntegral class extension
69 ***************************************************************************/ 69 ***************************************************************************/
70 %extend GIntegral { 70 %extend GIntegral {
71 - char *__str__() {  
72 - return tochar(self->print());  
73 - }  
74 GIntegral copy() { 71 GIntegral copy() {
75 return (*self); 72 return (*self);
76 } 73 }
pyext/GLog.i
@@ -94,24 +94,24 @@ public: @@ -94,24 +94,24 @@ public:
94 (*self) << value; 94 (*self) << value;
95 } 95 }
96 void parformat(const std::string& arg) { 96 void parformat(const std::string& arg) {
97 - (*self) << parformat(arg); 97 + (*self) << gammalib::parformat(arg);
98 } 98 }
99 void toupper(const std::string& arg) { 99 void toupper(const std::string& arg) {
100 - (*self) << toupper(arg); 100 + (*self) << gammalib::toupper(arg);
101 } 101 }
102 void tolower(const std::string& arg) { 102 void tolower(const std::string& arg) {
103 - (*self) << tolower(arg); 103 + (*self) << gammalib::tolower(arg);
104 } 104 }
105 void fill(const std::string& arg, const int& n) { 105 void fill(const std::string& arg, const int& n) {
106 - (*self) << fill(arg, n); 106 + (*self) << gammalib::fill(arg, n);
107 } 107 }
108 void left(const std::string& arg, const int& n) { 108 void left(const std::string& arg, const int& n) {
109 - (*self) << left(arg, n); 109 + (*self) << gammalib::left(arg, n);
110 } 110 }
111 void right(const std::string& arg, const int& n) { 111 void right(const std::string& arg, const int& n) {
112 - (*self) << right(arg, n); 112 + (*self) << gammalib::right(arg, n);
113 } 113 }
114 void center(const std::string& arg, const int& n) { 114 void center(const std::string& arg, const int& n) {
115 - (*self) << center(arg, n); 115 + (*self) << gammalib::center(arg, n);
116 } 116 }
117 } 117 }
pyext/GMatrix.i
@@ -96,9 +96,6 @@ public: @@ -96,9 +96,6 @@ public:
96 * @brief GMatrix class extension 96 * @brief GMatrix class extension
97 ***************************************************************************/ 97 ***************************************************************************/
98 %extend GMatrix { 98 %extend GMatrix {
99 - char *__str__() {  
100 - return tochar(self->print());  
101 - }  
102 double __getitem__(int GTuple[2]) { 99 double __getitem__(int GTuple[2]) {
103 return (*self)(GTuple[0], GTuple[1]); 100 return (*self)(GTuple[0], GTuple[1]);
104 } 101 }
pyext/GMatrixSparse.i
@@ -110,9 +110,6 @@ public: @@ -110,9 +110,6 @@ public:
110 * @brief GMatrixSparse class extension 110 * @brief GMatrixSparse class extension
111 ***************************************************************************/ 111 ***************************************************************************/
112 %extend GMatrixSparse { 112 %extend GMatrixSparse {
113 - char *__str__() {  
114 - return tochar(self->print());  
115 - }  
116 double __getitem__(int GTuple[2]) { 113 double __getitem__(int GTuple[2]) {
117 return (*self)(GTuple[0], GTuple[1]); 114 return (*self)(GTuple[0], GTuple[1]);
118 } 115 }
pyext/GMatrixSymmetric.i
@@ -95,9 +95,6 @@ public: @@ -95,9 +95,6 @@ public:
95 * @brief GMatrixSymmetric class extension 95 * @brief GMatrixSymmetric class extension
96 ***************************************************************************/ 96 ***************************************************************************/
97 %extend GMatrixSymmetric { 97 %extend GMatrixSymmetric {
98 - char *__str__() {  
99 - return tochar(self->print());  
100 - }  
101 double __getitem__(int GTuple[2]) { 98 double __getitem__(int GTuple[2]) {
102 return (*self)(GTuple[0], GTuple[1]); 99 return (*self)(GTuple[0], GTuple[1]);
103 } 100 }
pyext/GModel.i
@@ -78,9 +78,6 @@ public: @@ -78,9 +78,6 @@ public:
78 * @brief GModel class extension 78 * @brief GModel class extension
79 ***************************************************************************/ 79 ***************************************************************************/
80 %extend GModel { 80 %extend GModel {
81 - char *__str__() {  
82 - return tochar(self->print());  
83 - }  
84 GModelPar& __getitem__(const int& index) { 81 GModelPar& __getitem__(const int& index) {
85 if (index >= 0 && index < self->size()) { 82 if (index >= 0 && index < self->size()) {
86 return (*self)[index]; 83 return (*self)[index];
pyext/GModelPar.i
@@ -105,9 +105,6 @@ public: @@ -105,9 +105,6 @@ public:
105 * @brief GModelPar class extension 105 * @brief GModelPar class extension
106 ***************************************************************************/ 106 ***************************************************************************/
107 %extend GModelPar { 107 %extend GModelPar {
108 - char *__str__() {  
109 - return tochar(self->print());  
110 - }  
111 GModelPar copy() { 108 GModelPar copy() {
112 return (*self); 109 return (*self);
113 } 110 }
pyext/GModelRegistry.i
@@ -55,7 +55,4 @@ public: @@ -55,7 +55,4 @@ public:
55 * @brief GModelRegistry class extension 55 * @brief GModelRegistry class extension
56 ***************************************************************************/ 56 ***************************************************************************/
57 %extend GModelRegistry { 57 %extend GModelRegistry {
58 - char *__str__() {  
59 - return tochar(self->print());  
60 - }  
61 }; 58 };
pyext/GModelSpatial.i
@@ -64,9 +64,6 @@ public: @@ -64,9 +64,6 @@ public:
64 * @brief GModelSpatial class extension 64 * @brief GModelSpatial class extension
65 ***************************************************************************/ 65 ***************************************************************************/
66 %extend GModelSpatial { 66 %extend GModelSpatial {
67 - char *__str__() {  
68 - return tochar(self->print());  
69 - }  
70 GModelPar& __getitem__(const int& index) { 67 GModelPar& __getitem__(const int& index) {
71 if (index >= 0 && index < self->size()) { 68 if (index >= 0 && index < self->size()) {
72 return (*self)[index]; 69 return (*self)[index];
pyext/GModelSpatialRegistry.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GModelSpatialRegistry.i - Spatial model registry class * 2 * GModelSpatialRegistry.i - Spatial model registry class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -56,6 +56,6 @@ public: @@ -56,6 +56,6 @@ public:
56 ***************************************************************************/ 56 ***************************************************************************/
57 %extend GModelSpatialRegistry { 57 %extend GModelSpatialRegistry {
58 char *__str__() { 58 char *__str__() {
59 - return tochar(self->print()); 59 + return gammalib::tochar(self->print());
60 } 60 }
61 }; 61 };
pyext/GModelSpectral.i
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 * 35 *
36 * @brief Abstract spectral model class 36 * @brief Abstract spectral model class
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GModelSpectral { 38 +class GModelSpectral : public GBase {
39 39
40 public: 40 public:
41 // Constructors and destructors 41 // Constructors and destructors
@@ -70,9 +70,6 @@ public: @@ -70,9 +70,6 @@ public:
70 * @brief GModelSpectral class extension 70 * @brief GModelSpectral class extension
71 ***************************************************************************/ 71 ***************************************************************************/
72 %extend GModelSpectral { 72 %extend GModelSpectral {
73 - char *__str__() {  
74 - return tochar(self->print());  
75 - }  
76 GModelPar& __getitem__(const int& index) { 73 GModelPar& __getitem__(const int& index) {
77 if (index >= 0 && index < self->size()) { 74 if (index >= 0 && index < self->size()) {
78 return (*self)[index]; 75 return (*self)[index];
pyext/GModelSpectralRegistry.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GModelSpectralRegistry.i - Spectral model registry class * 2 * GModelSpectralRegistry.i - Spectral model registry class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -56,6 +56,6 @@ public: @@ -56,6 +56,6 @@ public:
56 ***************************************************************************/ 56 ***************************************************************************/
57 %extend GModelSpectralRegistry { 57 %extend GModelSpectralRegistry {
58 char *__str__() { 58 char *__str__() {
59 - return tochar(self->print()); 59 + return gammalib::tochar(self->print());
60 } 60 }
61 }; 61 };
pyext/GModelTemporal.i
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 * 35 *
36 * @brief Abstract temporal model base class 36 * @brief Abstract temporal model base class
37 ***************************************************************************/ 37 ***************************************************************************/
38 -class GModelTemporal { 38 +class GModelTemporal : public GBase {
39 39
40 public: 40 public:
41 // Constructors and destructors 41 // Constructors and destructors
@@ -64,9 +64,6 @@ public: @@ -64,9 +64,6 @@ public:
64 * @brief GModelTemporal class extension 64 * @brief GModelTemporal class extension
65 ***************************************************************************/ 65 ***************************************************************************/
66 %extend GModelTemporal { 66 %extend GModelTemporal {
67 - char *__str__() {  
68 - return tochar(self->print());  
69 - }  
70 GModelPar& __getitem__(const int& index) { 67 GModelPar& __getitem__(const int& index) {
71 if (index >= 0 && index < self->size()) { 68 if (index >= 0 && index < self->size()) {
72 return (*self)[index]; 69 return (*self)[index];
pyext/GModelTemporalRegistry.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GModelTemporalRegistry.i - Temporal model registry class * 2 * GModelTemporalRegistry.i - Temporal model registry class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -55,7 +55,4 @@ public: @@ -55,7 +55,4 @@ public:
55 * @brief GModelTemporalRegistry class extension 55 * @brief GModelTemporalRegistry class extension
56 ***************************************************************************/ 56 ***************************************************************************/
57 %extend GModelTemporalRegistry { 57 %extend GModelTemporalRegistry {
58 - char *__str__() {  
59 - return tochar(self->print());  
60 - }  
61 }; 58 };
pyext/GNodeArray.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GNodeArray.i - Array of nodes class SWIG definition * 2 + * GNodeArray.i - Array of nodes class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2008-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2008-2013 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 *
@@ -68,9 +68,6 @@ public: @@ -68,9 +68,6 @@ public:
68 * @brief GNodeArray class extension 68 * @brief GNodeArray class extension
69 ***************************************************************************/ 69 ***************************************************************************/
70 %extend GNodeArray { 70 %extend GNodeArray {
71 - char *__str__() {  
72 - return tochar(self->print());  
73 - }  
74 double __getitem__(const int& index) { 71 double __getitem__(const int& index) {
75 if (index >= 0 && index < self->size()) 72 if (index >= 0 && index < self->size())
76 return (*self)[index]; 73 return (*self)[index];
pyext/GObservation.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GObservation.i - Abstract observation abstract base class * 2 + * GObservation.i - Abstract observation base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2008-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2008-2013 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 *
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 ***************************************************************************/ 20 ***************************************************************************/
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 interface definition
24 * @author Juergen Knoedlseder 24 * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
@@ -96,7 +96,4 @@ public: @@ -96,7 +96,4 @@ public:
96 * @brief GObservation class extension 96 * @brief GObservation class extension
97 ***************************************************************************/ 97 ***************************************************************************/
98 %extend GObservation { 98 %extend GObservation {
99 - char *__str__() {  
100 - return tochar(self->print());  
101 - }  
102 }; 99 };
pyext/GObservationRegistry.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GObservationRegistry.i - Observation registry class * 2 * GObservationRegistry.i - Observation registry class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -55,7 +55,4 @@ public: @@ -55,7 +55,4 @@ public:
55 * @brief GObservationRegistry class extension 55 * @brief GObservationRegistry class extension
56 ***************************************************************************/ 56 ***************************************************************************/
57 %extend GObservationRegistry { 57 %extend GObservationRegistry {
58 - char *__str__() {  
59 - return tochar(self->print());  
60 - }  
61 }; 58 };
pyext/GObservations.i
@@ -75,9 +75,6 @@ public: @@ -75,9 +75,6 @@ public:
75 * @brief GObservations class extension 75 * @brief GObservations class extension
76 ***************************************************************************/ 76 ***************************************************************************/
77 %extend GObservations { 77 %extend GObservations {
78 - char *__str__() {  
79 - return tochar(self->print());  
80 - }  
81 GObservation* __getitem__(const int& index) { 78 GObservation* __getitem__(const int& index) {
82 if (index >= 0 && index < self->size()) { 79 if (index >= 0 && index < self->size()) {
83 return (*self)[index]; 80 return (*self)[index];
pyext/GOptimizer.i
@@ -57,7 +57,4 @@ public: @@ -57,7 +57,4 @@ public:
57 * @brief GOptimizer class extension 57 * @brief GOptimizer class extension
58 ***************************************************************************/ 58 ***************************************************************************/
59 %extend GOptimizer { 59 %extend GOptimizer {
60 - char *__str__() {  
61 - return tochar(self->print());  
62 - }  
63 }; 60 };
pyext/GPar.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GPar.i - Application parameter class SWIG file * 2 + * GPar.i - Application parameter class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GPar.i 22 * @file GPar.i
23 - * @brief Application parameter class SWIG file. 23 + * @brief Application parameter class definition
24 * @author Juergen Knoedlseder 24 * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
@@ -83,7 +83,7 @@ public: @@ -83,7 +83,7 @@ public:
83 ***************************************************************************/ 83 ***************************************************************************/
84 %extend GPar { 84 %extend GPar {
85 char *__str__() { 85 char *__str__() {
86 - return tochar(self->print()); 86 + return gammalib::tochar(self->print());
87 } 87 }
88 GPar copy() { 88 GPar copy() {
89 return (*self); 89 return (*self);
pyext/GPars.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GPars.i - Application parameters Python interface * 2 + * GPars.i - Application parameter container *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -64,7 +64,7 @@ public: @@ -64,7 +64,7 @@ public:
64 ***************************************************************************/ 64 ***************************************************************************/
65 %extend GPars { 65 %extend GPars {
66 char *__str__() { 66 char *__str__() {
67 - return tochar(self->print()); 67 + return gammalib::tochar(self->print());
68 } 68 }
69 GPar& __getitem__(const int& index) { 69 GPar& __getitem__(const int& index) {
70 if (index >= 0 && index < self->size()) 70 if (index >= 0 && index < self->size())
pyext/GPhoton.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GPhoton.i - Photon class * 2 * GPhoton.i - Photon class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -65,9 +65,6 @@ public: @@ -65,9 +65,6 @@ public:
65 * @brief GPhoton class extension 65 * @brief GPhoton class extension
66 ***************************************************************************/ 66 ***************************************************************************/
67 %extend GPhoton { 67 %extend GPhoton {
68 - char *__str__() {  
69 - return tochar(self->print());  
70 - }  
71 bool __eq__(const GPhoton& ph) const { 68 bool __eq__(const GPhoton& ph) const {
72 return ((*self) == ph); 69 return ((*self) == ph);
73 } 70 }
pyext/GPhotons.i
@@ -59,9 +59,6 @@ public: @@ -59,9 +59,6 @@ public:
59 * @brief GPhotons class extension 59 * @brief GPhotons class extension
60 ***************************************************************************/ 60 ***************************************************************************/
61 %extend GPhotons { 61 %extend GPhotons {
62 - char *__str__() {  
63 - return tochar(self->print());  
64 - }  
65 GPhoton& __getitem__(const int& index) { 62 GPhoton& __getitem__(const int& index) {
66 if (index >= 0 && index < self->size()) { 63 if (index >= 0 && index < self->size()) {
67 return (*self)[index]; 64 return (*self)[index];
pyext/GPointing.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GPointing.i - Abstract pointing class * 2 + * GPointing.i - Abstract pointing class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -54,7 +54,4 @@ public: @@ -54,7 +54,4 @@ public:
54 * @brief GPointing class extension 54 * @brief GPointing class extension
55 ***************************************************************************/ 55 ***************************************************************************/
56 %extend GPointing { 56 %extend GPointing {
57 - char *__str__() {  
58 - return tochar(self->print());  
59 - }  
60 }; 57 };
pyext/GRan.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GRan.i - Random number generator class * 2 * GRan.i - Random number generator class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -64,9 +64,6 @@ public: @@ -64,9 +64,6 @@ public:
64 * @brief GRan class extension 64 * @brief GRan class extension
65 ***************************************************************************/ 65 ***************************************************************************/
66 %extend GRan { 66 %extend GRan {
67 - char *__str__() {  
68 - return tochar(self->print());  
69 - }  
70 GRan copy() { 67 GRan copy() {
71 return (*self); 68 return (*self);
72 } 69 }
pyext/GResponse.i
@@ -87,7 +87,4 @@ public: @@ -87,7 +87,4 @@ public:
87 * @brief GResponse class extension 87 * @brief GResponse class extension
88 ***************************************************************************/ 88 ***************************************************************************/
89 %extend GResponse { 89 %extend GResponse {
90 - char *__str__() {  
91 - return tochar(self->print());  
92 - }  
93 }; 90 };
pyext/GRoi.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GRoi.i - Region of interest abstract base class * 2 + * GRoi.i - Abstract Region of interest base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -58,7 +58,4 @@ public: @@ -58,7 +58,4 @@ public:
58 * @brief GRoi class extension 58 * @brief GRoi class extension
59 ***************************************************************************/ 59 ***************************************************************************/
60 %extend GRoi { 60 %extend GRoi {
61 - char *__str__() {  
62 - return tochar(self->print());  
63 - }  
64 }; 61 };
pyext/GSkyDir.i
@@ -72,9 +72,6 @@ public: @@ -72,9 +72,6 @@ public:
72 * @brief GSkyDir class extension 72 * @brief GSkyDir class extension
73 ***************************************************************************/ 73 ***************************************************************************/
74 %extend GSkyDir { 74 %extend GSkyDir {
75 - char *__str__() {  
76 - return tochar(self->print());  
77 - }  
78 bool __eq__(const GSkyDir& dir) const { 75 bool __eq__(const GSkyDir& dir) const {
79 return ((*self) == dir); 76 return ((*self) == dir);
80 } 77 }
pyext/GSkyPixel.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GSkyPixel.i - 2D sky pixel index class SWIG definition * 2 + * GSkyPixel.i - 2D sky pixel index class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -58,9 +58,6 @@ public: @@ -58,9 +58,6 @@ public:
58 * @brief GSkyPixel class extension 58 * @brief GSkyPixel class extension
59 ***************************************************************************/ 59 ***************************************************************************/
60 %extend GSkyPixel { 60 %extend GSkyPixel {
61 - char *__str__() {  
62 - return tochar(self->print());  
63 - }  
64 GSkyPixel copy() { 61 GSkyPixel copy() {
65 return (*self); 62 return (*self);
66 } 63 }
pyext/GSkymap.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GSkymap.i - Sky map class SWIG definition * 2 + * GSkymap.i - Sky map class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -154,9 +154,6 @@ public: @@ -154,9 +154,6 @@ public:
154 * GSkyDir 154 * GSkyDir
155 ***************************************************************************/ 155 ***************************************************************************/
156 %extend GSkymap { 156 %extend GSkymap {
157 - char *__str__() {  
158 - return tochar(self->print());  
159 - }  
160 double __getitem__(int GSkymapInx[]) { 157 double __getitem__(int GSkymapInx[]) {
161 if (GSkymapInx[0] == 1) { 158 if (GSkymapInx[0] == 1) {
162 return (*self)(GSkymapInx[1]); 159 return (*self)(GSkymapInx[1]);
pyext/GSource.i
@@ -64,9 +64,6 @@ public: @@ -64,9 +64,6 @@ public:
64 * @brief GSource class extension 64 * @brief GSource class extension
65 ***************************************************************************/ 65 ***************************************************************************/
66 %extend GSource { 66 %extend GSource {
67 - char *__str__() {  
68 - return tochar(self->print());  
69 - }  
70 GSource copy() { 67 GSource copy() {
71 return (*self); 68 return (*self);
72 } 69 }
pyext/GTestCase.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GTestCase.i - Test case class Python interface * 2 * GTestCase.i - Test case class Python interface *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 Jean-Baptiste Cayrou * 4 + * copyright (C) 2012-2013 Jean-Baptiste Cayrou *
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 *
@@ -72,9 +72,6 @@ public: @@ -72,9 +72,6 @@ public:
72 * @brief GTestCase class extension 72 * @brief GTestCase class extension
73 ***************************************************************************/ 73 ***************************************************************************/
74 %extend GTestCase { 74 %extend GTestCase {
75 - char *__str__() {  
76 - return tochar(self->print());  
77 - }  
78 GTestCase copy() { 75 GTestCase copy() {
79 return (*self); 76 return (*self);
80 } 77 }
pyext/GTestSuites.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GTestSuites.i - Test suites class Python interface * 2 * GTestSuites.i - Test suites class Python interface *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 Jean-Baptiste Cayrou * 4 + * copyright (C) 2012-2013 Jean-Baptiste Cayrou *
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 *
@@ -66,9 +66,6 @@ public: @@ -66,9 +66,6 @@ public:
66 * @brief GTestSuites class extension 66 * @brief GTestSuites class extension
67 ***************************************************************************/ 67 ***************************************************************************/
68 %extend GTestSuites { 68 %extend GTestSuites {
69 - char *__str__() {  
70 - return tochar(self->print());  
71 - }  
72 GTestSuite& __getitem__(const int& index) { 69 GTestSuite& __getitem__(const int& index) {
73 if (index >= 0 && index < self->size()) { 70 if (index >= 0 && index < self->size()) {
74 return (*self)[index]; 71 return (*self)[index];
pyext/GTime.i
1 /*************************************************************************** 1 /***************************************************************************
2 - * GTime.i - Time class * 2 + * GTime.i - Time class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2010-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 ***************************************************************************/ 20 ***************************************************************************/
21 /** 21 /**
22 * @file GTime.i 22 * @file GTime.i
23 - * @brief Time class python interface definition 23 + * @brief Time class interface definition
24 * @author Juergen Knoedlseder 24 * @author Juergen Knoedlseder
25 */ 25 */
26 %{ 26 %{
@@ -69,9 +69,6 @@ public: @@ -69,9 +69,6 @@ public:
69 * @brief GTime class extension 69 * @brief GTime class extension
70 ***************************************************************************/ 70 ***************************************************************************/
71 %extend GTime { 71 %extend GTime {
72 - char *__str__() {  
73 - return tochar(self->print());  
74 - }  
75 GTime __add__(const GTime& time) const { 72 GTime __add__(const GTime& time) const {
76 return ((*self) + time); 73 return ((*self) + time);
77 } 74 }
pyext/GTimeReference.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GTimeReference.i - Time reference class * 2 * GTimeReference.i - Time reference class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 by Juergen Knoedlseder * 4 + * copyright (C) 2012-2013 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 *
@@ -80,9 +80,6 @@ public: @@ -80,9 +80,6 @@ public:
80 * @brief GTimeReference class extension 80 * @brief GTimeReference class extension
81 ***************************************************************************/ 81 ***************************************************************************/
82 %extend GTimeReference { 82 %extend GTimeReference {
83 - char *__str__() {  
84 - return tochar(self->print());  
85 - }  
86 GTimeReference copy() { 83 GTimeReference copy() {
87 return (*self); 84 return (*self);
88 } 85 }
pyext/GTimes.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GTimes.i - Time container class * 2 * GTimes.i - Time container class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2012 by Juergen Knoedlseder * 4 + * copyright (C) 2012-2013 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 *
@@ -61,9 +61,6 @@ public: @@ -61,9 +61,6 @@ public:
61 * @brief GTimes class extension 61 * @brief GTimes class extension
62 ***************************************************************************/ 62 ***************************************************************************/
63 %extend GTimes { 63 %extend GTimes {
64 - char *__str__() {  
65 - return tochar(self->print());  
66 - }  
67 GTime& __getitem__(const int& index) { 64 GTime& __getitem__(const int& index) {
68 if (index >= 0 && index < self->size()) { 65 if (index >= 0 && index < self->size()) {
69 return (*self)[index]; 66 return (*self)[index];
pyext/GUrl.i
@@ -49,8 +49,6 @@ public: @@ -49,8 +49,6 @@ public:
49 virtual void close(void) = 0; 49 virtual void close(void) = 0;
50 virtual int getchar(void) = 0; 50 virtual int getchar(void) = 0;
51 virtual void putchar(const int& character) = 0; 51 virtual void putchar(const int& character) = 0;
52 - //virtual void scanf(const char* format, ...) = 0;  
53 - //virtual void printf(const char* format, ...) = 0;  
54 }; 52 };
55 53
56 54
@@ -58,9 +56,6 @@ public: @@ -58,9 +56,6 @@ public:
58 * @brief GUrl class extension 56 * @brief GUrl class extension
59 ***************************************************************************/ 57 ***************************************************************************/
60 %extend GUrl { 58 %extend GUrl {
61 - char *__str__() {  
62 - return tochar(self->print());  
63 - }  
64 char* read(const int& nbyte) { 59 char* read(const int& nbyte) {
65 char* buffer = new char[nbyte+1]; 60 char* buffer = new char[nbyte+1];
66 int nread = self->read(buffer, nbyte); 61 int nread = self->read(buffer, nbyte);
pyext/GVector.i
@@ -71,9 +71,6 @@ public: @@ -71,9 +71,6 @@ public:
71 * @brief GVector class extension 71 * @brief GVector class extension
72 ***************************************************************************/ 72 ***************************************************************************/
73 %extend GVector { 73 %extend GVector {
74 - char *__str__() {  
75 - return tochar(self->print());  
76 - }  
77 double __getitem__(const int& index) { 74 double __getitem__(const int& index) {
78 if (index >= 0 && index < self->size()) { 75 if (index >= 0 && index < self->size()) {
79 return (*self)[index]; 76 return (*self)[index];
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-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2010-2013 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 *
@@ -69,9 +69,6 @@ public: @@ -69,9 +69,6 @@ public:
69 * @brief GWcs class extension 69 * @brief GWcs class extension
70 ***************************************************************************/ 70 ***************************************************************************/
71 %extend GWcs { 71 %extend GWcs {
72 - char *__str__() {  
73 - return tochar(self->print());  
74 - }  
75 bool __is__(const GWcs &a) { 72 bool __is__(const GWcs &a) {
76 return (*self) == a; 73 return (*self) == a;
77 } 74 }
pyext/GWcsRegistry.i
1 /*************************************************************************** 1 /***************************************************************************
2 * GWcsRegistry.i - World Coordinate Projection registry class * 2 * GWcsRegistry.i - World Coordinate Projection registry class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2011-2012 by Juergen Knoedlseder * 4 + * copyright (C) 2011-2013 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 *
@@ -57,7 +57,4 @@ public: @@ -57,7 +57,4 @@ public:
57 * @brief GWcsRegistry class extension 57 * @brief GWcsRegistry class extension
58 ***************************************************************************/ 58 ***************************************************************************/
59 %extend GWcsRegistry { 59 %extend GWcsRegistry {
60 - char *__str__() {  
61 - return tochar(self->print());  
62 - }  
63 }; 60 };
pyext/GXml.i
@@ -92,9 +92,6 @@ public: @@ -92,9 +92,6 @@ public:
92 * @brief GXml class extension 92 * @brief GXml class extension
93 ***************************************************************************/ 93 ***************************************************************************/
94 %extend GXml { 94 %extend GXml {
95 - char *__str__() {  
96 - return tochar(self->print(NORMAL, 0));  
97 - }  
98 GXmlNode* __getitem__(const int& index) { 95 GXmlNode* __getitem__(const int& index) {
99 if (index >= 0 && index < self->size()) { 96 if (index >= 0 && index < self->size()) {
100 return (*self)[index]; 97 return (*self)[index];
pyext/GXmlAttribute.i
@@ -58,7 +58,4 @@ public: @@ -58,7 +58,4 @@ public:
58 * @brief GXmlAttribute class extension 58 * @brief GXmlAttribute class extension
59 ***************************************************************************/ 59 ***************************************************************************/
60 %extend GXmlAttribute { 60 %extend GXmlAttribute {
61 - char *__str__() {  
62 - return tochar(self->print());  
63 - }  
64 }; 61 };
pyext/GXmlComment.i
@@ -59,9 +59,6 @@ public: @@ -59,9 +59,6 @@ public:
59 * @brief GXmlComment class extension 59 * @brief GXmlComment class extension
60 ***************************************************************************/ 60 ***************************************************************************/
61 %extend GXmlComment { 61 %extend GXmlComment {
62 - char *__str__() {  
63 - return tochar(self->print());  
64 - }  
65 GXmlComment copy() { 62 GXmlComment copy() {
66 return (*self); 63 return (*self);
67 } 64 }
pyext/GXmlDocument.i
@@ -62,9 +62,6 @@ public: @@ -62,9 +62,6 @@ public:
62 * @brief GXmlDocument class extension 62 * @brief GXmlDocument class extension
63 ***************************************************************************/ 63 ***************************************************************************/
64 %extend GXmlDocument { 64 %extend GXmlDocument {
65 - char *__str__() {  
66 - return tochar(self->print());  
67 - }  
68 GXmlDocument copy() { 65 GXmlDocument copy() {
69 return (*self); 66 return (*self);
70 } 67 }
pyext/GXmlElement.i
@@ -62,9 +62,6 @@ public: @@ -62,9 +62,6 @@ public:
62 * @brief GXmlElement class extension 62 * @brief GXmlElement class extension
63 ***************************************************************************/ 63 ***************************************************************************/
64 %extend GXmlElement { 64 %extend GXmlElement {
65 - char *__str__() {  
66 - return tochar(self->print());  
67 - }  
68 GXmlElement copy() { 65 GXmlElement copy() {
69 return (*self); 66 return (*self);
70 } 67 }
pyext/GXmlNode.i
@@ -107,7 +107,7 @@ public: @@ -107,7 +107,7 @@ public:
107 ***************************************************************************/ 107 ***************************************************************************/
108 %extend GXmlNode { 108 %extend GXmlNode {
109 char *__str__() { 109 char *__str__() {
110 - return tochar(self->print(NORMAL, 0)); 110 + return gammalib::tochar(self->print(NORMAL, 0));
111 } 111 }
112 GXmlNode* __getitem__(const int& index) { 112 GXmlNode* __getitem__(const int& index) {
113 if (index >= 0 && index < self->size()) { 113 if (index >= 0 && index < self->size()) {
pyext/GXmlPI.i
@@ -59,9 +59,6 @@ public: @@ -59,9 +59,6 @@ public:
59 * @brief GXmlPI class extension 59 * @brief GXmlPI class extension
60 ***************************************************************************/ 60 ***************************************************************************/
61 %extend GXmlPI { 61 %extend GXmlPI {
62 - char *__str__() {  
63 - return tochar(self->print());  
64 - }  
65 GXmlPI copy() { 62 GXmlPI copy() {
66 return (*self); 63 return (*self);
67 } 64 }
pyext/GXmlText.i
@@ -59,9 +59,6 @@ public: @@ -59,9 +59,6 @@ public:
59 * @brief GXmlText class extension 59 * @brief GXmlText class extension
60 ***************************************************************************/ 60 ***************************************************************************/
61 %extend GXmlText { 61 %extend GXmlText {
62 - char *__str__() {  
63 - return tochar(self->print());  
64 - }  
65 GXmlText copy() { 62 GXmlText copy() {
66 return (*self); 63 return (*self);
67 } 64 }