]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_props.hxx
Move the texture loader to SimGear
[flightgear.git] / src / Main / fg_props.hxx
index 6e62ffe7dc26c9f7c909cfc7ad604b8fdbeef2c9..4a58229970adf016f832012c841c1b16848a60db 100644 (file)
@@ -64,6 +64,21 @@ extern bool fgSaveFlight (ostream &output, bool write_all = false);
 extern bool fgLoadFlight (istream &input);
 
 
+/**
+ * Load properties from a file.
+ *
+ * @param file The relative or absolute filename.
+ * @param props The property node to load the properties into.
+ * @param in_fg_root If true, look for the file relative to
+ *        $FG_ROOT; otherwise, look for the file relative to the
+ *        current working directory.
+ * @return true if the properties loaded successfully, false
+ *         otherwise.
+ */
+extern bool fgLoadProps (const char * path, SGPropertyNode * props,
+                         bool in_fg_root = true);
+
+
 \f
 ////////////////////////////////////////////////////////////////////////
 // Convenience functions for getting property values.
@@ -106,6 +121,30 @@ extern SGPropertyNode * fgGetNode (const char * path,
 extern bool fgHasNode (const char * path);
 
 
+/**
+ * Add a listener to a node.
+ *
+ * @param listener The listener to add to the node.
+ * @param path The path of the node, relative to root.
+ * @param index The index for the last member of the path (overrides
+ * any given in the string).
+ */
+extern void fgAddChangeListener (SGPropertyChangeListener * listener,
+                                const char * path);
+
+
+/**
+ * Add a listener to a node.
+ *
+ * @param listener The listener to add to the node.
+ * @param path The path of the node, relative to root.
+ * @param index The index for the last member of the path (overrides
+ * any given in the string).
+ */
+extern void fgAddChangeListener (SGPropertyChangeListener * listener,
+                                const char * path, int index);
+
+
 /**
  * Get a bool value for a property.
  *