X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmisc%2Fprops.hxx;h=b9a0157ac4bca01f341913748546a7357ce5c5cd;hb=5bab565cfe4c30d6cf08ecaba50af74d5e4f0c98;hp=df15d9d6025d69e711ef5aa5a9534e5f92daa444;hpb=67b2f0a977a4576b0cb18548eb924d60fee2c89a;p=simgear.git diff --git a/simgear/misc/props.hxx b/simgear/misc/props.hxx index df15d9d6..b9a0157a 100644 --- a/simgear/misc/props.hxx +++ b/simgear/misc/props.hxx @@ -511,7 +511,9 @@ public: enum Attribute { READ = 1, WRITE = 2, - ARCHIVE = 4 + ARCHIVE = 4, + TRACE_READ = 8, + TRACE_WRITE = 16 }; @@ -1038,6 +1040,24 @@ private: */ void clear_value (); + + /** + * Get the value as a string. + */ + string get_string () const; + + + /** + * Trace a read access. + */ + void trace_read (Type accessType) const; + + + /** + * Trace a write access. + */ + void trace_write (Type accessType) const; + string _name; int _index; SGPropertyNode * _parent;