Commit 07c15403c2a3e462b783be89980ed41fd4dcacf6

Authored by knodlseder
1 parent 8689a6b7

replace C headers by C++ headers

inst/cta/src/GCTAResponse.cpp
... ... @@ -23,7 +23,8 @@
23 23 #include <vector>
24 24 #include <string>
25 25 #include <unistd.h> // access() function
26   -#include <stdio.h> // fopen, fgets, fclose, etc...
  26 +//#include <stdio.h> // fopen, fgets, fclose, etc...
  27 +#include <cstdio> // fopen, fgets, fclose, etc...
27 28 #include "GModelSpatialPtsrc.hpp"
28 29 #include "GTools.hpp"
29 30 #include "GIntegral.hpp"
... ...
inst/lat/src/GLATEventList.cpp
1 1 /***************************************************************************
2 2 * GLATEventList.cpp - LAT event list class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2009-2010 by Jurgen Knodlseder *
  4 + * copyright (C) 2009-2011 by Jurgen Knodlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software; you can redistribute it and/or modify *
... ... @@ -20,7 +20,8 @@
20 20 #ifdef HAVE_CONFIG_H
21 21 #include <config.h>
22 22 #endif
23   -#include <stdio.h> // sprintf, etc...
  23 +//#include <stdio.h> // sprintf, etc...
  24 +#include <cstdio> // sprintf, etc...
24 25 #include "GLATEventList.hpp"
25 26 #include "GException.hpp"
26 27 #include "GTools.hpp"
... ...
src/app/GLog.cpp
1 1 /***************************************************************************
2 2 * GLog.cpp - Information logger *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010 by Jurgen Knodlseder *
  4 + * copyright (C) 2010-2011 by Jurgen Knodlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software; you can redistribute it and/or modify *
... ... @@ -20,13 +20,15 @@
20 20 #ifdef HAVE_CONFIG_H
21 21 #include <config.h>
22 22 #endif
  23 +#include <time.h>
  24 +#include <stdarg.h> // for "va_list" type
  25 +//#include <stdio.h> // fopen, fgets, fclose, etc...
  26 +//#include <string.h> // memcpy
23 27 #include <string>
24 28 #include <iostream>
25 29 #include <sstream>
26   -#include <time.h>
27   -#include <stdio.h> // fopen, fgets, fclose, etc...
28   -#include <string.h> // memcpy
29   -#include <stdarg.h> // for "va_list" type
  30 +#include <cstdio> // fopen, fgets, fclose, etc...
  31 +#include <cstring> // memcpy
30 32 #include "GLog.hpp"
31 33 #include "GTools.hpp"
32 34  
... ...
src/fits/GFitsTableStringCol.cpp
... ... @@ -15,8 +15,9 @@
15 15 #ifdef HAVE_CONFIG_H
16 16 #include <config.h>
17 17 #endif
  18 +//#include <string.h> // strncpy, etc...
18 19 #include <string>
19   -#include <string.h> // strncpy, etc...
  20 +#include <cstring> // strncpy, etc...
20 21 #include "GException.hpp"
21 22 #include "GTools.hpp"
22 23 #include "GFitsCfitsio.hpp"
... ...
src/support/GCsv.cpp
1 1 /***************************************************************************
2 2 * GCsv.cpp - Column separated values table class *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010 by Jurgen Knodlseder *
  4 + * copyright (C) 2010-2011 by Jurgen Knodlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software; you can redistribute it and/or modify *
... ... @@ -20,7 +20,8 @@
20 20 #ifdef HAVE_CONFIG_H
21 21 #include <config.h>
22 22 #endif
23   -#include <stdio.h> // fopen, fgets, fclose, etc...
  23 +//#include <stdio.h> // fopen, fgets, fclose, etc...
  24 +#include <cstdio> // fopen, fgets, fclose, etc...
24 25 #include "GCsv.hpp"
25 26 #include "GTools.hpp"
26 27 #include "GException.hpp"
... ...
src/xml/GXmlAttribute.cpp
... ... @@ -20,8 +20,9 @@
20 20 #ifdef HAVE_CONFIG_H
21 21 #include <config.h>
22 22 #endif
  23 +//#include <stdio.h> // fprintf, etc...
23 24 #include <iostream>
24   -#include <stdio.h> // fprintf, etc...
  25 +#include <cstdio> // fprintf, etc...
25 26 #include "GException.hpp"
26 27 #include "GXmlAttribute.hpp"
27 28  
... ...
src/xml/GXmlComment.cpp
... ... @@ -20,8 +20,9 @@
20 20 #ifdef HAVE_CONFIG_H
21 21 #include <config.h>
22 22 #endif
  23 +//#include <stdio.h> // fopen, fgets, fclose, etc...
23 24 #include <iostream>
24   -#include <stdio.h> // fopen, fgets, fclose, etc...
  25 +#include <cstdio> // fopen, fgets, fclose, etc...
25 26 #include "GException.hpp"
26 27 #include "GXmlComment.hpp"
27 28  
... ...
src/xml/GXmlDocument.cpp
1 1 /***************************************************************************
2 2 * GXmlDocument.cpp - XML document node class implementation *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010 by Jurgen Knodlseder *
  4 + * copyright (C) 2010-2011 by Jurgen Knodlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software; you can redistribute it and/or modify *
... ... @@ -20,8 +20,9 @@
20 20 #ifdef HAVE_CONFIG_H
21 21 #include <config.h>
22 22 #endif
  23 +//#include <stdio.h> // fprintf, etc...
23 24 #include <iostream>
24   -#include <stdio.h> // fprintf, etc...
  25 +#include <cstdio> // fprintf, etc...
25 26 #include "GXmlDocument.hpp"
26 27  
27 28 /* __ Method name definitions ____________________________________________ */
... ...
src/xml/GXmlElement.cpp
... ... @@ -20,9 +20,10 @@
20 20 #ifdef HAVE_CONFIG_H
21 21 #include <config.h>
22 22 #endif
  23 +//#include <stdio.h> // fopen, fgets, fclose, etc...
23 24 #include <string>
24 25 #include <iostream>
25   -#include <stdio.h> // fopen, fgets, fclose, etc...
  26 +#include <cstdio> // fopen, fgets, fclose, etc...
26 27 #include "GException.hpp"
27 28 #include "GXmlElement.hpp"
28 29  
... ...
src/xml/GXmlPI.cpp
... ... @@ -20,8 +20,9 @@
20 20 #ifdef HAVE_CONFIG_H
21 21 #include <config.h>
22 22 #endif
  23 +//#include <stdio.h> // fprintf, etc...
23 24 #include <iostream>
24   -#include <stdio.h> // fprintf, etc...
  25 +#include <cstdio> // fprintf, etc...
25 26 #include "GException.hpp"
26 27 #include "GXmlPI.hpp"
27 28  
... ...
src/xml/GXmlText.cpp
... ... @@ -20,8 +20,9 @@
20 20 #ifdef HAVE_CONFIG_H
21 21 #include <config.h>
22 22 #endif
  23 +//#include <stdio.h> // fprintf, etc...
23 24 #include <iostream>
24   -#include <stdio.h> // fprintf, etc...
  25 +#include <cstdio> // fprintf, etc...
25 26 #include "GXmlText.hpp"
26 27  
27 28 /* __ Method name definitions ____________________________________________ */
... ...