X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fprops%2Fprops.hxx;h=9ce7df4bf52524d315366884ae72b97b292da427;hb=68eb7031e2dce999d112d0164fa28d4b8d66922e;hp=c800f29da755b36a7560167499177f0574e0c308;hpb=37ac409586f564db0e487f3d5b44b3a612d62438;p=simgear.git diff --git a/simgear/props/props.hxx b/simgear/props/props.hxx index c800f29d..9ce7df4b 100644 --- a/simgear/props/props.hxx +++ b/simgear/props/props.hxx @@ -850,10 +850,8 @@ public: /** * Get the type of leaf value, if any, for this node. - * When applied to an ALIAS node, deref_alias decides if the type - * of the referred node is to be returned (default), or ALIAS. */ - Type getType (bool deref_alias = true) const; + Type getType () const; /** @@ -1174,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); @@ -1205,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. */ @@ -1314,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; @@ -1325,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);