X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FJSBSim%2Fmodels%2Fpropulsion%2FFGEngine.h;h=4876f571f3e9aa6cdf9675c944079067e6713de9;hb=82364aa4da90f9efd0047ababb42fc402f382015;hp=783fbc0fe5fb6fdfc8475bd897fdb5c86ba01c70;hpb=48e948d4bcd65cc8ccdfb23097ed9ea592e4226c;p=flightgear.git diff --git a/src/FDM/JSBSim/models/propulsion/FGEngine.h b/src/FDM/JSBSim/models/propulsion/FGEngine.h index 783fbc0fe..4876f571f 100644 --- a/src/FDM/JSBSim/models/propulsion/FGEngine.h +++ b/src/FDM/JSBSim/models/propulsion/FGEngine.h @@ -4,7 +4,7 @@ Author: Jon S. Berndt Date started: 01/21/99 - ------------- Copyright (C) 1999 Jon S. Berndt (jsb@hal-pc.org) ------------- + ------------- Copyright (C) 1999 Jon S. Berndt (jon@jsbsim.org) ------------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software @@ -43,10 +43,9 @@ SENTRY INCLUDES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ -#include -#include "FGThruster.h" -#include -#include +#include "FGJSBBase.h" +#include "input_output/FGXMLFileRead.h" +#include "math/FGColumnVector3.h" #include #include @@ -56,9 +55,6 @@ DEFINITIONS #define ID_ENGINE "$Id$" -using std::string; -using std::vector; - /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FORWARD DECLARATIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ @@ -75,6 +71,7 @@ class FGPropulsion; class FGAuxiliary; class FGThruster; class Element; +class FGPropertyManager; /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CLASS DOCUMENTATION @@ -159,7 +156,7 @@ public: virtual void SetRunning(bool bb) { Running=bb; } virtual void SetName(string name) { Name = name; } - virtual void AddFeedTank(int tkID); + virtual void AddFeedTank(int tkID, int priority); virtual void SetFuelFreeze(bool f) { FuelFreeze = f; } virtual void SetStarter(bool s) { Starter = s; } @@ -187,8 +184,8 @@ public: bool LoadThruster(Element *el); FGThruster* GetThruster(void) {return Thruster;} - virtual string GetEngineLabels(string delimeter) = 0; - virtual string GetEngineValues(string delimeter) = 0; + virtual std::string GetEngineLabels(const std::string& delimiter) = 0; + virtual std::string GetEngineValues(const std::string& delimiter) = 0; protected: /** Reduces the fuel in the active tanks by the amount required. @@ -205,7 +202,7 @@ protected: virtual double CalcFuelNeed(void); FGPropertyManager* PropertyManager; - string Name; + std::string Name; const int EngineNumber; EngineType Type; double X, Y, Z; @@ -240,20 +237,10 @@ protected: FGAuxiliary* Auxiliary; FGThruster* Thruster; - vector SourceTanks; + std::vector SourceTanks; void Debug(int from); }; } -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #endif