diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2012-11-07 22:20:09 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2012-11-07 22:20:09 (GMT) |
commit | da08a1d3c3bca8070c9b029cfc1f8faf9e34dd25 (patch) | |
tree | b285148ab6ca415814d9370148f91736f83c852c /src/uscxml/Factory.h | |
parent | 0ae6c27d9322208053033d9b19c0ffffed3d99eb (diff) | |
download | uscxml-da08a1d3c3bca8070c9b029cfc1f8faf9e34dd25.zip uscxml-da08a1d3c3bca8070c9b029cfc1f8faf9e34dd25.tar.gz uscxml-da08a1d3c3bca8070c9b029cfc1f8faf9e34dd25.tar.bz2 |
Committing local version again
Diffstat (limited to 'src/uscxml/Factory.h')
-rw-r--r-- | src/uscxml/Factory.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/uscxml/Factory.h b/src/uscxml/Factory.h index c5d4598..e2418f0 100644 --- a/src/uscxml/Factory.h +++ b/src/uscxml/Factory.h @@ -7,6 +7,19 @@ namespace uscxml { + template <typename T> std::string toStr(T tmp) { + std::ostringstream out; + out << tmp; + return out.str(); + } + + template <typename T> T strTo(std::string tmp) { + T output; + std::istringstream in(tmp); + in >> output; + return output; + } + class Interpreter; class ExecutableContent { @@ -38,6 +51,7 @@ namespace uscxml { virtual bool validate(const std::string& location, const std::string& schema) = 0; virtual void setEvent(const Event& event) = 0; + virtual Data getStringAsData(const std::string& content) = 0; // foreach virtual uint32_t getLength(const std::string& expr) = 0; |