X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fprops%2Fprops.hxx;h=9ce7df4bf52524d315366884ae72b97b292da427;hb=68eb7031e2dce999d112d0164fa28d4b8d66922e;hp=a042c61d4b66249acbbf9b0adf7ffe1284e2fdb2;hpb=921dae5444d406f048420fcff02afbef480542a5;p=simgear.git diff --git a/simgear/props/props.hxx b/simgear/props/props.hxx index a042c61d..9ce7df4b 100644 --- a/simgear/props/props.hxx +++ b/simgear/props/props.hxx @@ -561,7 +561,7 @@ public: * Property value types. */ enum Type { - NONE, + NONE = 0, ALIAS, BOOL, INT, @@ -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);