FORWARD DECLARATIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-COMMENTS, REFERENCES, and NOTES [use "class documentation" below for API docs]
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
+namespace JSBSim {
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CLASS DOCUMENTATION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
/** Encapsulates the JSBSim scripting capability.
- @author Jon S. Berndt
- @version $Id$
-
<h4>Scripting support provided via FGScript.</h4>
<p>There is simple scripting support provided in the FGScript
- class. Commands are specified using the <u>Simple Scripting
- Directives for JSBSim</u> (SSDJ). The script file is in XML
+ class. Commands are specified using the <em>Simple Scripting
+ Directives for JSBSim</em> (SSDJ). The script file is in XML
format. A test condition (or conditions) can be set up in the
script and when the condition evaluates to true, the specified
action[s] is/are taken. A test condition can be <em>persistent</em>,
to be used are specified in the "use" lines. Next,
comes the "run" section, where the conditions are
described in "when" clauses.</p>
+ @author Jon S. Berndt
+ @version "$Id$"
*/
The language is the Simple Script Directives for JSBSim (SSDJ).
@param script the filename (including path name, if any) for the script.
@return true if successful */
- bool LoadScript(string script);
+ bool LoadScript( string script );
/** This function is called each pass through the executive Run() method IF
scripting is enabled.
};
struct condition {
- vector <eParam> TestParam;
- vector <eParam> SetParam;
+ vector <FGPropertyManager*> TestParam;
+ vector <FGPropertyManager*> SetParam;
vector <double> TestValue;
vector <double> SetValue;
vector <string> Comparison;
FGFDMExec* FDMExec;
FGState* State;
+ FGPropertyManager* PropertyManager;
void Debug(int from);
};
-
+}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#endif