]> git.mxchange.org Git - flightgear.git/commitdiff
Synchronized FG with the removal of 'using std::*' in simgear's easyxml
authorbcoconni <bcoconni>
Mon, 11 Nov 2013 18:55:54 +0000 (19:55 +0100)
committerJames Turner <zakalawe@mac.com>
Thu, 14 Nov 2013 22:07:50 +0000 (22:07 +0000)
39 files changed:
src/Airports/dynamicloader.cxx
src/Airports/dynamicloader.hxx
src/Airports/sidstar.cxx
src/FDM/JSBSim/FGFDMExec.h
src/FDM/JSBSim/initialization/FGInitialCondition.h
src/FDM/JSBSim/initialization/FGTrim.h
src/FDM/JSBSim/initialization/FGTrimAxis.h
src/FDM/JSBSim/initialization/FGTrimmer.h
src/FDM/JSBSim/input_output/FGScript.h
src/FDM/JSBSim/input_output/FGXMLParse.h
src/FDM/JSBSim/math/FGStateSpace.h
src/FDM/JSBSim/models/FGAerodynamics.h
src/FDM/JSBSim/models/FGBuoyantForces.h
src/FDM/JSBSim/models/FGExternalForce.h
src/FDM/JSBSim/models/FGFCS.h
src/FDM/JSBSim/models/FGGasCell.h
src/FDM/JSBSim/models/FGGroundReactions.h
src/FDM/JSBSim/models/FGLGear.h
src/FDM/JSBSim/models/FGOutput.h
src/FDM/JSBSim/models/flight_control/FGAngles.h
src/FDM/JSBSim/models/flight_control/FGSensorOrientation.h
src/FDM/JSBSim/models/flight_control/FGSwitch.h
src/FDM/JSBSim/models/flight_control/FGWaypoint.h
src/FDM/JSBSim/models/propulsion/FGEngine.h
src/FDM/JSBSim/models/propulsion/FGNozzle.h
src/FDM/JSBSim/models/propulsion/FGPropeller.h
src/FDM/JSBSim/models/propulsion/FGRotor.h
src/FDM/JSBSim/models/propulsion/FGThruster.h
src/FDM/JSBSim/models/propulsion/FGTransmission.cpp
src/FDM/YASim/FGFDM.hpp
src/FDM/YASim/YASim.cxx
src/FDM/YASim/YASim.hxx
src/FDM/YASim/yasim-test.cpp
src/FDM/fdm_shell.cxx
src/Scripting/NasalSys.cxx
src/Scripting/NasalSys_private.hxx
src/Traffic/SchedFlight.cxx
src/Traffic/Schedule.cxx
src/Traffic/TrafficMgr.cxx

index d35891b0df5f95b9fbe2b668e967ef25c960137c..b2b435d73df28bd14ecc59e008ee33025f3375c3 100644 (file)
@@ -27,6 +27,8 @@
 #include <Airports/dynamics.hxx>
 #include <Airports/airport.hxx>
 
+using std::string;
+
 /*****************************************************************************
  * Helper function for parsing position string
  ****************************************************************************/
index b204e9bf1b266d8622aeef93acc1af140a1cd3f8..24500a46a6f3454175b70bcc8d093b96301b2334 100644 (file)
@@ -41,7 +41,7 @@ private:
     void startArc(const XMLAttributes &atts);
   
     FGAirportDynamics* _dynamics;
-    string value;
+    std::string value;
   
     // map from local (groundnet.xml) to global (nav-cache) IDs for nodes
     std::map<int, PositionedID> _idMap;
index ad8d613444454ace564982ecd18580fe3fb76344..af7a020c958de0b769908283f9b7e878c17ab7db 100644 (file)
@@ -35,6 +35,7 @@
 
 using std::cerr;
 using std::endl;
