diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-07-06 16:04:18 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-07-06 16:04:18 (GMT) |
commit | 9cc762d85afffea42de3e1d156a6b8838d88a00c (patch) | |
tree | bff170c0493759c7f1bffca2648960b6f43ca139 /src/uscxml/messages/Data.h | |
parent | be98a8297b4e10e169290f497e649e803e43d791 (diff) | |
download | uscxml-9cc762d85afffea42de3e1d156a6b8838d88a00c.zip uscxml-9cc762d85afffea42de3e1d156a6b8838d88a00c.tar.gz uscxml-9cc762d85afffea42de3e1d156a6b8838d88a00c.tar.bz2 |
Made Blob into Pimpl to better support language bindings
Diffstat (limited to 'src/uscxml/messages/Data.h')
-rw-r--r-- | src/uscxml/messages/Data.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/uscxml/messages/Data.h b/src/uscxml/messages/Data.h index 44ce1d7..11b46fb 100644 --- a/src/uscxml/messages/Data.h +++ b/src/uscxml/messages/Data.h @@ -27,12 +27,11 @@ #include "uscxml/Common.h" #include "uscxml/Convenience.h" +#include "uscxml/messages/Blob.h" #include <DOM/Document.hpp> namespace uscxml { -class Blob; - static int _dataIndentation = 1; class USCXML_API Data { @@ -220,6 +219,13 @@ public: this->atom = atom; } + Blob getBinary() { + return this->binary; + } + void setBinary(const Blob& binary) { + this->binary = binary; + } + Type getType() { return type; } @@ -227,7 +233,6 @@ public: this->type = type; } - #ifdef SWIGIMPORTED protected: #endif @@ -236,7 +241,7 @@ protected: std::map<std::string, Data> compound; std::list<Data> array; std::string atom; - boost::shared_ptr<Blob> binary; + Blob binary; Type type; protected: |