// already depending on how you defined SG_HAVE_STD_INCLUDES, but I
// can go ahead and add this -- CLO
#ifdef __MWERKS__
-FG_USING_STD(sprintf);
-FG_USING_STD(fabs);
+SG_USING_STD(sprintf);
+SG_USING_STD(fabs);
#endif
#include STL_STRING
-FG_USING_STD(string);
+SG_USING_STD(string);
-#if ! defined( FG_HAVE_NATIVE_SGI_COMPILERS )
-FG_USING_STD(ostream);
+#if ! defined( SG_HAVE_NATIVE_SGI_COMPILERS )
+SG_USING_STD(ostream);
#endif
// g++-2.8.x and egcs-1.x
# define SG_EXPLICIT_FUNCTION_TMPL_ARGS
# define SG_NEED_AUTO_PTR
-# define FG_MEMBER_TEMPLATES
+# define SG_MEMBER_TEMPLATES
# define SG_NAMESPACES
# define SG_HAVE_STD
# define SG_HAVE_STREAMBUF
# define SG_NAMESPACES
# define SG_HAVE_STD
# define SG_HAVE_STREAMBUF
-# define FG_HAVE_TRAITS
+# define SG_HAVE_TRAITS
# define SG_HAVE_STD_INCLUDES
# define STL_ALGORITHM <algorithm>
/*
CodeWarrior compiler from Metrowerks, Inc.
*/
-# define FG_HAVE_TRAITS
+# define SG_HAVE_TRAITS
# define SG_HAVE_STD_INCLUDES
# define SG_HAVE_STD
# define SG_NAMESPACES
//
#if defined ( sgi ) && !defined( __GNUC__ )
-# define FG_HAVE_NATIVE_SGI_COMPILERS
+# define SG_HAVE_NATIVE_SGI_COMPILERS
# define SG_EXPLICIT_FUNCTION_TMPL_ARGS
# define SG_NEED_AUTO_PTR
-# define FG_MEMBER_TEMPLATES
+# define SG_MEMBER_TEMPLATES
# define SG_NAMESPACES
# define SG_HAVE_STD
# define SG_CLASS_PARTIAL_SPECIALIZATION
-# define FG_HAVE_TRAITS
+# define SG_HAVE_TRAITS
# define STL_ALGORITHM <algorithm>
# define STL_FUNCTIONAL <functional>
// No user modifiable definitions beyond here.
//
-#ifdef FG_NEED_EXPLICIT
+#ifdef SG_NEED_EXPLICIT
# define explicit
#endif
-#ifdef FG_NEED_TYPENAME
+#ifdef SG_NEED_TYPENAME
# define typename
#endif
-#ifdef FG_NEED_MUTABLE
+#ifdef SG_NEED_MUTABLE
# define mutable
#endif
-#ifdef FG_NEED_BOOL
+#ifdef SG_NEED_BOOL
typedef int bool;
# define true 1
# define false 0
#endif
#ifdef SG_EXPLICIT_FUNCTION_TMPL_ARGS
-# define FG_NULL_TMPL_ARGS <>
+# define SG_NULL_TMPL_ARGS <>
#else
-# define FG_NULL_TMPL_ARGS
+# define SG_NULL_TMPL_ARGS
#endif
#ifdef SG_CLASS_PARTIAL_SPECIALIZATION
-# define FG_TEMPLATE_NULL template<>
+# define SG_TEMPLATE_NULL template<>
#else
-# define FG_TEMPLATE_NULL
+# define SG_TEMPLATE_NULL
#endif
-// FG_NO_NAMESPACES is a hook so that users can disable namespaces
+// SG_NO_NAMESPACES is a hook so that users can disable namespaces
// without having to edit library headers.
-#if defined(SG_NAMESPACES) && !defined(FG_NO_NAMESPACES)
-# define FG_NAMESPACE(X) namespace X {
-# define FG_NAMESPACE_END }
-# define FG_USING_NAMESPACE(X) using namespace X
+#if defined(SG_NAMESPACES) && !defined(SG_NO_NAMESPACES)
+# define SG_NAMESPACE(X) namespace X {
+# define SG_NAMESPACE_END }
+# define SG_USING_NAMESPACE(X) using namespace X
# else
-# define FG_NAMESPACE(X)
-# define FG_NAMESPACE_END
-# define FG_USING_NAMESPACE(X)
+# define SG_NAMESPACE(X)
+# define SG_NAMESPACE_END
+# define SG_USING_NAMESPACE(X)
#endif
# ifdef SG_HAVE_STD
-# define FG_USING_STD(X) using std::X
+# define SG_USING_STD(X) using std::X
# define STD std
# else
-# define FG_USING_STD(X)
+# define SG_USING_STD(X)
# define STD
# endif
#include <simgear/compiler.h>
// At least Irix needs this
-#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+#ifdef SG_HAVE_NATIVE_SGI_COMPILERS
#include <char_traits.h>
#endif
#include <simgear/debug/debug_types.h>
-#ifndef FG_HAVE_NATIVE_SGI_COMPILERS
-FG_USING_STD(streambuf);
-FG_USING_STD(ostream);
-FG_USING_STD(cerr);
-FG_USING_STD(endl);
+#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
+SG_USING_STD(streambuf);
+SG_USING_STD(ostream);
+SG_USING_STD(cerr);
+SG_USING_STD(endl);
#else
-FG_USING_STD(char_traits);
+SG_USING_STD(char_traits);
#endif
#ifdef __MWERKS__
-FG_USING_STD(iostream);
+SG_USING_STD(iostream);
#endif
//
#include "stardata.hxx"
-#if defined (_MSC_VER) || defined (FG_HAVE_NATIVE_SGI_COMPILERS)
- FG_USING_STD(getline);
+#if defined (_MSC_VER) || defined (SG_HAVE_NATIVE_SGI_COMPILERS)
+ SG_USING_STD(getline);
#endif
// Constructor
#include <simgear/compiler.h>
-#ifndef FG_HAVE_TRAITS
+#ifndef SG_HAVE_TRAITS
// Dummy up some char traits for now.
template<class charT> struct char_traits{};
-FG_TEMPLATE_NULL
+SG_TEMPLATE_NULL
struct char_traits<char>
{
typedef char char_type;
static int_type eof() { return EOF; }
};
-#endif // FG_HAVE_TRAITS
+#endif // SG_HAVE_TRAITS
#endif // _FG_TRAITS_HXX
#include STL_STRING
#include <vector>
-FG_USING_STD(vector);
-FG_USING_STD(string);
+SG_USING_STD(vector);
+SG_USING_STD(string);
#define SG_IO_MAX_MSG_SIZE 16384
#include "sg_binobj.hxx"
-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( cout );
-FG_USING_STD( endl );
+#if !defined (SG_HAVE_NATIVE_SGI_COMPILERS)
+SG_USING_STD( cout );
+SG_USING_STD( endl );
#endif
#include "sg_file.hxx"
-FG_USING_STD(string);
+SG_USING_STD(string);
SGFile::SGFile( const string &file) {
#include "iochannel.hxx"
-FG_USING_STD(string);
+SG_USING_STD(string);
class SGFile : public SGIOChannel {
#include "sg_serial.hxx"
-FG_USING_STD(string);
+SG_USING_STD(string);
SGSerial::SGSerial( const string& device_name, const string& baud_rate ) :
#include "iochannel.hxx"
-FG_USING_STD(string);
+SG_USING_STD(string);
class SGSerial : public SGIOChannel {
#include <simgear/math/sg_types.hxx>
#include <simgear/io/iochannel.hxx>
-FG_USING_STD(string);
+SG_USING_STD(string);
#if defined(_MSC_VER)
# include <winsock.h>
#include "interpolater.hxx"
-FG_USING_STD(string);
+SG_USING_STD(string);
// Constructor -- loads the interpolation table from the specified
#include <simgear/compiler.h>
#include STL_STRING
-FG_USING_STD(string);
+SG_USING_STD(string);
#define MAX_TABLE_SIZE 32
// already depending on how you defined SG_HAVE_STD_INCLUDES, but I
// can go ahead and add this -- CLO
#ifdef __MWERKS__
-FG_USING_NAMESPACE(std);
+SG_USING_NAMESPACE(std);
#endif
-#ifndef FG_HAVE_NATIVE_SGI_COMPILERS
-FG_USING_STD(ostream);
-FG_USING_STD(istream);
+#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
+SG_USING_STD(ostream);
+SG_USING_STD(istream);
#endif
#include "localconsts.hxx"
-#ifndef FG_HAVE_NATIVE_SGI_COMPILERS
-FG_USING_STD(cout);
+#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
+SG_USING_STD(cout);
#endif
// ONE_SECOND is pi/180/60/60, or about 100 feet at earths' equator
#include <simgear/math/point3d.hxx>
-FG_USING_STD(vector);
-FG_USING_STD(string);
+SG_USING_STD(vector);
+SG_USING_STD(string);
typedef vector < int > int_list;
#include "MetarReport.h"
#include "Metar.h"
-#if !defined (FG_HAVE_NATIVE_SGI_COMPILERS)
-FG_USING_STD(endl);
-FG_USING_STD(ostream);
+#if !defined (SG_HAVE_NATIVE_SGI_COMPILERS)
+SG_USING_STD(endl);
+SG_USING_STD(ostream);
#endif
CMetarReport::CMetarReport(
#include <simgear/math/point3d.hxx>
#include <simgear/math/polar3d.hxx>
-FG_USING_STD(string);
+SG_USING_STD(string);
class CMetarReport
{
#include <simgear/misc/fgpath.hxx>
-#if !defined (FG_HAVE_NATIVE_SGI_COMPILERS)
-FG_USING_STD(ostream);
-FG_USING_STD(cout);
-FG_USING_STD(endl);
+#if !defined (SG_HAVE_NATIVE_SGI_COMPILERS)
+SG_USING_STD(ostream);
+SG_USING_STD(cout);
+SG_USING_STD(endl);
#endif
#include <simgear/math/point3d.hxx>
#include <simgear/math/polar3d.hxx>
-FG_USING_STD(string);
-FG_USING_STD(vector);
-FG_USING_STD(map);
+SG_USING_STD(string);
+SG_USING_STD(vector);
+SG_USING_STD(map);
class CMetarStationDB;
#include STL_STRING
-FG_USING_STD(string);
+SG_USING_STD(string);
#ifdef macintosh
#if defined( SG_HAVE_STD_INCLUDES )
# include <istream>
-#elif defined ( FG_HAVE_NATIVE_SGI_COMPILERS )
+#elif defined ( SG_HAVE_NATIVE_SGI_COMPILERS )
# include <CC/stream.h>
#elif defined ( __BORLANDC__ )
# include <iostream>
#include <simgear/misc/zfstream.hxx>
-FG_USING_STD(string);
+SG_USING_STD(string);
-#ifndef FG_HAVE_NATIVE_SGI_COMPILERS
-FG_USING_STD(istream);
+#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
+SG_USING_STD(istream);
#endif
#include <algorithm>
#include "props.hxx"
-FG_USING_STD(sort);
+SG_USING_STD(sort);
\f
#include <vector>
#include STL_IOSTREAM
-FG_USING_STD(string);
-FG_USING_STD(vector);
-#if !defined(FG_HAVE_NATIVE_SGI_COMPILERS)
-FG_USING_STD(istream);
-FG_USING_STD(ostream);
+SG_USING_STD(string);
+SG_USING_STD(vector);
+#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
+SG_USING_STD(istream);
+SG_USING_STD(ostream);
#endif
#ifdef ALIAS
#include "props.hxx"
#include STL_IOSTREAM
-#if !defined(FG_HAVE_NATIVE_SGI_COMPILERS)
+#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
# include <fstream>
#else
# include <fstream.h>
#include <vector>
#include <map>
-#if !defined(FG_HAVE_NATIVE_SGI_COMPILERS)
-FG_USING_STD(istream);
-FG_USING_STD(ifstream);
-FG_USING_STD(ostream);
-FG_USING_STD(ofstream);
+#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
+SG_USING_STD(istream);
+SG_USING_STD(ifstream);
+SG_USING_STD(ostream);
+SG_USING_STD(ofstream);
#endif
-FG_USING_STD(string);
-FG_USING_STD(vector);
-FG_USING_STD(map);
+SG_USING_STD(string);
+SG_USING_STD(vector);
+SG_USING_STD(map);
\f
#include STL_IOSTREAM
#include "props.hxx"
-#if !defined(FG_HAVE_NATIVE_SGI_COMPILERS)
-FG_USING_STD(cout);
-FG_USING_STD(endl);
+#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
+SG_USING_STD(cout);
+SG_USING_STD(endl);
#endif
# include <stdlib.h>
#endif
-FG_USING_STD(string);
+SG_USING_STD(string);
// Default characters to remove.
extern const string whitespace;
#endif
// At least Irix needs this
-#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+#ifdef SG_HAVE_NATIVE_SGI_COMPILERS
#include <char_traits.h>
-FG_USING_STD(char_traits);
+SG_USING_STD(char_traits);
#endif
#ifdef SG_HAVE_STD_INCLUDES
# define ios_badbit ios_base::badbit
# define ios_failbit ios_base::failbit
-FG_USING_STD(streambuf);
-FG_USING_STD(ios_base);
-FG_USING_STD(streampos);
-FG_USING_STD(streamoff);
+SG_USING_STD(streambuf);
+SG_USING_STD(ios_base);
+SG_USING_STD(streampos);
+SG_USING_STD(streamoff);
#else
#if defined(__GNUC__) && __GNUC_MINOR__ < 8
# define ios_binary ios::bin
-#elif defined( FG_HAVE_NATIVE_SGI_COMPILERS )
+#elif defined( SG_HAVE_NATIVE_SGI_COMPILERS )
# define ios_binary 0
#else
# define ios_binary ios::binary
#include STL_STRING
#include <vector>
-FG_USING_STD(string);
-FG_USING_STD(vector);
+SG_USING_STD(string);
+SG_USING_STD(vector);
#include <simgear/route/waypoint.hxx>
#include STL_STRING
-FG_USING_STD(string);
+SG_USING_STD(string);
class SGWayPoint {
#include <simgear/compiler.h>
#include STL_STRING
-FG_USING_STD(string);
+SG_USING_STD(string);
// if someone know how to do this all with C++ streams let me know
// #include <stdio.h>
#include <plib/ssg.h>
#include STL_STRING
-FG_USING_STD(string);
+SG_USING_STD(string);
#define SG_MAX_CLOUD_TYPES 4 // change this if we add/remove cloud
#include <simgear/sky/oursun.hxx>
#include <simgear/sky/stars.hxx>
-FG_USING_STD(vector);
+SG_USING_STD(vector);
typedef vector < SGCloudLayer* > layer_list_type;
#include <plib/sg.h>
#include <plib/ssg.h>
-#if !defined (FG_HAVE_NATIVE_SGI_COMPILERS)
-FG_USING_STD(cout);
-FG_USING_STD(endl);
+#if !defined (SG_HAVE_NATIVE_SGI_COMPILERS)
+SG_USING_STD(cout);
+SG_USING_STD(endl);
#endif
#include "stars.hxx"
-#if !defined (FG_HAVE_NATIVE_SGI_COMPILERS)
-FG_USING_STD(cout);
-FG_USING_STD(endl);
+#if !defined (SG_HAVE_NATIVE_SGI_COMPILERS)
+SG_USING_STD(cout);
+SG_USING_STD(endl);
#endif
// But it looks like it isn't used anyways -:)
#include <vector>
-FG_USING_NAMESPACE(std);
+SG_USING_NAMESPACE(std);
#include <simgear/constants.h>
#include STL_STRING
#include <vector>
-#if !defined(FG_HAVE_NATIVE_SGI_COMPILERS)
-FG_USING_STD(istream);
+#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
+SG_USING_STD(istream);
#endif
-FG_USING_STD(string);
-FG_USING_STD(vector);
+SG_USING_STD(string);
+SG_USING_STD(vector);
/**