Replace SG_USE_STD() by using std::

This commit is contained in:
ehofman
2008-07-28 07:52:13 +00:00
parent aa07b5bdd8
commit d4c7e95092
61 changed files with 106 additions and 106 deletions

View File

@@ -36,8 +36,8 @@
#include <simgear/debug/debug_types.h>
SG_USING_STD(streambuf);
SG_USING_STD(ostream);
using std::streambuf;
using std::ostream;
//
// TODO:

View File

@@ -29,9 +29,9 @@
#include <simgear/constants.h>
SG_USING_STD(vector);
SG_USING_STD(map);
SG_USING_STD(string);
using std::vector;
using std::map;
using std::string;
const double SGMetarNaN = -1E20;
#define NaN SGMetarNaN

View File

@@ -38,7 +38,7 @@
#include <vector>
SG_USING_STD(vector);
using std::vector;
typedef struct {

View File

@@ -28,8 +28,8 @@
#include <string>
#include <vector>
SG_USING_STD(vector);
SG_USING_STD(string);
using std::vector;
using std::string;
class SGLightning;
class SGSoundMgr;

View File

@@ -31,7 +31,7 @@
#include "stardata.hxx"
#if defined (_MSC_VER)
SG_USING_STD(getline);
using std::getline;
#endif
// Constructor

View File

@@ -9,8 +9,8 @@
#include "sg_binobj.hxx"
SG_USING_STD(cout);
SG_USING_STD(endl);
using std::cout;
using std::endl;
int main( int argc, char **argv ) {

View File

@@ -35,8 +35,8 @@
#include <string>
#include <vector>
SG_USING_STD(vector);
SG_USING_STD(string);
using std::vector;
using std::string;
#define SG_IO_MAX_MSG_SIZE 16384

View File

@@ -8,8 +8,8 @@ static const int sgEndianTest = 1;
#define sgIsLittleEndian (*((char *) &sgEndianTest ) != 0)
#define sgIsBigEndian (*((char *) &sgEndianTest ) == 0)
SG_USING_STD(cout);
SG_USING_STD(endl);
using std::cout;
using std::endl;
int main() {

View File

@@ -36,7 +36,7 @@
#include "sg_file.hxx"
SG_USING_STD(string);
using std::string;
SGFile::SGFile(const string &file, bool repeat_)

View File

@@ -44,7 +44,7 @@
#include "iochannel.hxx"
SG_USING_STD(string);
using std::string;
/**

View File

@@ -32,7 +32,7 @@
#include "sg_serial.hxx"
SG_USING_STD(string);
using std::string;
SGSerial::SGSerial( const string& device_name, const string& baud_rate ) :

View File

@@ -40,7 +40,7 @@
#include "iochannel.hxx"
SG_USING_STD(string);
using std::string;
/**
* A serial I/O class based on SGIOChannel.

View File

@@ -41,7 +41,7 @@
#include <plib/netSocket.h>
SG_USING_STD(string);
using std::string;
#define SG_MAX_SOCKET_QUEUE 32

View File

@@ -41,7 +41,7 @@
#include <simgear/math/sg_types.hxx>
#include <simgear/io/iochannel.hxx>
SG_USING_STD(string);
using std::string;
/**
* A UDP socket I/O class based on SGIOChannel and plib/net.

View File

@@ -14,8 +14,8 @@ static const int sgEndianTest = 1;
#define sgIsLittleEndian (*((char *) &sgEndianTest ) != 0)
#define sgIsBigEndian (*((char *) &sgEndianTest ) == 0)
SG_USING_STD(cout);
SG_USING_STD(endl);
using std::cout;
using std::endl;
int main() {

View File

@@ -5,8 +5,8 @@
#include "sg_socket.hxx"
SG_USING_STD(string);
SG_USING_STD(cout);
using std::string;
using std::cout;
class TcpServer
{

View File

@@ -33,7 +33,7 @@
#include "interpolater.hxx"
SG_USING_STD(string);
using std::string;
// Constructor -- starts with an empty table.
SGInterpTable::SGInterpTable()

View File

@@ -40,7 +40,7 @@
#include <map>
#include <string>
SG_USING_STD(string);
using std::string;
class SGPropertyNode;

View File

@@ -40,8 +40,8 @@
#include <simgear/math/point3d.hxx>
SG_USING_STD(vector);
SG_USING_STD(string);
using std::vector;
using std::string;
/** STL vector list of ints */
typedef vector < int > int_list;

View File

@@ -35,7 +35,7 @@
#include <simgear/math/sg_types.hxx>
SG_USING_STD(string);
using std::string;
#ifdef _MSC_VER
typedef int mode_t;

View File

@@ -32,11 +32,11 @@
#include <string>
#include <vector>
SG_USING_STD(vector);
using std::vector;
#include <cstdlib>
SG_USING_STD(string);
using std::string;
namespace simgear {
namespace strutils {

View File

@@ -28,8 +28,8 @@
#include <vector>
#include <string>
SG_USING_STD(vector);
SG_USING_STD(string);
using std::vector;
using std::string;
class SGTabbedValues
{

View File

@@ -7,9 +7,9 @@
#include <iostream>
#include "tabbed_values.hxx"
SG_USING_STD(cout);
SG_USING_STD(cerr);
SG_USING_STD(endl);
using std::cout;
using std::cerr;
using std::endl;
int main (int ac, char ** av)

View File

@@ -149,8 +149,8 @@ enter this in the official comments in case I forget again. :-)
#include "texcoord.hxx"
// SG_USING_STD(cout);
// SG_USING_STD(endl);
// using std::cout;
// using std::endl;
#define FG_STANDARD_TEXTURE_DIMENSION 1000.0 // meters

View File

@@ -18,8 +18,8 @@
#include "props.hxx"
#include "condition.hxx"
SG_USING_STD(istream);
SG_USING_STD(ostream);
using std::istream;
using std::ostream;

View File

@@ -30,13 +30,13 @@
#include <vector>
#include <map>
SG_USING_STD(istream);
SG_USING_STD(ifstream);
SG_USING_STD(ostream);
SG_USING_STD(ofstream);
SG_USING_STD(string);
SG_USING_STD(vector);
SG_USING_STD(map);
using std::istream;
using std::ifstream;
using std::ostream;
using std::ofstream;
using std::string;
using std::vector;
using std::map;
using std::endl;

View File

@@ -9,9 +9,9 @@
#include "props.hxx"
#include "props_io.hxx"
SG_USING_STD(cout);
SG_USING_STD(cerr);
SG_USING_STD(endl);
using std::cout;
using std::cerr;
using std::endl;

View File

@@ -36,7 +36,7 @@
#include <vector>
SG_USING_STD(vector);
using std::vector;
#include <simgear/route/waypoint.hxx>

View File

@@ -6,8 +6,8 @@
#include "route.hxx"
#include "waypoint.hxx"
SG_USING_STD(cout);
SG_USING_STD(endl);
using std::cout;
using std::endl;
void dump_route(const SGRoute& route, const char* message)
{

View File

@@ -37,7 +37,7 @@
#include <string>
SG_USING_STD(string);
using std::string;
/**

View File

@@ -5,8 +5,8 @@
#include "waypoint.hxx"
SG_USING_STD(cout);
SG_USING_STD(endl);
using std::cout;
using std::endl;
int main() {
SGWayPoint a1(-93.216923, 44.880547, 0.0, SGWayPoint::WGS84, "KMSP");

View File

@@ -29,7 +29,7 @@
#include <string.h>
#include <map>
SG_USING_STD(map);
using std::map;
#include <plib/ul.h>

View File

@@ -47,9 +47,9 @@
#include "matmodel.hxx"
SG_USING_STD(string);
SG_USING_STD(vector);
SG_USING_STD(map);
using std::string;
using std::vector;
using std::map;
class SGMaterialGlyph;

View File

@@ -60,7 +60,7 @@
#include "matlib.hxx"
SG_USING_STD(string);
using std::string;
// Constructor
SGMaterialLib::SGMaterialLib ( void ) {

View File

@@ -43,10 +43,10 @@
class SGMaterial;
class SGPropertyNode;
SG_USING_STD(string);
SG_USING_STD(map);
SG_USING_STD(vector);
SG_USING_STD(less);
using std::string;
using std::map;
using std::vector;
using std::less;
// Material management class
class SGMaterialLib {

View File

@@ -28,7 +28,7 @@
#include <simgear/compiler.h>
#include <map>
SG_USING_STD(map);
using std::map;
#include <osg/AlphaFunc>
#include <osg/Group>

View File

@@ -20,7 +20,7 @@
#include "model.hxx"
SG_USING_STD(vector);
using std::vector;
osg::Texture2D*
SGLoadTexture2D(bool staticTexture, const std::string& path,

View File

@@ -15,8 +15,8 @@
#include <vector>
#include <set>
SG_USING_STD(vector);
SG_USING_STD(set);
using std::vector;
using std::set;
#include <osg/Node>
#include <osg/Texture2D>

View File

@@ -30,8 +30,8 @@
#include <simgear/props/props.hxx>
SG_USING_STD(map);
SG_USING_STD(string);
using std::map;
using std::string;
namespace simgear {

View File

@@ -29,8 +29,8 @@
#include <vector>
#include <map>
SG_USING_STD(vector);
SG_USING_STD(map);
using std::vector;
using std::map;
class ssgBranch;
class ssgLeaf;

View File

@@ -33,7 +33,7 @@
#include <simgear/structure/SGReferenced.hxx>
#include <string>
SG_USING_STD(string);
using std::string;
#include <osg/ref_ptr>
#include <osg/Array>

View File

@@ -34,7 +34,7 @@
#include <algorithm>
#include <vector>
SG_USING_STD(vector);
using std::vector;
#include <simgear/environment/visual_enviro.hxx>
#include "sky.hxx"

View File

@@ -28,7 +28,7 @@
#include <vector>
SG_USING_STD(vector);
using std::vector;
class SGNewCloud;

View File

@@ -30,8 +30,8 @@
#include "bbcache.hxx"
SG_USING_STD(string);
SG_USING_STD(vector);
using std::string;
using std::vector;
/**
* 3D cloud class.

View File

@@ -50,7 +50,7 @@
#include <simgear/scene/sky/oursun.hxx>
#include <simgear/scene/sky/stars.hxx>
SG_USING_STD(vector);
using std::vector;
typedef struct {

View File

@@ -30,7 +30,7 @@
#include <simgear/math/point3d.hxx>
#include <simgear/scene/tgdb/TileEntry.hxx>
SG_USING_STD(map);
using std::map;
namespace simgear {

View File

@@ -62,7 +62,7 @@
#include "ReaderWriterSTG.hxx"
#include "TileEntry.hxx"
SG_USING_STD(string);
using std::string;
using namespace simgear;
ModelLoadHelper *TileEntry::_modelLoader=0;

View File

@@ -48,8 +48,8 @@
#include <strings.h>
#endif
SG_USING_STD(string);
SG_USING_STD(vector);
using std::string;
using std::vector;
namespace simgear {

View File

@@ -41,7 +41,7 @@
#define SIGN "OBJECT_SIGN: "
#define RWY "OBJECT_RUNWAY_SIGN: "
SG_USING_STD(vector);
using std::vector;
// for temporary storage of sign elements
struct element_info {

View File

@@ -38,7 +38,7 @@
class SGMaterialLib; // forward declaration
SG_USING_STD(string);
using std::string;
// Generate a generic sign

View File

@@ -38,7 +38,7 @@
#include "SGOceanTile.hxx"
SG_USING_STD(string);
using std::string;
class SGBucket;
class SGMaterialLib;

View File

@@ -45,8 +45,8 @@
#include "SGLightBin.hxx"
#include "SGDirectionalLightBin.hxx"
SG_USING_STD(string);
SG_USING_STD(vector);
using std::string;
using std::vector;
// Specify the way we want to draw directional point lights (assuming the
// appropriate extensions are available.)

View File

@@ -35,7 +35,7 @@
#include <osg/Geometry>
#include <osg/Group>
SG_USING_STD(string);
using std::string;
class SGMaterial;
class SGMatModel;

View File

@@ -29,9 +29,9 @@
#include <map>
#include <string>
SG_USING_STD(map);
SG_USING_STD(vector);
SG_USING_STD(string);
using std::map;
using std::vector;
using std::string;
class Shader {
public:

View File

@@ -38,7 +38,7 @@
#include <simgear/compiler.h>
#include <string>
SG_USING_STD(string);
using std::string;
// if someone know how to do this all with C++ streams let me know
// #include <stdio.h>

View File

@@ -7,8 +7,8 @@
#include "serial.hxx"
SG_USING_STD(cout);
SG_USING_STD(endl);
using std::cout;
using std::endl;
int main () {
SGSerialPort port;

View File

@@ -52,8 +52,8 @@
#include "sample_openal.hxx"
SG_USING_STD(map);
SG_USING_STD(string);
using std::map;
using std::string;
typedef map < string, SGSharedPtr<SGSoundSample> > sample_map;

View File

@@ -19,9 +19,9 @@
#include <simgear/props/props.hxx>
SG_USING_STD(string);
SG_USING_STD(map);
SG_USING_STD(vector);
using std::string;
using std::map;
using std::vector;
/**

View File

@@ -13,7 +13,7 @@
#include <simgear/compiler.h>
#include <string>
SG_USING_STD(string);
using std::string;
/**

View File

@@ -14,7 +14,7 @@
#include <fstream>
#include <iostream>
SG_USING_STD(ifstream);
using std::ifstream;

View File

@@ -15,9 +15,9 @@
#include <string>
#include <vector>
SG_USING_STD(istream);
SG_USING_STD(string);
SG_USING_STD(vector);
using std::istream;
using std::string;
using std::vector;
/**