]> git.mxchange.org Git - simgear.git/blobdiff - simgear/misc/props.hxx
Updates from David Megginson:
[simgear.git] / simgear / misc / props.hxx
index 0f31c24c58482ee04a1eed32320a59f2a7bf949c..d50d39582d1a81209fe9c1e3c67fba1a546273dd 100644 (file)
@@ -261,6 +261,8 @@ public:
   virtual const_iterator begin () const { return _props.begin(); }
   virtual const_iterator end () const { return _props.end(); }
 
+  virtual bool hasValue (const string &name) const;
+
   virtual SGValue * getValue (const string &name, bool create = false);
   virtual const SGValue * getValue (const string &name) const;
 
@@ -374,6 +376,9 @@ public:
   virtual SGPropertyNode &getChild (int n) const;
   virtual SGPropertyNode &getSubNode (const string &subpath) const;
 
+                               // Check for a value.
+  virtual bool hasValue (const string &subpath = "") const;
+
                                // Get values directly.
   virtual SGValue * getValue (const string &subpath = "");
   virtual bool getBoolValue (const string &subpath = "",
@@ -420,6 +425,6 @@ extern bool writePropertyList (const string &file,
 extern SGPropertyList current_properties;
 
 
-#endif __PROPS_HXX
+#endif // __PROPS_HXX
 
 // end of props.hxx