#include <Airports/simple.hxx>
#include <ATC/CommStation.hxx>
+using std::string;
static SGPropertyNode *getNamedNode(SGPropertyNode *prop, const char *name)
{
#include "flightrecorder.hxx"
using namespace FlightRecorder;
+using std::string;
FGFlightRecorder::FGFlightRecorder(const char* pConfigName) :
m_RecorderNode(fgGetNode("/sim/flight-recorder", true)),
SGPropertyNode_ptr BaseNode);
void processSignalList(const char* pSignalType, FlightRecorder::TSignalList& SignalList,
SGPropertyNode_ptr SignalListNode,
- string PropPrefix="", int Count = 1);
+ std::string PropPrefix="", int Count = 1);
bool haveProperty(FlightRecorder::TSignalList& Capture,SGPropertyNode* pProperty);
bool haveProperty(SGPropertyNode* pProperty);
FlightRecorder::TSignalList m_CaptureBool;
int m_TotalRecordSize;
- string m_ConfigName;
+ std::string m_ConfigName;
};
#endif /* FLIGHTRECORDER_HXX_ */
SGPropertyNode_ptr prop;
SGPropertyNode_ptr child = configNode->getChild(i);
- string cname(child->getName());
+ std::string cname(child->getName());
if( configure( cname, child ) )
continue;
if ( (prop = configNode->getChild( "value" )) != NULL ) {
delete _enable_value;
- _enable_value = new string(prop->getStringValue());
+ _enable_value = new std::string(prop->getStringValue());
}
if ( (prop = configNode->getChild( "honor-passive" )) != NULL ) {
#define RM "/autopilot/route-manager/"
using namespace flightgear;
+using std::string;
static bool commandLoadFlightPlan(const SGPropertyNode* arg)
{
// gui.cxx
extern void guiStartInit(osg::GraphicsContext*);
extern bool guiFinishInit();
-extern bool openBrowser(string address);
+extern bool openBrowser(const std::string& address);
extern void mkDialog(const char *txt);
extern void guiErrorMessage(const char *txt);
extern void guiErrorMessage(const char *txt, const sg_throwable &throwable);
openBrowser( "Docs/index.html" );
}
-bool openBrowser(string address)
+bool openBrowser(const std::string& aAddress)
{
bool ok = true;
-
+ string address(aAddress);
+
// do not resolve addresses with given protocol, i.e. "http://...", "ftp://..."
if (address.find("://")==string::npos)
{
using std::endl;
using std::ifstream;
+using std::string;
static float clamp(float f)
{
#include <Viewer/viewer.hxx>
#include "HUD.hxx"
+using std::string;
+
// FIXME
static float get__heading() { return fgGetFloat("/orientation/heading-deg") * M_PI / 180.0; }
static float get__throttleval() { return fgGetFloat("/controls/engines/engine/throttle"); }
#include <Airports/runways.hxx>
#include <Airports/simple.hxx>
+using std::string;
+
KLN89AptPage::KLN89AptPage(KLN89* parent)
: KLN89Page(parent) {
_nSubPages = 8;
#include "fg_os.hxx"
-string homedir;
-string hostname;
+std::string homedir;
+std::string hostname;
// forward declaration.
void fgExitCleanup();
if (std::strlen(t.getOrigin()) != 0)
cerr << " (received from " << t.getOrigin() << ')' << endl;
- } catch (const string &s) {
+ } catch (const std::string &s) {
cerr << "Fatal error: " << s << endl;
} catch (const char *s) {
return 0;
}
-// do some clean up on exit. Specifically we want to call alutExit()
-// which happens in the sound manager destructor.
+// do some clean up on exit. Specifically we want to delete the sound-manager,
+// so OpenAL device and context are released cleanly
void fgExitCleanup() {
if (_bootstrap_OSInit != 0)
extern int idle_state;
-extern string homedir;
-extern string hostname;
+extern std::string homedir;
+extern std::string hostname;
#endif