Adapt to changes in simgear/compiler.h (removal of STL_* and SG_USING_STD() macros).
This commit is contained in:
parent
e6d15f9a83
commit
4a35fedf64
78 changed files with 314 additions and 384 deletions
|
@ -38,7 +38,7 @@
|
|||
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include STL_STRING
|
||||
#include <string>
|
||||
|
||||
#include <plib/sg.h> // plib include
|
||||
|
||||
|
@ -74,9 +74,9 @@
|
|||
|
||||
#include "build.hxx"
|
||||
|
||||
SG_USING_STD(map);
|
||||
SG_USING_STD(less);
|
||||
SG_USING_STD(string);
|
||||
using std::map;
|
||||
using std::less;
|
||||
using std::string;
|
||||
|
||||
|
||||
// calculate texture coordinates for runway section using the provided
|
||||
|
|
|
@ -34,8 +34,8 @@
|
|||
#include <simgear/constants.h>
|
||||
#include <simgear/structure/exception.hxx>
|
||||
|
||||
SG_USING_STD(less);
|
||||
SG_USING_STD(map);
|
||||
using std::less;
|
||||
using std::map;
|
||||
|
||||
#include <simgear/constants.h>
|
||||
|
||||
|
|
|
@ -33,8 +33,8 @@
|
|||
|
||||
#include "lights.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
// calculate the runway light direction vector. We take the center of
|
||||
|
|
|
@ -35,15 +35,15 @@
|
|||
|
||||
#include <list>
|
||||
#include <vector>
|
||||
SG_USING_STD(vector);
|
||||
using std::vector;
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include STL_STRING
|
||||
#include STL_IOSTREAM
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
#include <simgear/constants.h>
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
|
|
|
@ -36,9 +36,6 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
|
||||
|
||||
class TGTexParams {
|
||||
|
||||
private:
|
||||
|
@ -95,7 +92,7 @@ public:
|
|||
};
|
||||
|
||||
|
||||
typedef vector < TGTexParams > texparams_list;
|
||||
typedef std::vector < TGTexParams > texparams_list;
|
||||
typedef texparams_list::iterator texparams_list_iterator;
|
||||
typedef texparams_list::const_iterator const_texparams_list_iterator;
|
||||
|
||||
|
|
|
@ -37,10 +37,10 @@
|
|||
|
||||
#include "clipper.hxx"
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include <iostream>
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
#define MASK_CLIP 1
|
||||
|
|
|
@ -39,12 +39,7 @@
|
|||
#include <Polygon/polygon.hxx>
|
||||
#include <Polygon/point2d.hxx>
|
||||
|
||||
#include STL_STRING
|
||||
#include <vector>
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
|
||||
#include <string>
|
||||
|
||||
#define TG_MAX_AREA_TYPES 128 // FIXME also defined in
|
||||
// MergerClipper/clipper.hxx
|
||||
|
@ -79,10 +74,10 @@ public:
|
|||
bool init();
|
||||
|
||||
// Load a polygon definition file
|
||||
bool load_polys(const string& path);
|
||||
bool load_polys(const std::string& path);
|
||||
|
||||
// Load an Osgb36 polygon definition file
|
||||
bool load_osgb36_polys(const string& path);
|
||||
bool load_osgb36_polys(const std::string& path);
|
||||
|
||||
// Add a polygon.
|
||||
void add_poly(int area, const TGPolygon &poly);
|
||||
|
|
|
@ -24,12 +24,12 @@
|
|||
#include <simgear/debug/logstream.hxx>
|
||||
|
||||
#include <map>
|
||||
#include STL_STRING
|
||||
#include <string>
|
||||
|
||||
#include "priorities.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(map);
|
||||
using std::string;
|
||||
using std::map;
|
||||
|
||||
typedef map<AreaType, string> area_type_map;
|
||||
typedef map<string, AreaType> area_name_map;
|
||||
|
|
|
@ -27,10 +27,7 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
|
||||
SG_USING_STD(string);
|
||||
|
||||
#include <string>
|
||||
|
||||
// Posible shape file types. Note the order of these is important and
|
||||
// defines the priority of these shapes if they should intersect. The
|
||||
|
@ -102,10 +99,10 @@ enum AreaType {
|
|||
|
||||
|
||||
// return area type from text name
|
||||
AreaType get_area_type( const string &area );
|
||||
AreaType get_area_type( const std::string &area );
|
||||
|
||||
// return text form of area name
|
||||
string get_area_name( AreaType area );
|
||||
std::string get_area_name( AreaType area );
|
||||
|
||||
#endif // _PRIORITIES_HXX
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
|
||||
#include "clipper.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
int main( int argc, char **argv ) {
|
||||
|
|
|
@ -40,8 +40,8 @@
|
|||
|
||||
#include "genobj.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
// calculate the global bounding sphere. Center is the center of the
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
#include <simgear/math/point3d.hxx>
|
||||
#include <simgear/math/sg_geodesy.hxx>
|
||||
|
@ -44,11 +42,7 @@
|
|||
#include <Main/construct.hxx>
|
||||
#include <Triangulate/triangle.hxx>
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
|
||||
|
||||
typedef vector < int_list > tex_list;
|
||||
typedef std::vector < int_list > tex_list;
|
||||
typedef tex_list::iterator tex_list_iterator;
|
||||
typedef tex_list::const_iterator const_tex_list_iterator;
|
||||
|
||||
|
|
|
@ -37,7 +37,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
|
||||
|
@ -48,10 +49,7 @@
|
|||
#include <Clipper/clipper.hxx>
|
||||
#include <Triangulate/trieles.hxx>
|
||||
|
||||
SG_USING_STD(string);
|
||||
|
||||
|
||||
typedef vector < int_list > belongs_to_list;
|
||||
typedef std::vector < int_list > belongs_to_list;
|
||||
typedef belongs_to_list::iterator belongs_to_list_iterator;
|
||||
typedef belongs_to_list::const_iterator belongs_to_list_tripoly_iterator;
|
||||
|
||||
|
@ -61,11 +59,11 @@ class TGConstruct {
|
|||
private:
|
||||
|
||||
// path to land-cover file (if any)
|
||||
string cover;
|
||||
std::string cover;
|
||||
|
||||
// paths
|
||||
string work_base;
|
||||
string output_base;
|
||||
std::string work_base;
|
||||
std::string output_base;
|
||||
|
||||
// flag indicating whether to align texture coords within the UK
|
||||
// with the UK grid
|
||||
|
@ -119,14 +117,14 @@ public:
|
|||
~TGConstruct();
|
||||
|
||||
// land cover file
|
||||
inline string get_cover () const { return cover; }
|
||||
inline void set_cover (const string &s) { cover = s; }
|
||||
inline std::string get_cover () const { return cover; }
|
||||
inline void set_cover (const std::string &s) { cover = s; }
|
||||
|
||||
// paths
|
||||
inline string get_work_base() const { return work_base; }
|
||||
inline void set_work_base( const string s ) { work_base = s; }
|
||||
inline string get_output_base() const { return output_base; }
|
||||
inline void set_output_base( const string s ) { output_base = s; }
|
||||
inline std::string get_work_base() const { return work_base; }
|
||||
inline void set_work_base( const std::string s ) { work_base = s; }
|
||||
inline std::string get_output_base() const { return output_base; }
|
||||
inline void set_output_base( const std::string s ) { output_base = s; }
|
||||
|
||||
// UK grid flag
|
||||
inline bool get_useUKGrid() const { return useUKGrid; }
|
||||
|
|
|
@ -42,8 +42,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include STL_STRING
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <plib/sg.h>
|
||||
|
@ -63,11 +63,11 @@
|
|||
|
||||
#include "construct.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(cerr);
|
||||
SG_USING_STD(endl);
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
using std::cout;
|
||||
using std::cerr;
|
||||
using std::endl;
|
||||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
vector<string> load_dirs;
|
||||
|
||||
|
|
|
@ -30,8 +30,8 @@
|
|||
#include <sys/stat.h> // for stat()
|
||||
#include <unistd.h> // for stat()
|
||||
|
||||
#include STL_STRING
|
||||
#include STL_IOSTREAM
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
|
||||
|
@ -44,9 +44,9 @@
|
|||
// #include <Match/match.hxx>
|
||||
// #include <Triangulate/triangle.hxx>
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::string;
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
// return true if file exists
|
||||
|
|
|
@ -36,8 +36,8 @@
|
|||
|
||||
#include "match.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
TGMatch::TGMatch( void ) {
|
||||
|
|
|
@ -21,12 +21,12 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include <iostream>
|
||||
#include <math.h>
|
||||
|
||||
#include "osgb36.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
using std::cout;
|
||||
|
||||
double DEG_TO_RAD = 2.0 * 3.14159265358979323846264338327950288419716939967511 / 360.0;
|
||||
double RAD_TO_DEG = 360.0 / (2.0 * 3.14159265358979323846264338327950288419716939967511);
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#include <simgear/compiler.h>
|
||||
#include <simgear/math/point3d.hxx>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include <iostream>
|
||||
|
||||
#include "osgb36.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
using std::cout;
|
||||
|
||||
static void Usage() {
|
||||
cout << "Usage is testosgb36 <lon> <lat>\n";
|
||||
|
|
|
@ -29,22 +29,22 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include STL_STRING
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(cerr);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::cerr;
|
||||
using std::endl;
|
||||
|
||||
|
||||
#define MAXBUF 1024
|
||||
#define BUSY_WAIT_TIME 30
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
string work_base = ".";
|
||||
string output_base = ".";
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include STL_STRING
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -25,10 +25,10 @@
|
|||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
|
||||
SG_USING_STD( cout );
|
||||
SG_USING_STD( cerr );
|
||||
SG_USING_STD( endl );
|
||||
SG_USING_STD( string );
|
||||
using std:: cout ;
|
||||
using std:: cerr ;
|
||||
using std:: endl ;
|
||||
using std:: string ;
|
||||
|
||||
#if defined (__sun) || defined (__CYGWIN__) || defined(sgi)
|
||||
# define WAIT_ANY (pid_t)-1
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
|
||||
#include "triangle.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
// Constructor
|
||||
|
|
|
@ -34,9 +34,6 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
|
||||
|
||||
// a segment is two integer pointers into the node list
|
||||
class TGTriEle {
|
||||
int n1, n2, n3;
|
||||
|
@ -65,7 +62,7 @@ public:
|
|||
};
|
||||
|
||||
|
||||
typedef vector < TGTriEle > triele_list;
|
||||
typedef std::vector < TGTriEle > triele_list;
|
||||
typedef triele_list::iterator triele_list_iterator;
|
||||
typedef triele_list::const_iterator const_triele_list_iterator;
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include STL_STRING
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include <simgear/constants.h>
|
||||
#include <simgear/misc/sgstream.hxx>
|
||||
|
@ -41,9 +41,9 @@
|
|||
|
||||
#include "array.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::string;
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
TGArray::TGArray( void ):
|
||||
|
|
|
@ -35,17 +35,11 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
#include <simgear/math/point3d.hxx>
|
||||
#include <simgear/math/sg_types.hxx>
|
||||
#include <simgear/misc/sgstream.hxx>
|
||||
|
||||
|
||||
SG_USING_STD(vector);
|
||||
|
||||
|
||||
#define ARRAY_SIZE_1 1201
|
||||
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#include <simgear/compiler.h>
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include <iostream>
|
||||
#include "array.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
int main( int argc, char **argv ) {
|
||||
double lon, lat;
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include <iostream>
|
||||
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h> // stat()
|
||||
|
@ -59,8 +59,8 @@
|
|||
|
||||
#include "dem.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
TGDem::TGDem() :
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#include <simgear/bucket/newbucket.hxx>
|
||||
#include <simgear/misc/sgstream.hxx>
|
||||
|
||||
#include STL_STRING
|
||||
#include <string>
|
||||
|
||||
#define DEM_SIZE 1200
|
||||
#define DEM_SIZE_1 1201
|
||||
|
|
|
@ -35,13 +35,10 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
|
||||
|
||||
// forward declaration
|
||||
class TGContourNode;
|
||||
|
||||
typedef vector < TGContourNode * > contour_kids;
|
||||
typedef std::vector < TGContourNode * > contour_kids;
|
||||
typedef contour_kids::iterator contour_kids_iterator;
|
||||
typedef contour_kids::const_iterator const_contour_kids_iterator;
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include <simgear/math/point3d.hxx>
|
||||
|
||||
#include <vector>
|
||||
SG_USING_STD(vector);
|
||||
|
||||
#include "rectangle.hxx"
|
||||
|
||||
|
@ -85,7 +84,7 @@ public:
|
|||
virtual Rectangle getBounds () const;
|
||||
|
||||
private:
|
||||
vector<Point3D> _points;
|
||||
std::vector<Point3D> _points;
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
@ -50,11 +50,11 @@ extern "C" {
|
|||
#include "trinodes.hxx"
|
||||
#include "trisegs.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
SG_USING_STD(sort);
|
||||
SG_USING_STD(copy);
|
||||
SG_USING_STD(ostream_iterator);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using std::sort;
|
||||
using std::copy;
|
||||
using std::ostream_iterator;
|
||||
|
||||
// Given a line segment specified by two endpoints p1 and p2, return
|
||||
// the slope of the line.
|
||||
|
|
|
@ -24,14 +24,14 @@
|
|||
#include <simgear/constants.h>
|
||||
#include <simgear/math/point3d.hxx>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include <iostream>
|
||||
|
||||
#include "trinodes.hxx"
|
||||
|
||||
#include "trisegs.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
// Constructor
|
||||
|
|
|
@ -36,9 +36,6 @@
|
|||
|
||||
#include "trinodes.hxx"
|
||||
|
||||
SG_USING_STD(vector);
|
||||
|
||||
|
||||
// a segment is two integer pointers into the node list
|
||||
class TGTriSeg {
|
||||
int n1, n2; // indices into point list
|
||||
|
@ -75,7 +72,7 @@ inline bool operator == (const TGTriSeg& a, const TGTriSeg& b)
|
|||
}
|
||||
|
||||
|
||||
typedef vector < TGTriSeg > triseg_list;
|
||||
typedef std::vector < TGTriSeg > triseg_list;
|
||||
typedef triseg_list::iterator triseg_list_iterator;
|
||||
typedef triseg_list::const_iterator const_triseg_list_iterator;
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include <simgear/math/point3d.hxx>
|
||||
|
||||
#include <string>
|
||||
SG_USING_STD(string);
|
||||
|
||||
#include <Polygon/polygon.hxx>
|
||||
|
||||
|
@ -109,7 +108,7 @@ Rectangle makeBounds (const TGPolygon &polygon);
|
|||
* @param s The string.
|
||||
* @return A rectangle containing the bounds.
|
||||
*/
|
||||
Rectangle parseChunk (const string &s, double delta);
|
||||
Rectangle parseChunk (const std::string &s, double delta);
|
||||
|
||||
|
||||
/**
|
||||
|
@ -118,7 +117,7 @@ Rectangle parseChunk (const string &s, double delta);
|
|||
* @param s The string.
|
||||
* @return A rectangle containing the bounds.
|
||||
*/
|
||||
Rectangle parseTile (const string &s);
|
||||
Rectangle parseTile (const std::string &s);
|
||||
|
||||
|
||||
}; // namespace tg
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <simgear/compiler.h>
|
||||
|
||||
#include <stdlib.h> // atof()
|
||||
#include STL_IOSTREAM
|
||||
#include <iostream>
|
||||
|
||||
#ifdef SG_HAVE_STD_INCLUDES
|
||||
# include <cerrno>
|
||||
|
@ -45,8 +45,8 @@
|
|||
|
||||
#include "hgt.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
TGHgt::TGHgt( int _res ) {
|
||||
|
|
|
@ -32,13 +32,11 @@
|
|||
|
||||
#include <zlib.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include <string>
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
#include <simgear/misc/sg_path.hxx>
|
||||
|
||||
SG_USING_STD(string);
|
||||
|
||||
#define MAX_HGT_SIZE 3601
|
||||
|
||||
|
||||
|
@ -65,7 +63,7 @@ private:
|
|||
int hgt_resolution;
|
||||
|
||||
bool remove_tmp_file;
|
||||
string remove_file_name;
|
||||
std::string remove_file_name;
|
||||
|
||||
public:
|
||||
|
||||
|
@ -89,10 +87,10 @@ 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 write_area( const std::string& root, SGBucket& b );
|
||||
|
||||
// write the entire area out in a simple ascii format
|
||||
bool write_whole_ascii( const string& file );
|
||||
bool write_whole_ascii( const std::string& file );
|
||||
|
||||
// Informational methods
|
||||
inline double get_originx() const { return originx; }
|
||||
|
|
|
@ -23,12 +23,12 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include <iostream>
|
||||
|
||||
#include "genfans.hxx"
|
||||
|
||||
SG_USING_STD( cout );
|
||||
SG_USING_STD( endl );
|
||||
using std:: cout ;
|
||||
using std:: endl ;
|
||||
|
||||
|
||||
// make sure the list is expanded at least to hold "n" and then push
|
||||
|
|
|
@ -38,10 +38,7 @@
|
|||
|
||||
#include <Triangulate/trieles.hxx>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
|
||||
|
||||
typedef vector < int_list > opt_list;
|
||||
typedef std::vector < int_list > opt_list;
|
||||
typedef opt_list::iterator opt_list_iterator;
|
||||
typedef opt_list::const_iterator const_opt_list_iterator;
|
||||
|
||||
|
|
|
@ -39,10 +39,7 @@
|
|||
|
||||
#include <Triangulate/trieles.hxx>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
|
||||
|
||||
typedef vector < int_list > opt_list;
|
||||
typedef std::vector < int_list > opt_list;
|
||||
typedef opt_list::iterator opt_list_iterator;
|
||||
typedef opt_list::const_iterator const_opt_list_iterator;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <zlib.h>
|
||||
|
||||
#include <list>
|
||||
#include STL_STRING
|
||||
#include <string>
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
|
||||
|
@ -45,8 +45,8 @@
|
|||
# include <Win32/mkdir.hpp>
|
||||
#endif
|
||||
|
||||
SG_USING_STD( cout );
|
||||
SG_USING_STD( endl );
|
||||
using std:: cout ;
|
||||
using std:: endl ;
|
||||
|
||||
|
||||
void write_polygon( const TGPolygon& poly, const string& base ) {
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#include <time.h>
|
||||
|
||||
#include <list>
|
||||
#include STL_STRING
|
||||
#include <string>
|
||||
|
||||
#include <simgear/math/sg_types.hxx>
|
||||
|
||||
|
|
|
@ -29,11 +29,11 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include STL_IOSTREAM
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
|
|
|
@ -23,16 +23,17 @@
|
|||
#include <simgear/compiler.h>
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
|
||||
#include STL_STRING
|
||||
#include <string>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "index.hxx"
|
||||
|
||||
using std::string;
|
||||
|
||||
static long int poly_index;
|
||||
static string poly_path;
|
||||
|
||||
|
||||
// initialize the unique polygon index counter stored in path
|
||||
bool poly_index_init( string path ) {
|
||||
poly_path = path;
|
||||
|
|
|
@ -27,13 +27,10 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
|
||||
SG_USING_STD(string);
|
||||
|
||||
#include <string>
|
||||
|
||||
// initialize the unique polygon index counter stored in path
|
||||
bool poly_index_init( string path );
|
||||
bool poly_index_init( std::string path );
|
||||
|
||||
// increment the persistant counter and return the next poly_index
|
||||
long int poly_index_next();
|
||||
|
|
|
@ -27,21 +27,19 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include <string>
|
||||
|
||||
SG_USING_STD(string);
|
||||
|
||||
inline static bool is_ocean_area( const string &area )
|
||||
inline static bool is_ocean_area( const std::string &area )
|
||||
{
|
||||
return area=="Ocean" || area=="Bay Estuary or Ocean";
|
||||
}
|
||||
|
||||
inline static bool is_void_area( const string &area )
|
||||
inline static bool is_void_area( const std::string &area )
|
||||
{
|
||||
return area=="Void Area";
|
||||
}
|
||||
|
||||
inline static bool is_null_area( const string& area )
|
||||
inline static bool is_null_area( const std::string& area )
|
||||
{
|
||||
return area=="Null";
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ extern "C" {
|
|||
#include <simgear/math/sg_geodesy.hxx>
|
||||
#include <simgear/structure/exception.hxx>
|
||||
|
||||
SG_USING_STD(endl);
|
||||
using std::endl;
|
||||
|
||||
#include <Geometry/trinodes.hxx>
|
||||
#include <poly2tri/interface.h>
|
||||
|
|
|
@ -33,21 +33,16 @@
|
|||
#include <simgear/compiler.h>
|
||||
#include <simgear/math/sg_types.hxx>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include STL_STRING
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "point2d.hxx"
|
||||
|
||||
SG_USING_STD(ostream);
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
|
||||
|
||||
#define FG_MAX_VERTICES 1500000
|
||||
|
||||
|
||||
typedef vector < point_list > polytype;
|
||||
typedef std::vector < point_list > polytype;
|
||||
typedef polytype::iterator polytype_iterator;
|
||||
typedef polytype::const_iterator const_polytype_iterator;
|
||||
|
||||
|
@ -182,14 +177,14 @@ public:
|
|||
bool is_inside( int a, int b ) const;
|
||||
|
||||
// output
|
||||
void write( const string& file ) const;
|
||||
void write( const std::string& file ) const;
|
||||
|
||||
// output
|
||||
void write_contour( const int contour, const string& file ) const;
|
||||
void write_contour( const int contour, const std::string& file ) const;
|
||||
};
|
||||
|
||||
|
||||
typedef vector < TGPolygon > poly_list;
|
||||
typedef std::vector < TGPolygon > poly_list;
|
||||
typedef poly_list::iterator poly_list_iterator;
|
||||
typedef poly_list::const_iterator const_poly_list_iterator;
|
||||
|
||||
|
@ -234,7 +229,7 @@ TGPolygon tgPolygonXor( const TGPolygon& subject, const TGPolygon& clip );
|
|||
TGPolygon tgPolygonUnion( const TGPolygon& subject, const TGPolygon& clip );
|
||||
|
||||
// Output
|
||||
ostream &operator<< (ostream &output, const TGPolygon &poly);
|
||||
std::ostream &operator<< (std::ostream &output, const TGPolygon &poly);
|
||||
|
||||
|
||||
#endif // _POLYGON_HXX
|
||||
|
|
|
@ -43,21 +43,17 @@
|
|||
|
||||
#include "polygon.hxx"
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
|
||||
|
||||
class TGSuperPoly {
|
||||
|
||||
private:
|
||||
|
||||
string material; // material/texture name
|
||||
std::string material; // material/texture name
|
||||
TGPolygon poly; // master polygon
|
||||
TGPolygon normals; // corresponding normals
|
||||
TGPolygon texcoords; // corresponding texture coordinates
|
||||
TGPolygon tris; // triangulation
|
||||
GLenum tri_mode; // GL_TRIANGLE, GL_FAN, GL_TRISTRIP, etc.
|
||||
string flag; // For various potential record keeping needs
|
||||
std::string flag; // For various potential record keeping needs
|
||||
|
||||
public:
|
||||
|
||||
|
@ -65,8 +61,8 @@ public:
|
|||
TGSuperPoly( void );
|
||||
~TGSuperPoly( void );
|
||||
|
||||
inline string get_material() const { return material; }
|
||||
inline void set_material( const string &m ) { material = m; }
|
||||
inline std::string get_material() const { return material; }
|
||||
inline void set_material( const std::string &m ) { material = m; }
|
||||
|
||||
inline TGPolygon get_poly() const { return poly; }
|
||||
inline void set_poly( const TGPolygon &p ) { poly = p; }
|
||||
|
@ -83,8 +79,8 @@ public:
|
|||
inline GLenum get_tri_mode() const { return tri_mode; }
|
||||
inline void set_tri_mode( const GLenum &m ) { tri_mode = m; }
|
||||
|
||||
inline string get_flag() const { return flag; }
|
||||
inline void set_flag( const string f ) { flag = f; }
|
||||
inline std::string get_flag() const { return flag; }
|
||||
inline void set_flag( const std::string f ) { flag = f; }
|
||||
|
||||
// erase the polygon
|
||||
void erase();
|
||||
|
@ -92,7 +88,7 @@ public:
|
|||
};
|
||||
|
||||
|
||||
typedef vector < TGSuperPoly > superpoly_list;
|
||||
typedef std::vector < TGSuperPoly > superpoly_list;
|
||||
typedef superpoly_list::iterator superpoly_list_iterator;
|
||||
typedef superpoly_list::const_iterator const_superpoly_list_iterator;
|
||||
|
||||
|
|
|
@ -6,20 +6,20 @@
|
|||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include STL_STRING
|
||||
#include STL_IOSTREAM
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <cctype>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(map);
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(istream);
|
||||
SG_USING_STD(cerr);
|
||||
SG_USING_STD(endl);
|
||||
SG_USING_STD(getline);
|
||||
using std::vector;
|
||||
using std::map;
|
||||
using std::string;
|
||||
using std::istream;
|
||||
using std::cerr;
|
||||
using std::endl;
|
||||
using std::getline;
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -6,23 +6,18 @@
|
|||
#include <simgear/compiler.h>
|
||||
|
||||
#include <vector>
|
||||
#include STL_STRING
|
||||
#include STL_IOSTREAM
|
||||
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(istream);
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
// An exception reading an E00 file.
|
||||
|
||||
class E00Exception
|
||||
{
|
||||
public:
|
||||
E00Exception (const string &message) : _message(message) {}
|
||||
virtual const string &getMessage () const { return _message; }
|
||||
E00Exception (const std::string &message) : _message(message) {}
|
||||
virtual const std::string &getMessage () const { return _message; }
|
||||
private:
|
||||
string _message;
|
||||
std::string _message;
|
||||
};
|
||||
|
||||
|
||||
|
@ -61,7 +56,7 @@ public:
|
|||
int leftPolygon;
|
||||
int rightPolygon;
|
||||
int numberOfCoordinates;
|
||||
vector<Coord> coordinates;
|
||||
std::vector<Coord> coordinates;
|
||||
bool in_polygon;
|
||||
};
|
||||
|
||||
|
@ -73,7 +68,7 @@ public:
|
|||
virtual ~CNT () {}
|
||||
int numLabels;
|
||||
Coord centroid;
|
||||
vector<int> labels;
|
||||
std::vector<int> labels;
|
||||
};
|
||||
|
||||
|
||||
|
@ -95,7 +90,7 @@ public:
|
|||
struct LOG
|
||||
{
|
||||
virtual ~LOG () {}
|
||||
vector<string> lines;
|
||||
std::vector<std::string> lines;
|
||||
};
|
||||
|
||||
|
||||
|
@ -113,7 +108,7 @@ public:
|
|||
int numArcs;
|
||||
Coord min;
|
||||
Coord max;
|
||||
vector<ARCref> arcs;
|
||||
std::vector<ARCref> arcs;
|
||||
};
|
||||
|
||||
|
||||
|
@ -122,7 +117,7 @@ public:
|
|||
struct PRJ
|
||||
{
|
||||
virtual ~PRJ () {}
|
||||
vector<string> lines;
|
||||
std::vector<std::string> lines;
|
||||
};
|
||||
|
||||
|
||||
|
@ -144,33 +139,33 @@ public:
|
|||
virtual ~IFO () {}
|
||||
struct ItemDef
|
||||
{
|
||||
string itemName;
|
||||
std::string itemName;
|
||||
int itemWidth; // followed by -1
|
||||
int itemStartPos; // followed by 4-1
|
||||
int itemOutputFormat[2];
|
||||
string itemType;
|
||||
std::string itemType;
|
||||
// -1
|
||||
// -1-1
|
||||
string seqId;
|
||||
std::string seqId;
|
||||
};
|
||||
typedef vector<string> Entry;
|
||||
string fileName;
|
||||
string isArcInfo;
|
||||
typedef std::vector<std::string> Entry;
|
||||
std::string fileName;
|
||||
std::string isArcInfo;
|
||||
int numItems;
|
||||
int altNumItems;
|
||||
int dataRecordLength;
|
||||
int numDataRecords;
|
||||
vector<ItemDef> defs;
|
||||
vector<Entry> entries;
|
||||
std::vector<ItemDef> defs;
|
||||
std::vector<Entry> entries;
|
||||
};
|
||||
|
||||
|
||||
E00 ();
|
||||
virtual ~E00 ();
|
||||
|
||||
virtual void readE00 (istream &input);
|
||||
virtual void readE00 (std::istream &input);
|
||||
|
||||
virtual string getPathName () const { return pathName; }
|
||||
virtual std::string getPathName () const { return pathName; }
|
||||
|
||||
virtual int nPoints () const { return lab_section.size(); }
|
||||
virtual int nLines () const { return arc_section.size(); }
|
||||
|
@ -181,28 +176,28 @@ public:
|
|||
virtual const LAB &getLAB (int i) const { return lab_section[i-1]; }
|
||||
virtual const PAL &getPAL (int i) const { return pal_section[i-1]; }
|
||||
virtual const IFO &getIFO (int i) const { return ifo_section[i-1]; }
|
||||
virtual const IFO * getIFO (const string &name) const;
|
||||
virtual const string * getIFOItem (const string &fileName, int entry,
|
||||
const string &itemName) const;
|
||||
virtual const string * getIFOItemType (const string &fileName,
|
||||
const string &itemName) const;
|
||||
virtual const IFO * getIFO (const std::string &name) const;
|
||||
virtual const std::string * getIFOItem (const std::string &fileName, int entry,
|
||||
const std::string &itemName) const;
|
||||
virtual const std::string * getIFOItemType (const std::string &fileName,
|
||||
const std::string &itemName) const;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
virtual ARC &_getARC (int i) { return arc_section[i-1]; }
|
||||
|
||||
string pathName;
|
||||
vector<ARC> arc_section;
|
||||
vector<CNT> cnt_section;
|
||||
vector<LAB> lab_section;
|
||||
vector<LOG> log_section;
|
||||
vector<PAL> pal_section;
|
||||
vector<PRJ> prj_section;
|
||||
vector<TOL> tol_section;
|
||||
vector<IFO> ifo_section;
|
||||
std::string pathName;
|
||||
std::vector<ARC> arc_section;
|
||||
std::vector<CNT> cnt_section;
|
||||
std::vector<LAB> lab_section;
|
||||
std::vector<LOG> log_section;
|
||||
std::vector<PAL> pal_section;
|
||||
std::vector<PRJ> prj_section;
|
||||
std::vector<TOL> tol_section;
|
||||
std::vector<IFO> ifo_section;
|
||||
|
||||
mutable istream * _input;
|
||||
mutable std::istream * _input;
|
||||
|
||||
void postProcess ();
|
||||
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
#include <simgear/misc/sgstream.hxx>
|
||||
#include "e00.hxx"
|
||||
|
||||
SG_USING_STD(cerr);
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cerr;
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
int main (int ac, const char ** av)
|
||||
{
|
||||
|
|
|
@ -5,13 +5,13 @@
|
|||
// Use at your own risk.
|
||||
|
||||
#include <simgear/compiler.h>
|
||||
#include STL_STRING
|
||||
#include <string>
|
||||
|
||||
|
||||
#include "landcover.hxx"
|
||||
|
||||
SG_USING_STD(ifstream);
|
||||
SG_USING_STD(string);
|
||||
using std::ifstream;
|
||||
using std::string;
|
||||
|
||||
LandCover::LandCover( const string &filename )
|
||||
{
|
||||
|
|
|
@ -9,12 +9,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include STL_FSTREAM
|
||||
|
||||
SG_USING_STD(ifstream);
|
||||
SG_USING_STD(string);
|
||||
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
|
||||
/**
|
||||
* Query class for the USGS worldwide 30 arcsec land-cover image.
|
||||
|
@ -65,7 +61,7 @@ class LandCover {
|
|||
|
||||
public:
|
||||
|
||||
LandCover( const string &filename );
|
||||
LandCover( const std::string &filename );
|
||||
virtual ~LandCover ();
|
||||
|
||||
virtual int getValue (long x, long y) const;
|
||||
|
@ -73,7 +69,7 @@ public:
|
|||
virtual const char *getDescUSGS (int value) const;
|
||||
|
||||
private:
|
||||
mutable ifstream * _input;
|
||||
mutable std::ifstream * _input;
|
||||
long WIDTH;
|
||||
long HEIGHT;
|
||||
};
|
||||
|
|
|
@ -7,15 +7,15 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include STL_STRING
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "landcover.hxx"
|
||||
|
||||
SG_USING_STD(cerr);
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
SG_USING_STD(string);
|
||||
using std::cerr;
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using std::string;
|
||||
|
||||
int
|
||||
main (int ac, const char * av[])
|
||||
|
|
|
@ -3,16 +3,16 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include STL_FSTREAM
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
|
||||
#include <simgear/misc/zfstream.hxx> // ios_binary
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(ifstream);
|
||||
SG_USING_STD(istream);
|
||||
using std::string;
|
||||
using std::ifstream;
|
||||
using std::istream;
|
||||
|
||||
#include "vpfbase.hxx"
|
||||
#include "table.hxx"
|
||||
|
|
|
@ -3,16 +3,16 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include STL_STRING
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(cerr);
|
||||
SG_USING_STD(endl);
|
||||
SG_USING_STD(ostream);
|
||||
SG_USING_STD(string);
|
||||
using std::cout;
|
||||
using std::cerr;
|
||||
using std::endl;
|
||||
using std::ostream;
|
||||
using std::string;
|
||||
|
||||
#include "vpf.hxx"
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include STL_STRING
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
|
@ -41,9 +41,9 @@
|
|||
|
||||
#include "point2d.hxx"
|
||||
|
||||
SG_USING_STD(endl);
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(string);
|
||||
using std::endl;
|
||||
using std::cout;
|
||||
using std::string;
|
||||
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include STL_IOSTREAM
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
|
@ -35,9 +35,9 @@
|
|||
|
||||
#include <Array/array.hxx>
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
SG_USING_STD(string);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using std::string;
|
||||
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include STL_IOSTREAM
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
|
@ -40,9 +40,9 @@
|
|||
# include <Win32/mkdir.hpp>
|
||||
#endif
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
SG_USING_STD(string);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using std::string;
|
||||
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include STL_IOSTREAM
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
|
@ -40,9 +40,9 @@
|
|||
# include <Win32/mkdir.hpp>
|
||||
#endif
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
SG_USING_STD(string);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using std::string;
|
||||
|
||||
|
||||
int data[3601][3601];
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include STL_STRING
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -32,8 +32,8 @@
|
|||
|
||||
#include <DEM/dem.hxx>
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(string);
|
||||
using std::cout;
|
||||
using std::string;
|
||||
|
||||
|
||||
// static float dem_data[DEM_SIZE_1][DEM_SIZE_1];
|
||||
|
|
|
@ -33,15 +33,15 @@
|
|||
#include <simgear/debug/logstream.hxx>
|
||||
#include <simgear/misc/sgstream.hxx>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include STL_STRING
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
SG_USING_STD(cerr);
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
using std::cerr;
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
#include <Geometry/rectangle.hxx>
|
||||
#include <Geometry/util.hxx>
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include STL_IOSTREAM
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include <zlib.h>
|
||||
|
||||
|
@ -47,9 +47,9 @@
|
|||
# define FLIP
|
||||
#endif
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(cin);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::cin;
|
||||
using std::endl;
|
||||
|
||||
// write result to unique file name
|
||||
void write_result( const TGPolygon& result ) {
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include STL_IOSTREAM
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
|
@ -39,9 +39,9 @@
|
|||
|
||||
#include "gshhs_split.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
SG_USING_STD(string);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using std::string;
|
||||
|
||||
|
||||
// process shape front end ... split shape into lon = -180 ... 180,
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include STL_STRING
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include <zlib.h>
|
||||
|
||||
|
@ -46,9 +46,9 @@
|
|||
#include "gshhs.h"
|
||||
#include "gshhs_split.hxx"
|
||||
|
||||
SG_USING_STD( string );
|
||||
SG_USING_STD( cout );
|
||||
SG_USING_STD( endl );
|
||||
using std:: string ;
|
||||
using std:: cout ;
|
||||
using std:: endl ;
|
||||
|
||||
// hackity, hackity, hack ... cough cough
|
||||
#ifdef i386
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
#include "merger.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
using std::cout;
|
||||
|
||||
// Constructor
|
||||
FGMerger::FGMerger( void ) {
|
||||
|
|
|
@ -37,11 +37,7 @@
|
|||
#include <Polygon/polygon.hxx>
|
||||
#include <Polygon/names.hxx>
|
||||
|
||||
#include STL_STRING
|
||||
#include <vector>
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
#include <string>
|
||||
|
||||
#define FG_MAX_AREA_TYPES 128 // FIXME: also defined in clipper.hxx
|
||||
|
||||
|
@ -70,14 +66,14 @@ public:
|
|||
// Initialize Clipper (allocate and/or connect structures)
|
||||
bool init();
|
||||
|
||||
bool load_polys(const string& path, FGPolyList& clipped);
|
||||
bool load_polys(const std::string& path, FGPolyList& clipped);
|
||||
// Merge all polygons of the given area
|
||||
void merge(FGPolyList& clipped);
|
||||
|
||||
// Clip all merged polygons with the land mass one
|
||||
void clip(FGPolyList& subject, FGPolyList& clip);
|
||||
|
||||
void write(FGPolyList& subject, string& file);
|
||||
void write(FGPolyList& subject, std::string& file);
|
||||
|
||||
inline FGPolyList get_polys_clipped() const { return polys_subject; }
|
||||
|
||||
|
|
|
@ -33,8 +33,8 @@
|
|||
|
||||
#include "merger.hxx"
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
int main( int argc, char **argv ) {
|
||||
point2d global_min, global_max;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
|
@ -45,9 +45,9 @@
|
|||
# include <Win32/mkdir.hpp>
|
||||
#endif
|
||||
|
||||
SG_USING_STD( cout );
|
||||
SG_USING_STD( string );
|
||||
SG_USING_STD( map );
|
||||
using std:: cout ;
|
||||
using std:: string ;
|
||||
using std:: map ;
|
||||
|
||||
int line_width=50;
|
||||
string line_width_col;
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
#include <plib/sg.h>
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
#include <simgear/math/sg_geodesy.hxx>
|
||||
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include STL_IOSTREAM
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include <simgear/bucket/newbucket.hxx>
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
|
@ -44,9 +44,9 @@
|
|||
#include <Polygon/index.hxx>
|
||||
#include <Polygon/polygon.hxx>
|
||||
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::string;
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
|
||||
const int MAX_XDIV = 16;
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include <iostream>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <simgear/math/sg_geodesy.hxx>
|
||||
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
int main( int argc, char **argv ) {
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include <string>
|
||||
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
|
||||
|
@ -38,8 +38,8 @@
|
|||
# include <Win32/mkdir.hpp>
|
||||
#endif
|
||||
|
||||
SG_USING_STD( cout );
|
||||
SG_USING_STD( string );
|
||||
using std:: cout ;
|
||||
using std:: string ;
|
||||
|
||||
// return the type of the shapefile record
|
||||
std::string get_shapefile_type(DBFHandle& hDBF, int rec) {
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include STL_IOSTREAM
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
|
@ -49,10 +49,10 @@
|
|||
# include <Win32/mkdir.hpp>
|
||||
#endif
|
||||
|
||||
SG_USING_STD( cout );
|
||||
SG_USING_STD( endl );
|
||||
SG_USING_STD( string );
|
||||
SG_USING_STD( map );
|
||||
using std:: cout ;
|
||||
using std:: endl ;
|
||||
using std:: string ;
|
||||
using std:: map ;
|
||||
|
||||
map<string,string> area_code_map;
|
||||
bool use_area_code_map = false;
|
||||
|
|
|
@ -34,15 +34,15 @@
|
|||
#include <simgear/misc/sgstream.hxx>
|
||||
#include <simgear/timing/timestamp.hxx>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include STL_STRING
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
SG_USING_STD(cerr);
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
SG_USING_STD(string);
|
||||
SG_USING_STD(vector);
|
||||
using std::cerr;
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
#include <Geometry/line.hxx>
|
||||
#include <Geometry/util.hxx>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include <iostream>
|
||||
|
||||
using std::istream;
|
||||
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_FSTREAM
|
||||
#include <fstream>
|
||||
#include <streambuf>
|
||||
|
||||
#include "terra.h"
|
||||
|
||||
SG_USING_STD(cerr);
|
||||
SG_USING_STD(cout);
|
||||
SG_USING_STD(endl);
|
||||
SG_USING_STD(istream);
|
||||
SG_USING_STD(ostream);
|
||||
SG_USING_STD(ofstream);
|
||||
SG_USING_STD(streampos);
|
||||
using std::cerr;
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using std::istream;
|
||||
using std::ostream;
|
||||
using std::ofstream;
|
||||
using std::streampos;
|
||||
|
||||
namespace Terra {
|
||||
|
||||
|
|
|
@ -13,14 +13,14 @@
|
|||
#include <Polygon/index.hxx>
|
||||
#include <Polygon/polygon.hxx>
|
||||
|
||||
#include STL_IOSTREAM
|
||||
#include <iostream>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <vector>
|
||||
SG_USING_STD(vector);
|
||||
SG_USING_STD(cerr);
|
||||
SG_USING_STD(endl);
|
||||
using std::vector;
|
||||
using std::cerr;
|
||||
using std::endl;
|
||||
|
||||
static string prog_name;
|
||||
static string work_dir = ".";
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
#include STL_STRING
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
Loading…
Reference in a new issue