1
0
Fork 0

Adapt to current SimGear version (<iostream> include changes by fredb)

This commit is contained in:
Ralf Gerlich 2008-06-17 11:06:35 +02:00
parent 4a96ed8af2
commit e813c093fc
31 changed files with 91 additions and 19 deletions

View file

@ -40,6 +40,10 @@ SG_USING_STD(vector);
#include <stdio.h>
#include <string.h>
#include STL_STRING
#include STL_IOSTREAM
SG_USING_STD(cout);
SG_USING_STD(endl);
#include <simgear/constants.h>
#include <simgear/bucket/newbucket.hxx>

View file

@ -37,7 +37,10 @@
#include "clipper.hxx"
#include STL_IOSTREAM
SG_USING_STD(cout);
SG_USING_STD(endl);
#define MASK_CLIP 1

View file

@ -64,6 +64,7 @@
#include "construct.hxx"
SG_USING_STD(cout);
SG_USING_STD(cerr);
SG_USING_STD(endl);
SG_USING_STD(string);
SG_USING_STD(vector);

View file

@ -24,11 +24,14 @@
# include <config.h>
#endif
#include <simgear/compiler.h>
#include <stdlib.h> // for system()
#include <sys/stat.h> // for stat()
#include <unistd.h> // for stat()
#include <string>
#include STL_STRING
#include STL_IOSTREAM
#include <simgear/bucket/newbucket.hxx>
@ -41,6 +44,7 @@
// #include <Match/match.hxx>
// #include <Triangulate/triangle.hxx>
SG_USING_STD(string);
SG_USING_STD(cout);
SG_USING_STD(endl);

View file

@ -28,6 +28,7 @@
SG_USING_STD( cout );
SG_USING_STD( cerr );
SG_USING_STD( endl );
SG_USING_STD( string );
#if defined (__sun) || defined (__CYGWIN__) || defined(sgi)
# define WAIT_ANY (pid_t)-1

View file

@ -27,6 +27,7 @@
#include <simgear/compiler.h>
#include STL_IOSTREAM
#include STL_STRING
#include <simgear/constants.h>

View file

@ -1,5 +1,7 @@
#include <simgear/compiler.h>
#include <simgear/bucket/newbucket.hxx>
#include STL_IOSTREAM
#include "array.hxx"
SG_USING_STD(cout);

View file

@ -33,6 +33,8 @@
#include <stdio.h>
#include <string.h>
#include STL_IOSTREAM
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> // stat()
#endif

View file

@ -34,9 +34,11 @@
# include <config.h>
#endif
#include <simgear/compiler.h>
#include <simgear/bucket/newbucket.hxx>
#include <simgear/misc/sgstream.hxx>
#include STL_STRING
#define DEM_SIZE 1200
#define DEM_SIZE_1 1201
@ -82,7 +84,7 @@ private:
int z_units; // 1 = feet, 2 = meters
// return next token from input stream
string next_token();
std::string next_token();
// return next integer from input stream
int next_int();
@ -97,13 +99,13 @@ public:
// Constructor
TGDem();
TGDem( const string& file );
TGDem( const std::string& file );
// Destructor
~TGDem();
// open a DEM file (use "-" if input is coming from stdin)
bool open ( const string& file );
bool open ( const std::string& file );
// close a DEM file
bool close();
@ -120,7 +122,7 @@ public:
// write out the area of data covered by the specified bucket.
// Data is written out column by column starting at the lower left
// hand corner.
bool write_area( const string& root, SGBucket& b, bool compress );
bool write_area( const std::string& root, SGBucket& b, bool compress );
// Informational methods
inline double get_originx() const { return originx; }

View file

@ -20,10 +20,12 @@
//
// $Id: trisegs.cxx,v 1.10 2004-11-19 22:25:50 curt Exp $
#include <simgear/compiler.h>
#include <simgear/constants.h>
#include <simgear/math/point3d.hxx>
#include STL_IOSTREAM
#include "trinodes.hxx"
#include "trisegs.hxx"

View file

@ -28,6 +28,7 @@
#include <simgear/compiler.h>
#include <stdlib.h> // atof()
#include STL_IOSTREAM
#ifdef SG_HAVE_STD_INCLUDES
# include <cerrno>

View file

@ -30,6 +30,10 @@
#include <simgear/compiler.h>
#include STL_STRING
#include STL_IOSTREAM
SG_USING_STD(cout);
SG_USING_STD(endl);
#include <simgear/bucket/newbucket.hxx>
#include <simgear/debug/logstream.hxx>

View file

@ -11,6 +11,7 @@
#include <cctype>
#include <stdio.h>
#include <stdlib.h>
SG_USING_STD(vector);
SG_USING_STD(map);

View file

@ -4,6 +4,8 @@
# include <config.h>
#endif
#include <stdlib.h>
#include <simgear/misc/sgstream.hxx>
#include "e00.hxx"

View file

@ -1,14 +1,18 @@
// table.cxx - implementation of VpfTable
// This file is released into the Public Domain, and comes with NO WARRANTY!
#include <string>
#include <fstream>
#include <simgear/compiler.h>
#include STL_STRING
#include STL_FSTREAM
#include <simgear/misc/zfstream.hxx> // ios_binary
using std::string;
using std::ifstream;
using std::istream;
#include <stdlib.h>
SG_USING_STD(string);
SG_USING_STD(ifstream);
SG_USING_STD(istream);
#include "vpfbase.hxx"
#include "table.hxx"

View file

