33 #ifndef FGSCRIPT_HEADER_H 34 #define FGSCRIPT_HEADER_H 43 #include "FGJSBBase.h" 44 #include "FGPropertyReader.h" 45 #include "input_output/FGPropertyManager.h" 46 #include "simgear/misc/sg_path.hxx" 52 #define ID_FGSCRIPT "$Id: FGScript.h,v 1.31 2017/02/25 14:23:18 bcoconni Exp $" 192 bool LoadScript(
const SGPath& script,
double default_dT,
193 const SGPath& initfile);
200 void ResetEvents(
void);
227 std::string Description;
228 std::vector <FGPropertyNode_ptr> SetParam;
229 std::vector <std::string> SetParamName;
230 std::vector <FGPropertyNode_ptr> NotifyProperties;
231 std::vector <std::string> NotifyPropertyNames;
232 std::vector <std::string> DisplayString;
233 std::vector <eAction> Action;
234 std::vector <eType> Type;
235 std::vector <double> SetValue;
236 std::vector <double> TC;
237 std::vector <double> newValue;
238 std::vector <double> OriginalValue;
239 std::vector <double> ValueSpan;
240 std::vector <bool> Transiting;
241 std::vector <FGFunction*> Functions;
248 Notify = Notified = NotifyKML =
false;
261 std::string ScriptName;
264 std::vector <struct event> Events;
270 void Debug(
int from);
static char reset[5]
resets text properties
bool LoadScript(const SGPath &script, double default_dT, const SGPath &initfile)
Loads a script to drive JSBSim (usually in standalone mode).
bool RunScript(void)
This function is called each pass through the executive Run() method IF scripting is enabled...
Encapsulates the JSBSim scripting capability.
~FGScript()
Default destructor.
FGScript(FGFDMExec *exec)
Default constructor.
Encapsulates a condition, which is used in parts of JSBSim including switches.
Encapsulates the JSBSim simulation executive.