+using std::string;
 
 FGSidStar::FGSidStar(FGAirport *ap) {
      id = ap->getId();
index 833bf41818e6a27d549e7384235c5222d75c926c..3ffef02419e66504ac35ee608f92a4866fb5a5b6 100644 (file)
@@ -190,7 +190,7 @@ class FGFDMExec : public FGJSBBase, public FGXMLFileRead
 {
   struct childData {
     FGFDMExec* exec;
-    string info;
+    std::string info;
     FGColumnVector3 Loc;
     FGColumnVector3 Orient;
     bool mated;
@@ -291,8 +291,9 @@ public:
       @param addModelToPath set to true to add the model name to the
       AircraftPath, defaults to true
       @return true if successful */
-  bool LoadModel(const string& AircraftPath, const string& EnginePath, const string& SystemsPath,
-                 const string& model, bool addModelToPath = true);
+  bool LoadModel(const std::string& AircraftPath, const std::string& EnginePath,
+                 const std::string& SystemsPath, const std::string& model,
+                 bool addModelToPath = true);
 
   /** Loads an aircraft model.  The paths to the aircraft and engine
       config file directories must be set prior to calling this.  See
@@ -304,7 +305,7 @@ public:
       @param addModelToPath set to true to add the model name to the
       AircraftPath, defaults to true
       @return true if successful*/
-  bool LoadModel(const string& model, bool addModelToPath = true);
+  bool LoadModel(const std::string& model, bool addModelToPath = true);
 
   /** Loads a script
       @param Script The full path name and file name for the script to be loaded.
@@ -316,23 +317,24 @@ public:
                       the file specified in the script will be used. If an initialization file 
                       is not given in either place, an error will result.
       @return true if successfully loads; false otherwise. */
-  bool LoadScript(const string& Script, double deltaT=0.0, const string initfile="");
+  bool LoadScript(const std::string& Script, double deltaT=0.0,
+                  const std::string initfile="");
 
   /** Sets the path to the engine config file directories.
       @param path path to the directory under which engine config
       files are kept, for instance "engine"  */
-  bool SetEnginePath(const string& path)   { EnginePath = RootDir + path; return true; }
+  bool SetEnginePath(const std::string& path)   { EnginePath = RootDir + path; return true; }
 
   /** Sets the path to the aircraft config file directories.
       @param path path to the aircraft directory. For instance:
       "aircraft". Under aircraft, then, would be directories for various
       modeled aircraft such as C172/, x15/, etc.  */
-  bool SetAircraftPath(const string& path) { AircraftPath = RootDir + path; return true; }
+  bool SetAircraftPath(const std::string& path) { AircraftPath = RootDir + path; return true; }
   
   /** Sets the path to the systems config file directories.
       @param path path to the directory under which systems config
       files are kept, for instance "systems"  */
-  bool SetSystemsPath(const string& path)   { SystemsPath = RootDir + path; return true; }
+  bool SetSystemsPath(const std::string& path)   { SystemsPath = RootDir + path; return true; }
   
   /// @name Top-level executive State and Model retrieval mechanism
   ///@{
@@ -381,29 +383,29 @@ public:
   ///@}
 
   /// Retrieves the engine path.
-  const string& GetEnginePath(void)    {return EnginePath;}
+  const std::string& GetEnginePath(void)    {return EnginePath;}
   /// Retrieves the aircraft path.
-  const string& GetAircraftPath(void)  {return AircraftPath;}
+  const std::string& GetAircraftPath(void)  {return AircraftPath;}
   /// Retrieves the systems path.
-  const string& GetSystemsPath(void)   {return SystemsPath;}
+  const std::string& GetSystemsPath(void)   {return SystemsPath;}
   /// Retrieves the full aircraft path name.
-  const string& GetFullAircraftPath(void) {return FullAircraftPath;}
+  const std::string& GetFullAircraftPath(void) {return FullAircraftPath;}
 
   /** Retrieves the value of a property.
       @param property the name of the property
       @result the value of the specified property */
-  inline double GetPropertyValue(const string& property)
+  inline double GetPropertyValue(const std::string& property)
   { return instance->GetNode()->GetDouble(property); }
 
   /** Sets a property value.
       @param property the property to be set
       @param value the value to set the property to */
-  inline void SetPropertyValue(const string& property, double value) {
+  inline void SetPropertyValue(const std::string& property, double value) {
     instance->GetNode()->SetDouble(property, value);
   }
 
   /// Returns the model name.
-  const string& GetModelName(void) const { return modelName; }
+  const std::string& GetModelName(void) const { return modelName; }
 /*
   /// Returns the current time.
   double GetSimTime(void);
@@ -414,7 +416,7 @@ public:
   /// Returns a pointer to the property manager object.
   FGPropertyManager* GetPropertyManager(void);
   /// Returns a vector of strings representing the names of all loaded models (future)
-  vector <string> EnumerateFDMs(void);
+  std::vector <std::string> EnumerateFDMs(void);
   /// Gets the number of child FDMs.
   int GetFDMCount(void) const {return (int)ChildFDMList.size();}
   /// Gets a particular child FDM.
@@ -437,7 +439,7 @@ public:
       be logged.
       @param fname the filename of an output directives file.
     */
-  bool SetOutputDirectives(const string& fname)
+  bool SetOutputDirectives(const std::string& fname)
   {return Output->SetDirectivesFile(RootDir + fname);}
 
   /** Forces the specified output object to print its items once */
@@ -449,13 +451,13 @@ public:
   /** Sets (or overrides) the output filename
       @param fname the name of the file to output data to
       @return true if successful, false if there is no output specified for the flight model */
-  bool SetOutputFileName(const int n, const string& fname) { return Output->SetOutputName(n, fname); }
+  bool SetOutputFileName(const int n, const std::string& fname) { return Output->SetOutputName(n, fname); }
 
   /** Retrieves the current output filename.
       @param n index of file
       @return the name of the output file for the output specified by the flight model.
               If none is specified, the empty string is returned. */
-  string GetOutputFileName(int n) const { return Output->GetOutputName(n); }
+  std::string GetOutputFileName(int n) const { return Output->GetOutputName(n); }
 
   /** Executes trimming in the selected mode.
   *   @param mode Specifies how to trim:
@@ -495,7 +497,7 @@ public:
 
   struct PropertyCatalogStructure {
     /// Name of the property.
-    string base_string;
+    std::string base_string;
     /// The node for the property.
     FGPropertyNode_ptr node;
   };
@@ -512,19 +514,19 @@ public:
   *   @param check The string to search for in the property catalog.
   *   @return the carriage-return-delimited string containing all matching strings
   *               in the catalog.  */
-  string QueryPropertyCatalog(const string& check);
+  std::string QueryPropertyCatalog(const std::string& check);
 
   // Print the contents of the property catalog for the loaded aircraft.
   void PrintPropertyCatalog(void);
 
-  vector<string>& GetPropertyCatalog(void) {return PropertyCatalog;}
+  std::vector<std::string>& GetPropertyCatalog(void) {return PropertyCatalog;}
 
   void SetTrimStatus(bool status){ trim_status = status; }
   bool GetTrimStatus(void) const { return trim_status; }
   void SetTrimMode(int mode){ ta_mode = mode; }
   int GetTrimMode(void) const { return ta_mode; }
 
-  string GetPropulsionTankReport();
+  std::string GetPropulsionTankReport();
 
   /// Returns the cumulative simulation time in seconds.
   double GetSimTime(void) const { return sim_time; }
@@ -556,11 +558,11 @@ public:
 
   /** Sets the root directory where JSBSim starts looking for its system directories.
       @param rootDir the string containing the root directory. */
-  void SetRootDir(const string& rootDir) {RootDir = rootDir;}
+  void SetRootDir(const std::string& rootDir) {RootDir = rootDir;}
 
   /** Retrieves the Root Directory.
       @return the string representing the root (base) JSBSim directory. */
-  const string& GetRootDir(void) const {return RootDir;}
+  const std::string& GetRootDir(void) const {return RootDir;}
 
   /** Increments the simulation time if not in Holding mode. The Frame counter
       is also incremented.
@@ -592,14 +594,14 @@ private:
   bool Constructing;
   bool modelLoaded;
   bool IsChild;
-  string modelName;
-  string AircraftPath;
-  string FullAircraftPath;
-  string EnginePath;
-  string SystemsPath;
-  string CFGVersion;
-  string Release;
-  string RootDir;
+  std::string modelName;
+  std::string AircraftPath;
+  std::string FullAircraftPath;
+  std::string EnginePath;
+  std::string SystemsPath;
+  std::string CFGVersion;
+  std::string Release;
+  std::string RootDir;
 
   // Standard Model pointers - shortcuts for internal executive use only.
   FGPropagate* Propagate;
@@ -632,9 +634,9 @@ private:
   // The FDM counter is used to give each child FDM an unique ID. The root FDM has the ID 0
   unsigned int*      FDMctr;
 
-  vector <string> PropertyCatalog;
-  vector <childData*> ChildFDMList;
-  vector <FGModel*> Models;
+  std::vector <std::string> PropertyCatalog;
+  std::vector <childData*> ChildFDMList;
+  std::vector <FGModel*> Models;
 
   bool ReadFileHeader(Element*);
   bool ReadChild(Element*);
index a0807421b1f68416f69460def89f1fd335fac565..5b3c96896b463a88760be529e832e6a3b8c2d50f 100644 (file)
@@ -650,7 +650,7 @@ public:
       @param rstname The name of an initial conditions file
       @param useStoredPath true if the stored path to the IC file should be used
       @return true if successful */
-  bool Load(string rstname, bool useStoredPath = true );
+  bool Load(std::string rstname, bool useStoredPath = true );
 
   /** Get the number of engines running
    */
@@ -676,7 +676,7 @@ private:
 
   speedset lastSpeedSet;
   altitudeset lastAltitudeSet;
-  vector<int> enginesRunning;
+  std::vector<int> enginesRunning;
 
   FGFDMExec *fdmex;
   FGPropertyManager *PropertyManager;
index 518077f3856f155bfd443b1c9e7a6b5702951507..d40eaf24bf0880d2d56222e905c945029db41344 100644 (file)
@@ -131,7 +131,7 @@ class FGTrim : public FGJSBBase
 {
 private:
 
-  vector<FGTrimAxis*> TrimAxes;
+  std::vector<FGTrimAxis*> TrimAxes;
   unsigned int current_axis;
   int N, Nsub;
   TrimMode mode;
index afd516782e4f225984b37e0a51e2f5e1d80b8c6b..e89825660b186bb2fd5e8273c4cef7f3d603349d 100644 (file)
@@ -58,16 +58,16 @@ FORWARD DECLARATIONS
 
 namespace JSBSim {
 
-const string StateNames[] =   { "all","udot","vdot","wdot","qdot","pdot","rdot",
-                                "hmgt","nlf" 
-                              };
-const string ControlNames[] =  { "Throttle","Sideslip","Angle of Attack",
-                                 "Elevator","Ailerons","Rudder",
-                                 "Altitude AGL", "Pitch Angle",
-                                 "Roll Angle", "Flight Path Angle", 
-                                 "Pitch Trim", "Roll Trim", "Yaw Trim",
-                                 "Heading"
-                               };
+const std::string StateNames[] =   { "all","udot","vdot","wdot","qdot","pdot",
+                                     "rdot","hmgt","nlf" 
+                                   };
+const std::string ControlNames[] =  { "Throttle","Sideslip","Angle of Attack",
+                                      "Elevator","Ailerons","Rudder",
+                                      "Altitude AGL", "Pitch Angle",
+                                      "Roll Angle", "Flight Path Angle", 
+                                      "Pitch Trim", "Roll Trim", "Yaw Trim",
+                                      "Heading"
+                                    };
 
 class FGInitialCondition;
 
@@ -113,8 +113,8 @@ public:
   inline State GetStateType(void) { return state; }
   inline Control GetControlType(void) { return control; }
 
-  inline string GetStateName(void) { return StateNames[state]; }
-  inline string GetControlName(void) { return ControlNames[control]; }
+  inline std::string GetStateName(void) { return StateNames[state]; }
+  inline std::string GetControlName(void) { return ControlNames[control]; }
 
   inline double GetControlMin(void) { return control_min; }
   inline double GetControlMax(void) { return control_max; }
index ad116f5daf1779c1c5f6e9a9ddf23a14f313fb1b..66be2f02ede2c0bc3f0ebe540922babc4fbdb89e 100644 (file)
@@ -43,11 +43,11 @@ public:
     };
     FGTrimmer(FGFDMExec * fdm, Constraints * constraints);
     ~FGTrimmer();
-    std::vector<double> constrain(const vector<double> & v);
-    void printSolution(std::ostream & stream, const vector<double> & v);
+    std::vector<double> constrain(const std::vector<double> & v);
+    void printSolution(std::ostream & stream, const std::vector<double> & v);
     void printState(std::ostream & stream);
     double compute_cost();
-    double eval(const vector<double> & v);
+    double eval(const std::vector<double> & v);
     static void limit(double min, double max, double &val)
     {
         if (val<min) val=min;
index aac134c7af6bdd34e0ec6c2b22213af49e9b14bb..21323858d0234335072b82bdb6fcf4efbfb32e2a 100644 (file)
@@ -184,7 +184,7 @@ public:
                       default. If a file name is passed in, it will override the
                       one present in the script.
       @return true if successful */
-  bool LoadScript(string script, double deltaT, const string initfile);
+  bool LoadScript(std::string script, double deltaT, const std::string initfile);
 
   /** This function is called each pass through the executive Run() method IF
       scripting is enabled.
@@ -219,22 +219,22 @@ private:
     double           Delay;
     double           StartTime;
     double           TimeSpan;
-    string           Name;
-    string           Description;
-    vector <FGPropertyNode_ptr>  SetParam;
-    vector <std::string>  SetParamName;
-    vector <FGPropertyNode_ptr>  NotifyProperties;
-    vector <string>              NotifyPropertyNames;
-    vector <string>              DisplayString;
-    vector <eAction> Action;
-    vector <eType>   Type;
-    vector <double>  SetValue;
-    vector <double>  TC;
-    vector <double>  newValue;
-    vector <double>  OriginalValue;
-    vector <double>  ValueSpan;
-    vector <bool>    Transiting;
-    vector <FGFunction*> Functions;
+    std::string           Name;
+    std::string           Description;
+    std::vector <FGPropertyNode_ptr>  SetParam;
+    std::vector <std::string>  SetParamName;
+    std::vector <FGPropertyNode_ptr>  NotifyProperties;
+    std::vector <std::string>              NotifyPropertyNames;
+    std::vector <std::string>              DisplayString;
+    std::vector <eAction> Action;
+    std::vector <eType>   Type;
+    std::vector <double>  SetValue;
+    std::vector <double>  TC;
+    std::vector <double>  newValue;
+    std::vector <double>  OriginalValue;
+    std::vector <double>  ValueSpan;
+    std::vector <bool>    Transiting;
+    std::vector <FGFunction*> Functions;
 
     event() {
       Triggered = false;
@@ -256,18 +256,18 @@ private:
 
   struct LocalProps {
     double *value;
-    string title;
+    std::string title;
     LocalProps(double initial_value=0) {
       value = new double(initial_value);
       title = "";
     }
   };
 
-  string  ScriptName;
+  std::string  ScriptName;
   double  StartTime;
   double  EndTime;
-  vector <struct event> Events;
-  vector <LocalProps*> local_properties;
+  std::vector <struct event> Events;
+  std::vector <LocalProps*> local_properties;
 
   FGFDMExec* FDMExec;
   FGPropertyManager* PropertyManager;
index 350e3e6a7894c01918f59e132dbc422bdba834cc..6367dbb93f73231c1f2ca5a92b1d3be108e1509c 100644 (file)
@@ -83,7 +83,7 @@ public:
 
 private:
   bool first_element_read;
-  mutable string working_string;
+  mutable std::string working_string;
   Element *document;
   Element *current_element;
 };
index ffbf63f3e25a9a8f5dadd59b1ff4a6b75a1576da..df4e7bd2466074ba332cbec8ce12e0febe03a50a 100644 (file)
@@ -172,7 +172,7 @@ public:
         {
             for (int i=0;i<getSize();i++) array[i] = m_components[i]->getDeriv();
         }
-        void set(vector<double> vals)
+        void set(std::vector<double> vals)
         {
             for (int i=0;i<getSize();i++) m_components[i]->set(vals[i]);
             m_stateSpace->run();
index 82e766323039a531f76f0c7443820eec47bd382d..5616a4779690dee90a35f69bbd6b7f18fed48344 100644 (file)
@@ -232,7 +232,7 @@ private:
   typedef std::map<std::string,int> AxisIndex;
   AxisIndex AxisIdx;
   FGFunction* AeroRPShift;
-  typedef vector <FGFunction*> AeroFunctionArray;
+  typedef std::vector <FGFunction*> AeroFunctionArray;
   AeroFunctionArray* AeroFunctions;
   FGColumnVector3 vFnative;
   FGColumnVector3 vFw;
index 4b23841c7259d05bbb5360a53f5f6ecd2486a97d..098e9a49e86c2a52aff629cb883ec0b4125ee780 100644 (file)
@@ -164,18 +164,18 @@ public:
   /** Gets the strings for the current set of gas cells.
       @param delimeter either a tab or comma string depending on output type
       @return a string containing the descriptive names for all parameters */
-  string GetBuoyancyStrings(const string& delimeter);
+  std::string GetBuoyancyStrings(const std::string& delimeter);
 
   /** Gets the coefficient values.
       @param delimeter either a tab or comma string depending on output type
       @return a string containing the numeric values for the current set of
       parameters */
-  string GetBuoyancyValues(const string& delimeter);
+  std::string GetBuoyancyValues(const std::string& delimeter);
 
   FGGasCell::Inputs in;
 
 private:
-  vector <FGGasCell*> Cells;
+  std::vector <FGGasCell*> Cells;
   // Buoyant forces and moments. Excluding the gas weight.
   FGColumnVector3 vTotalForces;  // [lbs]
   FGColumnVector3 vTotalMoments; // [lbs ft]
index 1b26e894a19bf5714687504c3027b7b6c6c39b82..5cfb5f02ef5a99d42fe296d97a98e57476e7d040 100644 (file)
@@ -166,8 +166,8 @@ public:
   
 private:
 
-  string Frame;
-  string Name;
+  std::string Frame;
+  std::string Name;
   FGFunction* Magnitude_Function;
   FGColumnVector3 vDirection;
   double magnitude;
index 316cd630a32418e11ac51890ec2bd9059f2fd96d..d67aea4088bdccc5f4d2b48529f2aa11b6654510 100644 (file)
@@ -246,14 +246,14 @@ public:
       @return throttle command in range from 0 - 1.0 for the given engine */
   double GetThrottleCmd(int engine) const;
 
-  const vector<double>& GetThrottleCmd() const {return ThrottleCmd;}
+  const std::vector<double>& GetThrottleCmd() const {return ThrottleCmd;}
 
   /** Gets the mixture command.
       @param engine engine ID number
       @return mixture command in range from 0 - 1.0 for the given engine */
   double GetMixtureCmd(int engine) const { return MixtureCmd[engine]; }
 
-  const vector<double>& GetMixtureCmd() const {return MixtureCmd;}
+  const std::vector<double>& GetMixtureCmd() const {return MixtureCmd;}
 
   /** Gets the prop pitch command.
       @param engine engine ID number
@@ -325,20 +325,20 @@ public:
       @return throttle position for the given engine in range from 0 - 1.0 */
   double GetThrottlePos(int engine) const;
 
-  const vector<double>& GetThrottlePos() const {return ThrottlePos;}
+  const std::vector<double>& GetThrottlePos() const {return ThrottlePos;}
 
   /** Gets the mixture position.
       @param engine engine ID number
       @return mixture position for the given engine in range from 0 - 1.0 */
   double GetMixturePos(int engine) const { return MixturePos[engine]; }
 
-  const vector<double>& GetMixturePos() const {return MixturePos;}
+  const std::vector<double>& GetMixturePos() const {return MixturePos;}
 
   /** Gets the steering position.
       @return steering position in degrees */
   double GetSteerPosDeg(int gear) const { return SteerPosDeg[gear]; }
 
-  const vector<double>& GetSteerPosDeg() const {return SteerPosDeg;}
+  const std::vector<double>& GetSteerPosDeg() const {return SteerPosDeg;}
 
   /** Gets the gear position (0 up, 1 down), defaults to down
       @return gear position (0 up, 1 down) */
@@ -357,14 +357,14 @@ public:
       @return prop pitch position for the given engine in range from 0 - 1.0 */
   double GetPropAdvance(int engine) const { return PropAdvance[engine]; }
 
-  const vector<double>& GetPropAdvance() const { return PropAdvance; }
+  const std::vector<double>& GetPropAdvance() const { return PropAdvance; }
 
   /** Gets the prop feather position.
       @param engine engine ID number
       @return prop fether for the given engine (on / off)*/
   bool GetPropFeather(int engine) const { return PropFeather[engine]; }
 
-  const vector<bool>& GetPropFeather() const { return PropFeather; }
+  const std::vector<bool>& GetPropFeather() const { return PropFeather; }
   //@}
 
   /** Retrieves all component names for inclusion in output stream
@@ -531,7 +531,7 @@ public:
       @return the brake setting for the supplied brake group argument */
   double GetBrake(FGLGear::BrakeGroup bg);
 
-  const vector<double>& GetBrakePos() const {return BrakePos;}
+  const std::vector<double>& GetBrakePos() const {return BrakePos;}
 
   /** Gets the left brake.
       @return the left brake setting. */
@@ -585,7 +585,7 @@ private:
   std::vector <bool> PropFeather;
   std::vector <double> SteerPosDeg;
   double LeftBrake, RightBrake, CenterBrake; // Brake settings
-  vector <double> BrakePos; // left, center, right - defined by FGLGear:: enum
+  std::vector <double> BrakePos; // left, center, right - defined by FGLGear:: enum
   double GearCmd,GearPos;
   double TailhookPos, WingFoldPos;
 
index a4851e9b9e5146868cd2771effeb408ca8a1a219..df8cde022525d1ee93666ab697624c8d1dcc5088 100644 (file)
@@ -244,9 +244,9 @@ private:
   double Xradius, Yradius, Zradius; // [ft]
   double Xwidth, Ywidth, Zwidth;    // [ft]
   double ValveCoefficient;          // [ft^4 sec / slug]
-  typedef vector <FGFunction*> CoeffArray;
+  typedef std::vector <FGFunction*> CoeffArray;
   CoeffArray HeatTransferCoeff;
-  typedef vector <FGBallonet*> BallonetArray;
+  typedef std::vector <FGBallonet*> BallonetArray;
   BallonetArray Ballonet;
   // Variables
   double Pressure;          // [lbs/ft^2]
@@ -350,7 +350,7 @@ private:
   double Xradius, Yradius, Zradius; // [ft]
   double Xwidth, Ywidth, Zwidth;    // [ft]
   double ValveCoefficient;          // [ft^4 sec / slug]
-  typedef vector <FGFunction*> CoeffArray;
+  typedef std::vector <FGFunction*> CoeffArray;
   CoeffArray HeatTransferCoeff;     // [lbs ft / sec]
   FGFunction* BlowerInput;          // [ft^3 / sec]
   FGGasCell* Parent;
index 503f6bee603ff9b136763753b70a976a2dba1798..8af49bda9f96a745bc0dc32cc8e0e202f0024923 100644 (file)
@@ -99,8 +99,8 @@ public:
   double GetForces(int idx) const {return vForces(idx);}
   const FGColumnVector3& GetMoments(void) const {return vMoments;}
   double GetMoments(int idx) const {return vMoments(idx);}
-  string GetGroundReactionStrings(string delimeter) const;
-  string GetGroundReactionValues(string delimeter) const;
+  std::string GetGroundReactionStrings(std::string delimeter) const;
+  std::string GetGroundReactionValues(std::string delimeter) const;
   bool GetWOW(void) const;
 
   int GetNumGearUnits(void) const { return (int)lGear.size(); }
@@ -111,15 +111,15 @@ public:
   FGLGear* GetGearUnit(int gear) const { return lGear[gear]; }
 
   void RegisterLagrangeMultiplier(LagrangeMultiplier* lmult) { multipliers.push_back(lmult); }
-  vector <LagrangeMultiplier*>* GetMultipliersList(void) { return &multipliers; }
+  std::vector <LagrangeMultiplier*>* GetMultipliersList(void) { return &multipliers; }
 
   FGLGear::Inputs in;
 
 private:
-  vector <FGLGear*> lGear;
+  std::vector <FGLGear*> lGear;
   FGColumnVector3 vForces;
   FGColumnVector3 vMoments;
-  vector <LagrangeMultiplier*> multipliers;
+  std::vector <LagrangeMultiplier*> multipliers;
 
   void bind(void);
   void Debug(int from);
index 7059ad2d8048d4edf7197d957761d7e718b9348c..83b039aaed42cfe9bc98f632d93d7b235cb334ba 100644 (file)
@@ -252,7 +252,7 @@ public:
   double GetLocalGear(int idx) const { return vLocalGear(idx); }
 
   /// Gets the name of the gear
-  const string& GetName(void) const {return name; }
+  const std::string& GetName(void) const {return name; }
   /// Gets the Weight On Wheels flag value
   bool    GetWOW(void) const {return WOW; }
   /// Gets the current compressed length of the gear in feet
index dcbc8adc153c9e9cc28b9b71cbcc602881eee9d4..8336151fbf3b14fd4df89e862779487bc2e188d6 100644 (file)
@@ -221,10 +221,10 @@ public:
       @param idx ID of the output instance from which the name identifier must
                  be obtained
       @result the name identifier.*/
-  string GetOutputName(unsigned int idx) const;
+  std::string GetOutputName(unsigned int idx) const;
 
 private:
-  vector<FGOutputType*> OutputTypes;
+  std::vector<FGOutputType*> OutputTypes;
 
   void Debug(int from);
 };
index 4a75bfecc9b577197b044919d7baf78e3d7b91ba..35098f511faaaefb1245b8f1bbca289a17744e99 100755 (executable)
@@ -98,7 +98,7 @@ private:
   double target_angle_unit;
   double source_angle_unit;
   double output_unit;
-  string unit;
+  std::string unit;
 
   void Debug(int from);
 };
index 4defe4f7a76451d2fa454e8b79572a125b515dab..99f5d1347f846c5e2db6edf1e8c968c8f9bd017c 100644 (file)
@@ -83,7 +83,7 @@ public:
 
     Element* axis_element = element->FindElement("axis");
     if (axis_element) {
-      string sAxis = element->FindElementValue("axis");
+      std::string sAxis = element->FindElementValue("axis");
       if (sAxis == "X" || sAxis == "x") {
         axis = 1;
       } else if (sAxis == "Y" || sAxis == "y") {
index 625bdb179a6d7b48c4b978b59fd52fe44b937ac2..5dd2949ce4f2c8490a369a9a9430ef875e388057 100644 (file)
@@ -171,7 +171,7 @@ private:
       sign       = 1.0;
     }
 
-    void setTestValue(string value, string Name, FGPropertyManager* propMan) {
+    void setTestValue(std::string value, std::string Name, FGPropertyManager* propMan) {
       if (value.empty()) {
         std::cerr << "No VALUE supplied for switch component: " << Name << std::endl;
       } else {
@@ -197,7 +197,7 @@ private:
 
   };
 
-  vector <test*> tests;
+  std::vector <test*> tests;
 
   void Debug(int from);
 };
index 272d1a384781fcf2ef7660afc47ab20037a207f7..bf7ba66265f1b2a4268a13a32eb0608aa5d2d85b 100755 (executable)
@@ -121,7 +121,7 @@ private:
   double source_latitude_unit;
   double source_longitude_unit;
   double radius;
-  string unit;
+  std::string unit;
   enum {eNone=0, eDeg, eRad, eFeet, eMeters} eUnit;
   enum {eNoType=0, eHeading, eDistance} WaypointType;
 
index de08492cc8f4aee8c0d59f7c8c759cc7ac4d1a90..aeb243f6e7f6240ed0ebc52cde70cfe2487677c9 100644 (file)
@@ -143,12 +143,12 @@ public:
     FGColumnVector3 AeroUVW;
     FGColumnVector3 AeroPQR;
     FGColumnVector3 PQR;
-    vector <double> ThrottleCmd;
-    vector <double> MixtureCmd;
-    vector <double> ThrottlePos;
-    vector <double> MixturePos;
-    vector <double> PropAdvance;
-    vector <bool> PropFeather;
+    std::vector <double> ThrottleCmd;
+    std::vector <double> MixtureCmd;
+    std::vector <double> ThrottlePos;
+    std::vector <double> MixturePos;
+    std::vector <double> PropAdvance;
+    std::vector <bool> PropFeather;
     double TotalDeltaT;
   };
 
@@ -158,7 +158,7 @@ public:
   enum EngineType {etUnknown, etRocket, etPiston, etTurbine, etTurboprop, etElectric};
 
   EngineType             GetType(void) const { return Type; }
-  virtual const string&  GetName(void) const { return Name; }
+  virtual const std::string&  GetName(void) const { return Name; }
 
   // Engine controls
   virtual double  GetThrottleMin(void) const { return MinThrottle; }
@@ -178,7 +178,7 @@ public:
   virtual void SetStarved(void)    { Starved = true; }
 
   virtual void SetRunning(bool bb) { Running=bb; }
-  virtual void SetName(const string& name) { Name = name; }
+  virtual void SetName(const std::string& name) { Name = name; }
   virtual void SetFuelFreeze(bool f) { FuelFreeze = f; }
 
   virtual void SetStarter(bool s) { Starter = s; }
index 86576d57f4ed283eb990dc2579e35b7efea98e16..68f5d28f1b0183e264f2315e5ee5a64d26d1e998 100644 (file)
@@ -90,8 +90,8 @@ public:
   ~FGNozzle();
 
   double Calculate(double vacThrust);
-  string GetThrusterLabels(int id, const string& delimeter);
-  string GetThrusterValues(int id, const string& delimeter);
+  std::string GetThrusterLabels(int id, const std::string& delimeter);
+  std::string GetThrusterValues(int id, const std::string& delimeter);
 
 private:
 //  double PE;
index 1b353d2cba81a1437cfe90a5f97a3d387c124433..ceb4b326ade468de708ceae6454545c7f59aebd3 100644 (file)
@@ -256,8 +256,8 @@ public:
       @return the thrust in pounds */
   double Calculate(double EnginePower);
   FGColumnVector3 GetPFactor(void) const;
-  string GetThrusterLabels(int id, const string& delimeter);
-  string GetThrusterValues(int id, const string& delimeter);
+  std::string GetThrusterLabels(int id, const std::string& delimeter);
+  std::string GetThrusterValues(int id, const std::string& delimeter);
 
   void   SetReverseCoef (double c) { Reverse_coef = c; }
   double GetReverseCoef (void) const { return Reverse_coef; }
index 8bb4b743c0152f59fa4e3cdf10b080ab0a769734..50c9072ff83d48ba9831325c10070f3f955763d8 100644 (file)
@@ -318,16 +318,16 @@ public:
   void SetLongitudinalCtrl(double c) { LongitudinalCtrl = c; }
 
   // Stubs. Only main rotor RPM is returned
-  string GetThrusterLabels(int id, const string& delimeter);
-  string GetThrusterValues(int id, const string& delimeter);
+  std::string GetThrusterLabels(int id, const std::string& delimeter);
+  std::string GetThrusterValues(int id, const std::string& delimeter);
 
 private:
 
   // assist in parameter retrieval
-  double ConfigValueConv( Element* e, const string& ename, double default_val=0.0, 
-                                      const string& unit = "", bool tell=false);
+  double ConfigValueConv( Element* e, const std::string& ename, double default_val=0.0, 
+                                      const std::string& unit = "", bool tell=false);
 
-  double ConfigValue( Element* e, const string& ename, double default_val=0.0,
+  double ConfigValue( Element* e, const std::string& ename, double default_val=0.0,
                                   bool tell=false);
 
   double Configure(Element* rotor_element);
index 2b8fac0441f67a0a64e14731f9fe90bb22ec67f2..b783d406019ab6cd2e3768159e82dc41b5db4352 100644 (file)
@@ -96,21 +96,21 @@ public:
        vFn(1) = Thrust;
        return Thrust;
   }
-  void SetName(string name) {Name = name;}
+  void SetName(std::string name) {Name = name;}
   virtual void SetRPM(double rpm) {};
   virtual void SetEngineRPM(double rpm) {};
   virtual double GetPowerRequired(void) {return 0.0;}
   virtual void SetdeltaT(double dt) {deltaT = dt;}
   double GetThrust(void) const {return Thrust;}
   eType GetType(void) {return Type;}
-  string GetName(void) {return Name;}
+  std::string GetName(void) {return Name;}
   void SetReverserAngle(double angle) {ReverserAngle = angle;}
   double GetReverserAngle(void) const {return ReverserAngle;}
   virtual double GetRPM(void) const { return 0.0; };
   virtual double GetEngineRPM(void) const { return 0.0; };
   double GetGearRatio(void) {return GearRatio; }
-  virtual string GetThrusterLabels(int id, const string& delimeter);
-  virtual string GetThrusterValues(int id, const string& delimeter);
+  virtual std::string GetThrusterLabels(int id, const std::string& delimeter);
+  virtual std::string GetThrusterValues(int id, const std::string& delimeter);
 
   struct Inputs {
     double TotalDeltaT;
@@ -128,7 +128,7 @@ public:
 
 protected:
   eType Type;
-  string Name;
+  std::string Name;
   double Thrust;
   double PowerRequired;
   double deltaT;
index afdd1f3fba6db3393e6c23f9635c1b79ee0154ec..97bad3f81da7ffc90b9b7beb9d1af4489708c480 100644 (file)
@@ -44,6 +44,7 @@ INCLUDES
 
 using std::cout;
 using std::endl;
+using std::string;
 
 namespace JSBSim {
 
index 25aa1a67cee5ad026477e7745e6d5adbcd43ff65..4601951bd8b7dd3cfb45823ebb8d01186c090ce2 100644 (file)
@@ -103,9 +103,9 @@ private:
 
     SGPropertyNode_ptr _turb_magnitude_norm, _turb_rate_hz;
     SGPropertyNode_ptr _gross_weight_lbs;
-    vector<SGPropertyNode_ptr> _tank_level_lbs;
-    vector<ThrusterProps> _thrust_props;
-    vector<FuelProps> _fuel_props;
+    std::vector<SGPropertyNode_ptr> _tank_level_lbs;
+    std::vector<ThrusterProps> _thrust_props;
+    std::vector<FuelProps> _fuel_props;
 };
 
 }; // namespace yasim
index 97c297cb70f582d56c34d532fb0aaa7083abce36..d82d14398c0a2628430360ae2f0266a10a956e15 100644 (file)
@@ -32,6 +32,7 @@
 #include "YASim.hxx"
 
 using namespace yasim;
+using std::string;
 
 static const float YASIM_PI = 3.14159265358979323846;
 static const float RAD2DEG = 180/YASIM_PI;
index 4948f5e28c7df0bb5a7867808dba195179e839a4..5739032af5534ad2e6f004a4d9a6a8ccebf8946e 100644 (file)
@@ -57,7 +57,7 @@ public:
     SGPropertyNode_ptr _catapult_launch_cmd, _tailhook_position_norm;
     SGPropertyNode_ptr _launchbar_position_norm, _launchbar_holdback_pos_norm;
     SGPropertyNode_ptr _launchbar_state, _launchbar_strop;
-    vector<GearProps> _gearProps;
+    std::vector<GearProps> _gearProps;
 };
 
 #endif // _YASIM_HXX
index 41ff55029d495dd0f70aadbabcf442a70d13c747..87b834e53b1d51d017d3603c1c4fc0d96200eb6c 100644 (file)
@@ -11,6 +11,7 @@
 #include "Airplane.hpp"
 
 using namespace yasim;
+using std::string;
 
 // Stubs.  Not needed by a batch program, but required to link.
 bool fgSetFloat (const char * name, float val) { return false; }
index 21a3b79df7e0824168cb6d2e228e8051dcf9292d..cb3805d7b88d656f492ed4d2e17285e1da22a0d4 100644 (file)
@@ -59,6 +59,8 @@
 #include <FDM/YASim/YASim.hxx>
 #endif
 
+using std::string;
+
 FDMShell::FDMShell() :
   _tankProperties( fgGetNode("/consumables/fuel", true) ),
   _impl(NULL),
index 0b3422472fcd7e9e8377bd78fb202b6bf63acde2..caaf6a5821adcd93e7557bf2a3827db02e926af0 100644 (file)
@@ -48,6 +48,8 @@
 #include <Main/fg_props.hxx>
 
 using std::map;
+using std::string;
+using std::vector;
 
 void postinitNasalGUI(naRef globals, naContext c);
 
index 225af03cf490e213bd5ad944a0ee32fc194dc60d..4eca7776ad6e59fe6f5b49c0a054ce49f59ed8eb 100644 (file)
@@ -46,7 +46,7 @@ private:
     bool _dead;
     long _last_int;
     double _last_float;
-    string _last_string;
+    std::string _last_string;
 };
 
 
index 4dc29b519206132c1879e9e5843d037ec67b53b8..228d67cbf96ad949826696fc995aaee86de7f2b4 100644 (file)
@@ -66,6 +66,7 @@
 
 #include "SchedFlight.hxx"
 
+using std::string;
 
 /******************************************************************************
  * FGScheduledFlight stuff
index 482727cb3e72b5bfde5bae877722544b847fb5e8..a47dfd2ca3493c2485be2d0b1181736b07747e0d 100644 (file)
@@ -55,6 +55,8 @@
 #include "SchedFlight.hxx"
 #include "TrafficMgr.hxx"
 
+using std::string;
+
 /******************************************************************************
  * the FGAISchedule class contains data members and code to maintain a
  * schedule of Flights for an artificially controlled aircraft.
index 731687c68b00c1759f759702479e523847dbb683..22149877d0a88cae1508efb574797153871b5a42 100644 (file)
@@ -75,6 +75,8 @@
 using std::sort;
 using std::strcmp;
 using std::endl;
+using std::string;
+using std::vector;
 
 /**
  * Thread encapsulating parsing the traffic schedules.