X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=trace_model.hpp;h=a74508efc5e0a0fc2411f9fe19b3e1aea070beda;hb=1b4746a25a581405da502bcb83c01af3c808759e;hp=5c51bba7d06c345a541b8dca59cebe1291d546f6;hpb=93dfad1dc7e20d694e2c8b63515bff8ae91f3700;p=apitrace diff --git a/trace_model.hpp b/trace_model.hpp index 5c51bba..a74508e 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); @@ -188,6 +190,7 @@ class String : public Value { public: String(const char * _value) : value(_value) {} + ~String(); bool toBool(void) const; const char *toString(void) const; @@ -257,16 +260,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 +283,7 @@ public: bool toBool(void) const; void *toPointer(void) const; + void *toPointer(bool bind); unsigned long long toUIntPtr(void) const; void visit(Visitor &visitor); };