# include "config.h"
#endif
-#include <stdio.h>
-#include <string.h> // strdup
+#include <cstdio>
+#include <cstring> // strdup
#include <plib/ul.h>
#include <simgear/structure/exception.hxx>
#include <Main/globals.hxx>
+#include <Main/fg_init.hxx>
#include <Main/fg_props.hxx>
#include <Main/viewmgr.hxx>
#include <Cockpit/panel.hxx>
#ifndef _AIRCRAFT_HXX
#define _AIRCRAFT_HXX
-
-
-#ifndef __cplusplus
-# error This library requires C++
-#endif
-
-
-#include <FDM/flight.hxx>
-#include <Main/fg_init.hxx>
-
-#include "controls.hxx"
-
+
+class FGInterface;
+class FGControls;
+class SGPropertyNode;
// Define a structure containing all the parameters for an aircraft
typedef struct{
//
// $Id$
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#include <simgear/compiler.h>
#include <simgear/debug/logstream.hxx>
#ifndef _CONTROLS_HXX
#define _CONTROLS_HXX
-#include <simgear/props/props.hxx>
#include <simgear/structure/subsystem_mgr.hxx>
-#include <Main/globals.hxx>
-
-#ifndef __cplusplus
-# error This library requires C++
-#endif
-
-
// Define a structure containing the control parameters
class FGControls : public SGSubsystem
#include <Main/main.hxx>
#include <Main/fg_props.hxx>
#include <Aircraft/aircraft.hxx>
+#include <FDM/flight.hxx>
#include "environment.hxx"
#include "environment_ctrl.hxx"
#include <simgear/math/sg_geodesy.hxx>
#include <simgear/misc/sg_path.hxx>
-#include <Aircraft/aircraft.hxx>
#include <Main/globals.hxx>
#include <Main/fg_props.hxx>
+#include <Aircraft/controls.hxx>
#include "Balloon.h"
+
/****************************************************************************/
/********************************** CODE ************************************/
/****************************************************************************/
/* INCLUDES */
/****************************************************************************/
-#include <Aircraft/aircraft.hxx>
#include <FDM/flight.hxx>
#include "BalloonSim.h"
#include "uiuc_gear.h"
-
-
-using std::cerr;
-
-
#define HEIGHT_AGL_WHEEL d_wheel_rwy_local_v[2]
#include "uiuc_warnings_errors.h"
-SG_USING_STD (cerr);
-SG_USING_STD (endl);
+using std::cerr;
+using std::endl;
#ifndef _MSC_VER
-SG_USING_STD (exit);
+using std::exit;
#endif
void uiuc_warnings_errors(int errorCode, std::string line)
# include <config.h>
#endif
+#include <iostream>
+
#include <simgear/compiler.h>
#include <simgear/misc/sg_path.hxx>
#include <Aircraft/aircraft.hxx>
//#include "uiuc_network.h"
#include "uiuc_get_flapper.h"
-using std::cout;
-using std::endl;
-
extern "C" void uiuc_initial_init ();
extern "C" void uiuc_defaults_inits ();
extern "C" void uiuc_vel_init ();
SGPath path(globals->get_fg_root());
path.append(fgGetString("/sim/aircraft-dir"));
path.append("aircraft.dat");
- cout << "We are using "<< path.str() << endl;
+ std::cout << "We are using "<< path.str() << std::endl;
uiuc_initializemaps(); // Initialize the <string,int> maps
uiuc_menu(path.str()); // Read the specified aircraft file
}
#include <Main/globals.hxx>
#include <Scenery/scenery.hxx>
#include <Aircraft/aircraft.hxx>
+#include <Aircraft/controls.hxx>
+#include <FDM/flight.hxx>
#include <Environment/environment.hxx>
#include <Environment/environment_mgr.hxx>
#include <Main/viewer.hxx>
#include <simgear/sg_inlines.h>
#include <simgear/math/sg_random.h>
#include <simgear/math/vector.hxx>
+#include <simgear/structure/exception.hxx>
#include <Aircraft/aircraft.hxx>
#include <Navaids/navlist.hxx>
#include <simgear/timing/lowleveltime.h>
#include <Aircraft/aircraft.hxx>
+#include <Aircraft/controls.hxx>
#include <Aircraft/replay.hxx>
#include <Airports/apt_loader.hxx>
#include <Airports/runways.hxx>
#include <iostream>
#include <Aircraft/aircraft.hxx>
+#include <FDM/flight.hxx>
+
#include <Time/tmp.hxx>
#include <Environment/environment.hxx>
#include <vector>
#include <string>
-SG_USING_STD( vector );
-SG_USING_STD( string );
+using std::vector;
+using std::string;
typedef vector<string> string_list;
#include "splash.hxx"
#include "main.hxx"
#include "util.hxx"
-
+#include "fg_init.hxx"
static double real_delta_time_sec = 0.0;
double delta_time_sec = 0.0;
#include "navrecord.hxx"
#include "navdb.hxx"
-SG_USING_STD( string );
+using std::string;
// load and initialize the navigational databases
#include <simgear/debug/logstream.hxx>
#include <simgear/io/iochannel.hxx>
-#include <Aircraft/aircraft.hxx>
+#include <Aircraft/controls.hxx>
+#include <Main/globals.hxx>
#include "joyclient.hxx"
#include "SchedFlight.hxx"
#include "TrafficMgr.hxx"
-SG_USING_STD( sort );
+using std::sort;
/******************************************************************************
* the FGAISchedule class contains data members and code to maintain a
#include <simgear/constants.h>
#include <simgear/math/sg_geodesy.hxx>
-SG_USING_STD(cout);
-SG_USING_STD(endl);
+using std::cout;
+using std::endl;
int main() {
// for each lat/lon given in goedetic coordinates, calculate
#include "MIDG-II.hxx"
-SG_USING_STD(cout);
-SG_USING_STD(endl);
+using std::cout;
+using std::endl;
MIDGTrack::MIDGTrack() {};
#include <simgear/io/iochannel.hxx>
#include <simgear/serial/serial.hxx>
-SG_USING_STD(cout);
-SG_USING_STD(endl);
-SG_USING_STD(string);
-SG_USING_STD(vector);
+using std::cout;
+using std::endl;
+using std::string;
+using std::vector;
// encapsulate a midg integer time (fixme, assumes all times in a track
#include "MIDG-II.hxx"
-SG_USING_STD(cout);
-SG_USING_STD(endl);
-SG_USING_STD(string);
+using std::cout;
+using std::endl;
+using std::string;
// Network channels
#include "UGear.hxx"
-SG_USING_STD(cout);
-SG_USING_STD(endl);
+using std::cout;
+using std::endl;
#define START_OF_MSG0 147
#include <simgear/io/iochannel.hxx>
#include <simgear/serial/serial.hxx>
-SG_USING_STD(cout);
-SG_USING_STD(endl);
-SG_USING_STD(string);
-SG_USING_STD(vector);
+using std::cout;
+using std::endl;
+using std::string;
+using std::vector;
enum ugPacketType {
#include <simgear/io/iochannel.hxx>
#include <simgear/serial/serial.hxx>
-SG_USING_STD(cout);
-SG_USING_STD(endl);
-SG_USING_STD(string);
-SG_USING_STD(queue);
+using std::cout;
+using std::endl;
+using std::string;
+using std::queue;
// Manage UGear Command Channel
#include "UGear_telnet.hxx"
-SG_USING_STD(cout);
-SG_USING_STD(endl);
-SG_USING_STD(string);
+using std::cout;
+using std::endl;
+using std::string;
// Network channels
#include "gps.hxx"
-SG_USING_STD(cout);
-SG_USING_STD(endl);
+using std::cout;
+using std::endl;
GPSTrack::GPSTrack() {};
#include <string>
#include <vector>
-SG_USING_STD(cout);
-SG_USING_STD(endl);
-SG_USING_STD(string);
-SG_USING_STD(vector);
+using std::cout;
+using std::endl;
+using std::string;
+using std::vector;
// encapsulate a gps integer time (fixme, assumes all times in a track
#include "gps.hxx"
-SG_USING_STD(cout);
-SG_USING_STD(endl);
-SG_USING_STD(string);
+using std::cout;
+using std::endl;
+using std::string;
// Network channels
#include <simgear/bucket/newbucket.hxx>
-SG_USING_STD(string);
-SG_USING_STD(cout);
-SG_USING_STD(endl);
+using std::string;
+using std::cout;
+using std::endl;
static string server = "scenery.flightgear.org";
static string source_module = "Scenery";