int data_in_port;
int data_out_port;
int cmd_port;
- string fdm_host;
+ std::string fdm_host;
simgear::Socket data_client;
simgear::Socket data_server;
public:
// Constructor
- FGExternalNet( double dt, string host, int dop, int dip, int cp );
+ FGExternalNet( double dt, std::string host, int dop, int dip, int cp );
// Destructor
~FGExternalNet();
bool valid;
- string fifo_name_1;
- string fifo_name_2;
+ std::string fifo_name_1;
+ std::string fifo_name_2;
FILE *pd1;
FILE *pd2;
- string _protocol;
+ std::string _protocol;
FGNetCtrls ctrls;
FGNetFDM fdm;
double last_weight;
double last_cg_offset;
- vector <string> property_names;
- vector <SGPropertyNode_ptr> nodes;
+ std::vector <std::string> property_names;
+ std::vector <SGPropertyNode_ptr> nodes;
// Protocol specific init routines
void init_binary();
public:
// Constructor
- FGExternalPipe( double dt, string fifo_name, string protocol );
+ FGExternalPipe( double dt, std::string fifo_name, std::string protocol );
// Destructor
~FGExternalPipe();
if ( !fgHasNode("/sim/presets/speed-set") ) {
set_V_calibrated_kts(0.0);
} else {
- const string speedset = fgGetString("/sim/presets/speed-set");
+ const std::string speedset = fgGetString("/sim/presets/speed-set");
if ( speedset == "knots" || speedset == "KNOTS" ) {
set_V_calibrated_kts( fgGetDouble("/sim/presets/airspeed-kt") );
} else if ( speedset == "mach" || speedset == "MACH" ) {
#include <math.h>
-#include <list>
-#include <vector>
-#include <string>
-
#include <simgear/compiler.h>
#include <simgear/constants.h>
#include <simgear/structure/subsystem_mgr.hxx>
#include <simgear/props/tiedpropertylist.hxx>
#include <FDM/groundcache.hxx>
-using std::list;
-using std::vector;
-using std::string;
-
namespace simgear {
class BVHMaterial;
}
do_property_cycle (const SGPropertyNode * arg)
{
SGPropertyNode * prop = get_prop(arg);
- vector<SGPropertyNode_ptr> values = arg->getChildren("value");
+ std::vector<SGPropertyNode_ptr> values = arg->getChildren("value");
bool wrap = arg->getBoolValue("wrap", true);
// compatible with knob/pick animations