1
0
Fork 0

FG_ to SG_ namespace changes.

This commit is contained in:
curt 2001-03-23 22:59:18 +00:00
parent 8497f9b1ac
commit 5958389026
80 changed files with 151 additions and 151 deletions

View file

@ -39,7 +39,7 @@
#include "runways.hxx"
FG_USING_NAMESPACE(std);
SG_USING_NAMESPACE(std);
FGRunway::FGRunway() {

View file

@ -38,7 +38,7 @@
#ifdef SG_HAVE_STD_INCLUDES
# include <istream>
#elif defined( FG_HAVE_NATIVE_SGI_COMPILERS )
#elif defined( SG_HAVE_NATIVE_SGI_COMPILERS )
# include <iostream.h>
#elif defined( __BORLANDC__ )
# include <iostream>
@ -54,11 +54,11 @@
#include <mk4str.h>
#undef NDEBUG
FG_USING_STD(string);
FG_USING_STD(vector);
SG_USING_STD(string);
SG_USING_STD(vector);
#if ! defined( FG_HAVE_NATIVE_SGI_COMPILERS )
FG_USING_STD(istream);
#if ! defined( SG_HAVE_NATIVE_SGI_COMPILERS )
SG_USING_STD(istream);
#endif

View file

@ -48,7 +48,7 @@
#include "simple.hxx"
FG_USING_NAMESPACE(std);
SG_USING_NAMESPACE(std);
FGAirports::FGAirports( const string& file ) {
// open the specified database readonly

View file

@ -40,7 +40,7 @@
#ifdef SG_HAVE_STD_INCLUDES
# include <istream>
#elif defined( FG_HAVE_NATIVE_SGI_COMPILERS )
#elif defined( SG_HAVE_NATIVE_SGI_COMPILERS )
# include <iostream.h>
#elif defined( __BORLANDC__ )
# include <iostream>
@ -60,11 +60,11 @@
# undef NDEBUG
#endif
FG_USING_STD(string);
FG_USING_STD(set);
SG_USING_STD(string);
SG_USING_STD(set);
#if ! defined( FG_HAVE_NATIVE_SGI_COMPILERS )
FG_USING_STD(istream);
#if ! defined( SG_HAVE_NATIVE_SGI_COMPILERS )
SG_USING_STD(istream);
#endif

View file

@ -35,7 +35,7 @@
#include <FDM/flight.hxx>
#include <Controls/controls.hxx>
FG_USING_STD(string);
SG_USING_STD(string);
// Defines

View file

@ -59,9 +59,9 @@
#include "hud_opts.hxx"
FG_USING_STD(deque);
FG_USING_STD(vector);
FG_USING_NAMESPACE(std);
SG_USING_STD(deque);
SG_USING_STD(vector);
SG_USING_NAMESPACE(std);
// some of Norman's crazy optimizations. :-)

View file

@ -49,8 +49,8 @@
#include <Main/fgfs.hxx>
FG_USING_STD(vector);
FG_USING_STD(map);
SG_USING_STD(vector);
SG_USING_STD(map);
class FGPanelInstrument;

View file

@ -43,11 +43,11 @@
#include "steam.hxx"
#include "panel_io.hxx"
#if !defined (FG_HAVE_NATIVE_SGI_COMPILERS)
FG_USING_STD(istream);
FG_USING_STD(ifstream);
#if !defined (SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(istream);
SG_USING_STD(ifstream);
#endif
FG_USING_STD(string);
SG_USING_STD(string);

View file

@ -35,8 +35,8 @@
#include "panel.hxx"
#if !defined (FG_HAVE_NATIVE_SGI_COMPILERS)
FG_USING_STD(istream);
#if !defined (SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(istream);
#endif
extern FGPanel * fgReadPanel (istream &input);

View file

@ -23,7 +23,7 @@
# include <config.h>
#endif
#if defined( FG_HAVE_NATIVE_SGI_COMPILERS )
#if defined( SG_HAVE_NATIVE_SGI_COMPILERS )
# include <iostream.h>
#else
# include <iostream>
@ -36,7 +36,7 @@
#include <Main/bfi.hxx>
#include <NetworkOLK/features.hxx>
FG_USING_NAMESPACE(std);
SG_USING_NAMESPACE(std);
#include "radiostack.hxx"
#include "steam.hxx"

View file

@ -34,7 +34,7 @@
#include <time.h>
#include STL_STRING
FG_USING_NAMESPACE(std);
SG_USING_NAMESPACE(std);
/**

View file

@ -54,8 +54,8 @@
#include "10520d.hxx"
FG_USING_STD(cout);
FG_USING_STD(endl);
SG_USING_STD(cout);
SG_USING_STD(endl);
// ------------------------------------------------------------------------
// CODE

View file

@ -95,7 +95,7 @@
#include "IO360.hxx"
FG_USING_STD(cout);
SG_USING_STD(cout);
// Static utility functions

View file

@ -56,7 +56,7 @@
#include <fstream>
#include <math.h>
FG_USING_STD(ofstream);
SG_USING_STD(ofstream);
class FGNewEngine {

View file

@ -47,7 +47,7 @@ INCLUDES
#ifdef FGFS
# include <simgear/compiler.h>
# include STL_STRING
FG_USING_STD(string);
SG_USING_STD(string);
#else
# include <string>
#endif

View file

@ -38,8 +38,8 @@
#include <FDM/LaRCsim/ls_constants.h>
#include <FDM/LaRCsim/ls_geodesy.h>
FG_USING_STD(cout);
FG_USING_STD(endl);
SG_USING_STD(cout);
SG_USING_STD(endl);
LaRCsimIC::LaRCsimIC(void) {

View file

@ -8,7 +8,7 @@
#include "uiuc_parsefile.h"
#include "uiuc_aircraft.h"
FG_USING_STD(istrstream);
SG_USING_STD(istrstream);
int uiuc_1DdataFileReader( string file_name,
double x[100],

View file

@ -8,7 +8,7 @@
#include "uiuc_parsefile.h"
#include "uiuc_aircraft.h"
FG_USING_STD(istrstream);
SG_USING_STD(istrstream);
void uiuc_2DdataFileReader( string file_name,
double x[100][100],

View file

@ -101,10 +101,10 @@
#include "uiuc_parsefile.h"
FG_USING_STD(map);
FG_USING_STD(iostream);
SG_USING_STD(map);
SG_USING_STD(iostream);
#if defined ( macintosh ) || defined ( _MSC_VER )
FG_USING_STD(ofstream);
SG_USING_STD(ofstream);
#endif

View file

@ -71,7 +71,7 @@
#include "uiuc_engine.h"
FG_USING_STD(cerr);
SG_USING_STD(cerr);
void uiuc_engine()
{

View file

@ -102,12 +102,12 @@
#include "uiuc_menu.h"
FG_USING_STD(cerr);
FG_USING_STD(cout);
FG_USING_STD(endl);
SG_USING_STD(cerr);
SG_USING_STD(cout);
SG_USING_STD(endl);
#ifndef _MSC_VER
FG_USING_STD(exit);
SG_USING_STD(exit);
#endif
bool check_float(string &token)

View file

@ -7,10 +7,10 @@
#include <list>
#include <fstream>
FG_USING_STD(list);
FG_USING_STD(string);
FG_USING_STD(getline);
FG_USING_STD(ifstream);
SG_USING_STD(list);
SG_USING_STD(string);
SG_USING_STD(getline);
SG_USING_STD(ifstream);
#define DELIMITERS " \t"
#define COMMENT "#"

View file

@ -72,7 +72,7 @@
#include "uiuc_recorder.h"
FG_USING_STD(endl); // -dw
SG_USING_STD(endl); // -dw
void uiuc_recorder( double dt )
{

View file

@ -78,11 +78,11 @@ for information.
#include "uiuc_warnings_errors.h"
FG_USING_STD (cerr);
FG_USING_STD (endl);
SG_USING_STD (cerr);
SG_USING_STD (endl);
#ifndef _MSC_VER
FG_USING_STD (exit);
SG_USING_STD (exit);
#endif
void uiuc_warnings_errors(int errorCode, string line)

View file

@ -6,7 +6,7 @@
#include <string>
#include <iostream>
FG_USING_STD(string);
SG_USING_STD(string);
void uiuc_warnings_errors(int errorCode, string line);

View file

@ -75,8 +75,8 @@
#include "uiuc_betaprobe.h"
#include <FDM/LaRCsim/ls_generic.h>
FG_USING_STD(cout);
FG_USING_STD(endl);
SG_USING_STD(cout);
SG_USING_STD(endl);
extern "C" void uiuc_init_aeromodel ();
extern "C" void uiuc_force_moment(double dt);

View file

@ -94,9 +94,9 @@
#include <Main/fgfs.hxx>
FG_USING_STD(list);
FG_USING_STD(vector);
FG_USING_STD(string);
SG_USING_STD(list);
SG_USING_STD(vector);
SG_USING_STD(string);
typedef double FG_VECTOR_3[3];

View file

@ -54,8 +54,8 @@
#include <iostream>
#include <math.h>
FG_USING_STD(cout);
FG_USING_STD(endl);
SG_USING_STD(cout);
SG_USING_STD(endl);
// ------------------------------------------------------------------------
// CODE

View file

@ -86,10 +86,10 @@
#include "net_dlg.hxx"
#include "sgVec3Slider.hxx"
FG_USING_STD(string);
SG_USING_STD(string);
#ifndef FG_HAVE_NATIVE_SGI_COMPILERS
FG_USING_STD(cout);
#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
SG_USING_STD(cout);
#endif
// main.cxx hack, should come from an include someplace

View file

@ -78,10 +78,10 @@
#include "gui.h"
#include "gui_local.hxx"
FG_USING_STD(string);
SG_USING_STD(string);
#ifndef FG_HAVE_NATIVE_SGI_COMPILERS
FG_USING_STD(cout);
#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
SG_USING_STD(cout);
#endif
/* --------------------------------------------------------------------

View file

@ -45,7 +45,7 @@ public:
a.owns = 0;
}
#ifdef _FG_MEMBER_TEMPLATES
#ifdef _SG_MEMBER_TEMPLATES
template <class T> auto_ptr(const auto_ptr<T>& a)
: ptr(a.ptr), owns(a.owns) {
a.owns = 0;
@ -62,7 +62,7 @@ public:
}
}
#ifdef _FG_MEMBER_TEMPLATES
#ifdef _SG_MEMBER_TEMPLATES
template <class T> auto_ptr& operator = (const auto_ptr<T>& a) {
if (&a != this) {
if (owns)

View file

@ -42,8 +42,8 @@
#include "joystick.hxx"
FG_USING_STD(string);
FG_USING_STD(cout);
SG_USING_STD(string);
SG_USING_STD(cout);
#ifdef WIN32
static const int MAX_JOYSTICKS = 2;

View file

@ -52,7 +52,7 @@
#include "fg_init.hxx"
#include "fg_props.hxx"
FG_USING_NAMESPACE(std);
SG_USING_NAMESPACE(std);
#include "bfi.hxx"

View file

@ -27,7 +27,7 @@
#include <simgear/compiler.h>
FG_USING_NAMESPACE(std);
SG_USING_NAMESPACE(std);
/**

View file

@ -107,7 +107,7 @@
#include <GL/xmesa.h>
#endif
FG_USING_STD(string);
SG_USING_STD(string);
extern const char *default_root;

View file

@ -46,7 +46,7 @@
#include "globals.hxx"
FG_USING_STD(string);
SG_USING_STD(string);
// define the global I/O channel list

View file

@ -39,8 +39,8 @@
#include <Sound/soundmgr.hxx>
#include "viewmgr.hxx"
FG_USING_STD( vector );
FG_USING_STD( string );
SG_USING_STD( vector );
SG_USING_STD( string );
typedef vector<string> string_list;

View file

@ -55,8 +55,8 @@ bool global_fullscreen = true;
#include "fg_props.hxx"
#include "options.hxx"
FG_USING_STD(string);
FG_USING_NAMESPACE(std);
SG_USING_STD(string);
SG_USING_NAMESPACE(std);
#define NEW_DEFAULT_MODEL_HZ 120

View file

@ -41,7 +41,7 @@
#include "viewer_lookat.hxx"
#include "viewer_rph.hxx"
FG_USING_STD(vector);
SG_USING_STD(vector);
// Define a structure containing view information

View file

@ -30,7 +30,7 @@
#ifdef SG_HAVE_STD_INCLUDES
# include <istream>
#elif defined( FG_HAVE_NATIVE_SGI_COMPILERS )
#elif defined( SG_HAVE_NATIVE_SGI_COMPILERS )
# include <iostream.h>
#elif defined( __BORLANDC__ )
# include <iostream>
@ -38,12 +38,12 @@
# include <istream.h>
#endif
#if ! defined( FG_HAVE_NATIVE_SGI_COMPILERS )
FG_USING_STD(istream);
#if ! defined( SG_HAVE_NATIVE_SGI_COMPILERS )
SG_USING_STD(istream);
#endif
#include STL_STRING
FG_USING_STD(string);
SG_USING_STD(string);
class FGFix {

View file

@ -34,9 +34,9 @@
#include "fix.hxx"
FG_USING_STD(map);
FG_USING_STD(vector);
FG_USING_STD(string);
SG_USING_STD(map);
SG_USING_STD(vector);
SG_USING_STD(string);
class FGFixList {

View file

@ -31,7 +31,7 @@
#ifdef SG_HAVE_STD_INCLUDES
# include <istream>
#elif defined( FG_HAVE_NATIVE_SGI_COMPILERS )
#elif defined( SG_HAVE_NATIVE_SGI_COMPILERS )
# include <iostream.h>
#elif defined( __BORLANDC__ )
# include <iostream>
@ -39,8 +39,8 @@
# include <istream.h>
#endif
#if ! defined( FG_HAVE_NATIVE_SGI_COMPILERS )
FG_USING_STD(istream);
#if ! defined( SG_HAVE_NATIVE_SGI_COMPILERS )
SG_USING_STD(istream);
#endif

View file

@ -33,8 +33,8 @@
#include "ils.hxx"
FG_USING_STD(map);
FG_USING_STD(vector);
SG_USING_STD(map);
SG_USING_STD(vector);
class FGILSList {

View file

@ -33,8 +33,8 @@
#include "nav.hxx"
FG_USING_STD(map);
FG_USING_STD(vector);
SG_USING_STD(map);
SG_USING_STD(vector);
class FGBeacon {

View file

@ -34,7 +34,7 @@
#ifdef SG_HAVE_STD_INCLUDES
# include <istream>
#elif defined( FG_HAVE_NATIVE_SGI_COMPILERS )
#elif defined( SG_HAVE_NATIVE_SGI_COMPILERS )
# include <iostream.h>
#elif defined( __BORLANDC__ )
# include <iostream>
@ -42,8 +42,8 @@
# include <istream.h>
#endif
#if ! defined( FG_HAVE_NATIVE_SGI_COMPILERS )
FG_USING_STD(istream);
#if ! defined( SG_HAVE_NATIVE_SGI_COMPILERS )
SG_USING_STD(istream);
#endif

View file

@ -33,8 +33,8 @@
#include "nav.hxx"
FG_USING_STD(map);
FG_USING_STD(vector);
SG_USING_STD(map);
SG_USING_STD(vector);
class FGNavList {

View file

@ -31,7 +31,7 @@
#include "protocol.hxx"
FG_USING_STD(string);
SG_USING_STD(string);
class FGAtlas : public FGProtocol {

View file

@ -31,7 +31,7 @@
#include "protocol.hxx"
FG_USING_STD(string);
SG_USING_STD(string);
class FGGarmin : public FGProtocol {

View file

@ -33,7 +33,7 @@
#include "protocol.hxx"
FG_USING_STD(string);
SG_USING_STD(string);
class FGJoyClient : public FGProtocol {

View file

@ -33,7 +33,7 @@
#include "protocol.hxx"
FG_USING_STD(string);
SG_USING_STD(string);
class FGNative : public FGProtocol {

View file

@ -31,7 +31,7 @@
#include "protocol.hxx"
FG_USING_STD(string);
SG_USING_STD(string);
class FGNMEA : public FGProtocol {

View file

@ -35,8 +35,8 @@
#include "props.hxx"
FG_USING_STD(cout);
FG_USING_STD(istrstream);
SG_USING_STD(cout);
SG_USING_STD(istrstream);
FGProps::FGProps() {
}

View file

@ -32,7 +32,7 @@
#include "protocol.hxx"
FG_USING_STD(string);
SG_USING_STD(string);
const static int max_cmd_len = 256;

View file

@ -30,8 +30,8 @@
#include STL_STRING
#include <vector>
FG_USING_STD(string);
FG_USING_STD(vector);
SG_USING_STD(string);
SG_USING_STD(vector);
#define FG_MAX_MSG_SIZE 16384

View file

@ -31,7 +31,7 @@
#include "protocol.hxx"
FG_USING_STD(string);
SG_USING_STD(string);
class FGPVE : public FGProtocol {

View file

@ -33,7 +33,7 @@
#include "protocol.hxx"
FG_USING_STD(string);
SG_USING_STD(string);
class FGRAY : public FGProtocol {

View file

@ -32,7 +32,7 @@
#include "protocol.hxx"
FG_USING_STD(string);
SG_USING_STD(string);
class FGRUL : public FGProtocol {

View file

@ -23,7 +23,7 @@
# include <config.h>
#endif
#if defined( FG_HAVE_NATIVE_SGI_COMPILERS )
#if defined( SG_HAVE_NATIVE_SGI_COMPILERS )
# include <iostream.h>
#else
# include <iostream>
@ -31,7 +31,7 @@
#include <simgear/math/sg_types.hxx>
FG_USING_NAMESPACE(std);
SG_USING_NAMESPACE(std);
#include "features.hxx"

View file

@ -34,7 +34,7 @@
#include <time.h>
#include STL_STRING
FG_USING_NAMESPACE(std);
SG_USING_NAMESPACE(std);
/*

View file

@ -52,7 +52,7 @@
#include "matlib.hxx"
FG_USING_STD(string);
SG_USING_STD(string);
// global material management class

View file

@ -51,10 +51,10 @@
#include "newmat.hxx"
FG_USING_STD(string);
FG_USING_STD(map);
FG_USING_STD(vector);
FG_USING_STD(less);
SG_USING_STD(string);
SG_USING_STD(map);
SG_USING_STD(vector);
SG_USING_STD(less);
// Material management class

View file

@ -46,7 +46,7 @@
#include STL_STRING // Standard C++ string library
FG_USING_STD(string);
SG_USING_STD(string);
// MSVC++ 6.0 kuldge - Need forward declaration of friends.

View file

@ -57,8 +57,8 @@
#include "matlib.hxx"
#include "obj.hxx"
FG_USING_STD(string);
FG_USING_STD(vector);
SG_USING_STD(string);
SG_USING_STD(vector);
typedef vector < int > int_list;

View file

@ -48,7 +48,7 @@
#include <Scenery/tileentry.hxx>
FG_USING_STD(string);
SG_USING_STD(string);
// duplicated from the TerraGear tools

View file

@ -11,7 +11,7 @@
#include <plib/ssg.h>
FG_USING_STD(vector);
SG_USING_STD(vector);
class FGHitRec {

View file

@ -51,7 +51,7 @@
#include "tileentry.hxx"
#include "tilemgr.hxx" // temp, need to delete later
FG_USING_NAMESPACE(std);
SG_USING_NAMESPACE(std);
// a cheesy hack (to be fixed later)
extern ssgBranch *terrain;

View file

@ -47,7 +47,7 @@
#include "tileentry.hxx"
FG_USING_STD(map);
SG_USING_STD(map);
typedef map < long, FGTileEntry * > tile_map;

View file

@ -41,8 +41,8 @@
#include "tileentry.hxx"
FG_USING_STD(for_each);
FG_USING_STD(mem_fun_ref);
SG_USING_STD(for_each);
SG_USING_STD(mem_fun_ref);
// Constructor

View file

@ -54,8 +54,8 @@
#include <strings.h>
#endif
FG_USING_STD(string);
FG_USING_STD(vector);
SG_USING_STD(string);
SG_USING_STD(vector);
typedef vector < Point3D > point_list;

View file

@ -39,7 +39,7 @@
#include "hitlist.hxx"
FG_USING_STD(list);
SG_USING_STD(list);
#if defined(USE_MEM) || defined(WIN32)

View file

@ -39,8 +39,8 @@
#include <plib/sl.h>
#include <plib/sm.h>
FG_USING_STD(map);
FG_USING_STD(string);
SG_USING_STD(map);
SG_USING_STD(string);
// manages everything we need to know for an individual sound sample

View file

@ -57,9 +57,9 @@
#include "event.hxx"
FG_USING_STD(for_each);
FG_USING_STD(mem_fun);
FG_USING_STD(string);
SG_USING_STD(for_each);
SG_USING_STD(mem_fun);
SG_USING_STD(string);
fgEVENT_MGR global_events;

View file

@ -40,9 +40,9 @@
#include STL_STRING
FG_USING_STD(deque);
FG_USING_STD(list);
FG_USING_STD(string);
SG_USING_STD(deque);
SG_USING_STD(list);
SG_USING_STD(string);
class fgEVENT

View file

@ -46,7 +46,7 @@
#endif
#include <string>
FG_USING_STD(string);
SG_USING_STD(string);
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>

View file

@ -49,7 +49,7 @@
#ifdef SG_HAVE_STD_INCLUDES
# include <ctime>
# ifdef macintosh
FG_USING_STD(time_t);
SG_USING_STD(time_t);
# endif
#else
# include <time.h>

View file

@ -45,7 +45,7 @@
# include <cstdio>
# include <ctime>
# ifdef macintosh
FG_USING_STD(time_t);
SG_USING_STD(time_t);
# endif
#else
# include <math.h>

View file

@ -71,9 +71,9 @@ HISTORY
/****************************************************************************/
/* DEFINES */
/****************************************************************************/
FG_USING_STD(vector);
FG_USING_STD(string);
FG_USING_NAMESPACE(std);
SG_USING_STD(vector);
SG_USING_STD(string);
SG_USING_NAMESPACE(std);
/****************************************************************************/
/* CLASS DECLARATION */

View file

@ -78,9 +78,9 @@ HISTORY
#include "FGCloudItem.h"
#include "FGSnowRain.h"
FG_USING_STD(vector);
FG_USING_STD(map);
FG_USING_NAMESPACE(std);
SG_USING_STD(vector);
SG_USING_STD(map);
SG_USING_NAMESPACE(std);
/****************************************************************************/
/* FOREWARD DEFINITIONS */

View file

@ -67,8 +67,8 @@ HISTORY
#include "FGWeatherDefs.h"
#include "FGPhysicalProperties.h"
FG_USING_STD(vector);
FG_USING_NAMESPACE(std);
SG_USING_STD(vector);
SG_USING_NAMESPACE(std);
/****************************************************************************/
/* used for output: */

View file

@ -71,7 +71,7 @@ HISTORY
/****************************************************************************/
/* DEFINES */
/****************************************************************************/
FG_USING_STD(vector);
SG_USING_STD(vector);
/****************************************************************************/
/* CLASS DECLARATION */