X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fprops%2Fprops.hxx;h=9ce7df4bf52524d315366884ae72b97b292da427;hb=68eb7031e2dce999d112d0164fa28d4b8d66922e;hp=a08d6ffa9ca2f4d6a87b3af8fc027bcb735168ce;hpb=2f479cae698849a06d370f4f343091ba168a0871;p=simgear.git diff --git a/simgear/props/props.hxx b/simgear/props/props.hxx index a08d6ffa..9ce7df4b 100644 --- a/simgear/props/props.hxx +++ b/simgear/props/props.hxx @@ -1172,6 +1172,12 @@ public: void fireChildRemoved (SGPropertyNode * child); + /** + * Clear any existing value and set the type to NONE. + */ + void clearValue (); + + protected: void fireValueChanged (SGPropertyNode * node); @@ -1203,12 +1209,6 @@ private: bool set_string (const char * value); - /** - * Clear any existing value and set the type to NONE. - */ - void clear_value (); - - /** * Get the value as a string. */ @@ -1312,6 +1312,7 @@ private: bucket (); virtual ~bucket (); virtual entry * get_entry (const char * key, bool create = false); + virtual void erase(const char * key); private: int _length; entry ** _entries; @@ -1323,6 +1324,7 @@ private: virtual ~hash_table (); virtual SGPropertyNode * get (const char * key); virtual void put (const char * key, SGPropertyNode * value); + virtual void erase(const char * key); private: unsigned int hashcode (const char * key);