#include <simgear/debug/debug_types.h>
-SG_USING_STD(streambuf);
-SG_USING_STD(ostream);
+using std::streambuf;
+using std::ostream;
//
// TODO:
#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
#include <vector>
-SG_USING_STD(vector);
+using std::vector;
typedef struct {
#include <string>
#include <vector>
-SG_USING_STD(vector);
-SG_USING_STD(string);
+using std::vector;
+using std::string;
class SGLightning;
class SGSoundMgr;
#include "stardata.hxx"
#if defined (_MSC_VER)
- SG_USING_STD(getline);
+ using std::getline;
#endif
// Constructor
#include "sg_binobj.hxx"
-SG_USING_STD(cout);
-SG_USING_STD(endl);
+using std::cout;
+using std::endl;
int main( int argc, char **argv ) {
#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
#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() {
#include "sg_file.hxx"
-SG_USING_STD(string);
+using std::string;
SGFile::SGFile(const string &file, bool repeat_)
#include "iochannel.hxx"
-SG_USING_STD(string);
+using std::string;
/**
#include "sg_serial.hxx"
-SG_USING_STD(string);
+using std::string;
SGSerial::SGSerial( const string& device_name, const string& baud_rate ) :
#include "iochannel.hxx"
-SG_USING_STD(string);
+using std::string;
/**
* A serial I/O class based on SGIOChannel.
#include <plib/netSocket.h>
-SG_USING_STD(string);
+using std::string;
#define SG_MAX_SOCKET_QUEUE 32
#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.
#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() {
#include "sg_socket.hxx"
-SG_USING_STD(string);
-SG_USING_STD(cout);
+using std::string;
+using std::cout;
class TcpServer
{
#include "interpolater.hxx"
-SG_USING_STD(string);
+using std::string;
// Constructor -- starts with an empty table.
SGInterpTable::SGInterpTable()
#include <map>
#include <string>
-SG_USING_STD(string);
+using std::string;
class SGPropertyNode;
#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;
#include <simgear/math/sg_types.hxx>
-SG_USING_STD(string);
+using std::string;
#ifdef _MSC_VER
typedef int mode_t;
#include <string>
#include <vector>
-SG_USING_STD(vector);
+using std::vector;
#include <cstdlib>
-SG_USING_STD(string);
+using std::string;
namespace simgear {
namespace strutils {
#include <vector>
#include <string>
-SG_USING_STD(vector);
-SG_USING_STD(string);
+using std::vector;
+using std::string;
class SGTabbedValues
{
#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)
#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
#include "props.hxx"
#include "condition.hxx"
-SG_USING_STD(istream);
-SG_USING_STD(ostream);
+using std::istream;
+using std::ostream;
#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;
#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;
\f
#include <vector>
-SG_USING_STD(vector);
+using std::vector;
#include <simgear/route/waypoint.hxx>
#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)
{
#include <string>
-SG_USING_STD(string);
+using std::string;
/**
#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");
#include <string.h>
#include <map>
-SG_USING_STD(map);
+using std::map;
#include <plib/ul.h>
#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;
#include "matlib.hxx"
-SG_USING_STD(string);
+using std::string;
// Constructor
SGMaterialLib::SGMaterialLib ( void ) {
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 {
#include <simgear/compiler.h>
#include <map>
-SG_USING_STD(map);
+using std::map;
#include <osg/AlphaFunc>
#include <osg/Group>
#include "model.hxx"
-SG_USING_STD(vector);
+using std::vector;
osg::Texture2D*
SGLoadTexture2D(bool staticTexture, const std::string& path,
#include <vector>
#include <set>
-SG_USING_STD(vector);
-SG_USING_STD(set);
+using std::vector;
+using std::set;
#include <osg/Node>
#include <osg/Texture2D>
#include <simgear/props/props.hxx>
-SG_USING_STD(map);
-SG_USING_STD(string);
+using std::map;
+using std::string;
namespace simgear {
#include <vector>
#include <map>
-SG_USING_STD(vector);
-SG_USING_STD(map);
+using std::vector;
+using std::map;
class ssgBranch;
class ssgLeaf;
#include <simgear/structure/SGReferenced.hxx>
#include <string>
-SG_USING_STD(string);
+using std::string;
#include <osg/ref_ptr>
#include <osg/Array>
#include <algorithm>
#include <vector>
-SG_USING_STD(vector);
+using std::vector;
#include <simgear/environment/visual_enviro.hxx>
#include "sky.hxx"
#include <vector>
-SG_USING_STD(vector);
+using std::vector;
class SGNewCloud;
#include "bbcache.hxx"
-SG_USING_STD(string);
-SG_USING_STD(vector);
+using std::string;
+using std::vector;
/**
* 3D cloud class.
#include <simgear/scene/sky/oursun.hxx>
#include <simgear/scene/sky/stars.hxx>
-SG_USING_STD(vector);
+using std::vector;
typedef struct {
#include <simgear/math/point3d.hxx>
#include <simgear/scene/tgdb/TileEntry.hxx>
-SG_USING_STD(map);
+using std::map;
namespace simgear {
#include "ReaderWriterSTG.hxx"
#include "TileEntry.hxx"
-SG_USING_STD(string);
+using std::string;
using namespace simgear;
ModelLoadHelper *TileEntry::_modelLoader=0;
#include <strings.h>
#endif
-SG_USING_STD(string);
-SG_USING_STD(vector);
+using std::string;
+using std::vector;
namespace simgear {
#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 {
class SGMaterialLib; // forward declaration
-SG_USING_STD(string);
+using std::string;
// Generate a generic sign
#include "SGOceanTile.hxx"
-SG_USING_STD(string);
+using std::string;
class SGBucket;
class SGMaterialLib;
#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.)
#include <osg/Geometry>
#include <osg/Group>
-SG_USING_STD(string);
+using std::string;
class SGMaterial;
class SGMatModel;
#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:
#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>
#include "serial.hxx"
-SG_USING_STD(cout);
-SG_USING_STD(endl);
+using std::cout;
+using std::endl;
int main () {
SGSerialPort port;
#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;
#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;
/**
#include <simgear/compiler.h>
#include <string>
-SG_USING_STD(string);
+using std::string;
/**
#include <fstream>
#include <iostream>
-SG_USING_STD(ifstream);
+using std::ifstream;
\f
#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;
/**