@ -1,14 +1,18 @@
// vpf-topology.cxx - program to dump a topology to output.
// This file is released into the Public Domain, and comes with NO WARRANTY!
#include <iostream>
using std::cout;
using std::cerr;
using std::endl;
using std::ostream;
#include <simgear/compiler.h>
#include <string>
using std::string;
#include STL_IOSTREAM
#include STL_STRING
#include <stdlib.h>
SG_USING_STD(cout);
SG_USING_STD(cerr);
SG_USING_STD(endl);
SG_USING_STD(ostream);
SG_USING_STD(string);
#include "vpf.hxx"

View file

@ -27,6 +27,7 @@
#include <simgear/compiler.h>
#include STL_IOSTREAM
#include STL_STRING
#include <simgear/bucket/newbucket.hxx>
@ -40,6 +41,7 @@
#include "point2d.hxx"
SG_USING_STD(endl);
SG_USING_STD(cout);
SG_USING_STD(string);

View file

@ -27,6 +27,7 @@
#include <simgear/compiler.h>
#include STL_STRING
#include STL_IOSTREAM
#include <simgear/bucket/newbucket.hxx>
#include <simgear/debug/logstream.hxx>
@ -35,6 +36,7 @@
#include <Array/array.hxx>
SG_USING_STD(cout);
SG_USING_STD(endl);
SG_USING_STD(string);

View file

@ -28,6 +28,7 @@
#include <simgear/compiler.h>
#include STL_STRING
#include STL_IOSTREAM
#include <simgear/bucket/newbucket.hxx>
#include <simgear/debug/logstream.hxx>
@ -40,6 +41,7 @@
#endif
SG_USING_STD(cout);
SG_USING_STD(endl);
SG_USING_STD(string);

View file

@ -28,6 +28,7 @@
#include <simgear/compiler.h>
#include STL_STRING
#include STL_IOSTREAM
#include <simgear/bucket/newbucket.hxx>
#include <simgear/debug/logstream.hxx>
@ -40,6 +41,7 @@
#endif
SG_USING_STD(cout);
SG_USING_STD(endl);
SG_USING_STD(string);

View file

@ -21,15 +21,19 @@
// $Id: deminfo.cxx,v 1.7 2004-11-19 22:25:51 curt Exp $
//
#include <simgear/compiler.h>
#include STL_IOSTREAM
#include STL_STRING
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <DEM/dem.hxx>
SG_USING_STD(cout);
SG_USING_STD(string);
// static float dem_data[DEM_SIZE_1][DEM_SIZE_1];

View file

@ -39,6 +39,7 @@
SG_USING_STD(cerr);
SG_USING_STD(cout);
SG_USING_STD(endl);
SG_USING_STD(string);
SG_USING_STD(vector);

View file

@ -30,6 +30,7 @@
#include <simgear/compiler.h>
#include STL_STRING
#include STL_IOSTREAM
#include <zlib.h>
@ -48,6 +49,7 @@
SG_USING_STD(cout);
SG_USING_STD(cin);
SG_USING_STD(endl);
// write result to unique file name
void write_result( const TGPolygon& result ) {

View file

@ -27,6 +27,7 @@
#include <simgear/compiler.h>
#include STL_STRING
#include STL_IOSTREAM
#include <simgear/bucket/newbucket.hxx>
#include <simgear/debug/logstream.hxx>
@ -39,6 +40,7 @@
#include "gshhs_split.hxx"
SG_USING_STD(cout);
SG_USING_STD(endl);
SG_USING_STD(string);

View file

@ -29,6 +29,7 @@
#include <simgear/compiler.h>
#include STL_IOSTREAM
#include STL_STRING
#include <zlib.h>
@ -47,6 +48,7 @@
SG_USING_STD( string );
SG_USING_STD( cout );
SG_USING_STD( endl );
// hackity, hackity, hack ... cough cough
#ifdef i386

View file

@ -30,6 +30,7 @@
#include <stdlib.h>
#include STL_STRING
#include STL_IOSTREAM
#include <simgear/bucket/newbucket.hxx>
#include <simgear/debug/logstream.hxx>
@ -45,6 +46,7 @@
SG_USING_STD(string);
SG_USING_STD(cout);
SG_USING_STD(endl);
const int MAX_XDIV = 16;

View file

@ -1,5 +1,9 @@
// calc wgs84 offset given starting lon/lat/alt, radial and distance
#include <simgear/compiler.h>
#include STL_IOSTREAM
#include <stdio.h>
#include <stdlib.h>

View file

@ -30,6 +30,7 @@
#include <simgear/compiler.h>
#include STL_STRING
#include STL_IOSTREAM
#include <map>
#include <simgear/debug/logstream.hxx>
@ -49,6 +50,7 @@
#endif
SG_USING_STD( cout );
SG_USING_STD( endl );
SG_USING_STD( string );
SG_USING_STD( map );

View file

@ -40,6 +40,7 @@
SG_USING_STD(cerr);
SG_USING_STD(cout);
SG_USING_STD(endl);
SG_USING_STD(string);
SG_USING_STD(vector);

View file

@ -1,6 +1,8 @@
#ifndef ARRAY_INCLUDED // -*- C++ -*-
#define ARRAY_INCLUDED
#include <string.h>
//
// Array classes
//

View file

@ -13,10 +13,14 @@
#include <Polygon/index.hxx>
#include <Polygon/polygon.hxx>
#include STL_IOSTREAM
#include <stdlib.h>
#include <vector>
SG_USING_STD(vector);
SG_USING_STD(cerr);
SG_USING_STD(endl);
static string prog_name;
static string work_dir = ".";