]> git.mxchange.org Git - flightgear.git/blobdiff - src/Systems/static.hxx
Fix line endings
[flightgear.git] / src / Systems / static.hxx
index 0ed4058015428b582594afc54ab824218492e065..fcacd925b6e05c07bdd2c120c17cd7798caadf1e 100644 (file)
@@ -11,8 +11,8 @@
 # error This library requires C++
 #endif
 
-#include <simgear/misc/props.hxx>
-#include <Main/fgfs.hxx>
+#include <simgear/props/props.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
 
 
 /**
  * Input properties:
  *
  * /environment/pressure-inhg
- * /systems/static[0]/serviceable
+ * /systems/"name"/serviceable
  *
  * Output properties:
  *
- * /systems/static[0]/pressure-inhg
+ * /systems/"name"/pressure-inhg
  *
- * TODO: support multiple static ports and specific locations
+ * TODO: support specific locations
  * TODO: support alternate air with errors
  */
-class StaticSystem : public FGSubsystem
+class StaticSystem : public SGSubsystem
 {
 
 public:
 
-    StaticSystem ();
+    StaticSystem ( SGPropertyNode *node );
+    StaticSystem ( int i );
     virtual ~StaticSystem ();
 
     virtual void init ();
@@ -45,6 +46,8 @@ public:
 
 private:
 
+    string name;
+    int num;
     SGPropertyNode_ptr _serviceable_node;
     SGPropertyNode_ptr _pressure_in_node;
     SGPropertyNode_ptr _pressure_out_node;