]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_props.hxx
- Added ultra-light traffic is now a separate traffic class that can have its
[flightgear.git] / src / Main / fg_props.hxx
index 8a53147c7395e18e9ffea06fcad40bab01de81bc..4025b185dfc424a2298ddeacdd879ed031d6f619 100644 (file)
@@ -69,7 +69,7 @@ extern bool fgLoadFlight (istream &input);
  *         otherwise.
  */
 extern bool fgLoadProps (const char * path, SGPropertyNode * props,
-                         bool in_fg_root = true);
+                         bool in_fg_root = true, int default_mode = 0);
 
 
 \f
@@ -532,5 +532,18 @@ fgTie (const char * name, T * obj, int index,
 }
 
 
+class FGMakeUpperCase : public SGPropertyChangeListener {
+public:
+    void valueChanged(SGPropertyNode *node) {
+        if (node->getType() != SGPropertyNode::STRING)
+            return;
+
+        char *s = const_cast<char *>(node->getStringValue());
+        for (; *s; s++)
+            *s = toupper(*s);
+    }
+};
+
+
 #endif // __FG_PROPS_HXX