X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=trace_model.hpp;h=a2847547421f8972666681d0784882192e2fb628;hb=3a8ffad2f31f4438e19dd5a0f1c068e1fdffdeea;hp=5c51bba7d06c345a541b8dca59cebe1291d546f6;hpb=822d20a5ea51eb70bc9e2e937f70374c106fa06b;p=apitrace diff --git a/trace_model.hpp b/trace_model.hpp index 5c51bba..a284754 100644 --- a/trace_model.hpp +++ b/trace_model.hpp @@ -96,6 +96,7 @@ public: virtual double toDouble(void) const; virtual void *toPointer(void) const; + virtual void *toPointer(bool bind); virtual unsigned long long toUIntPtr(void) const; virtual const char *toString(void) const; @@ -114,6 +115,7 @@ public: virtual float toFloat(void) const; virtual double toDouble(void) const; void *toPointer(void) const; + void *toPointer(bool bind); unsigned long long toUIntPtr(void) const; const char *toString(void) const; void visit(Visitor &visitor); @@ -257,16 +259,19 @@ public: Blob(size_t _size) { size = _size; buf = new char[_size]; + bound = false; } ~Blob(); bool toBool(void) const; void *toPointer(void) const; + void *toPointer(bool bind); void visit(Visitor &visitor); size_t size; char *buf; + bool bound; }; @@ -277,6 +282,7 @@ public: bool toBool(void) const; void *toPointer(void) const; + void *toPointer(bool bind); unsigned long long toUIntPtr(void) const; void visit(Visitor &visitor); };