diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-15 10:08:41 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-15 10:08:41 (GMT) |
commit | 9149b28c87c7a037dfd244aa5d4c1409b6593dca (patch) | |
tree | 939c00d28864910a0ca8a67e70fadae9b6f05cc7 /src/uscxml/messages/Event.cpp | |
parent | 322e868668a1e5b9595a21737aabe8d0d8b8d275 (diff) | |
download | uscxml-9149b28c87c7a037dfd244aa5d4c1409b6593dca.zip uscxml-9149b28c87c7a037dfd244aa5d4c1409b6593dca.tar.gz uscxml-9149b28c87c7a037dfd244aa5d4c1409b6593dca.tar.bz2 |
More JVoiceXML integration
Diffstat (limited to 'src/uscxml/messages/Event.cpp')
-rw-r--r-- | src/uscxml/messages/Event.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/uscxml/messages/Event.cpp b/src/uscxml/messages/Event.cpp index 43c6600..fda24dd 100644 --- a/src/uscxml/messages/Event.cpp +++ b/src/uscxml/messages/Event.cpp @@ -72,29 +72,6 @@ Arabica::DOM::Document<std::string> Event::toDocument() { return document; } -void Event::initContent(const std::string& content) { - // try to parse as JSON - Data json = Data::fromJSON(content); - if (!json.empty()) { - data = json; - return; - } - - // try to parse as XML - Arabica::SAX2DOM::Parser<std::string> parser; - Arabica::SAX::CatchErrorHandler<std::string> errorHandler; - parser.setErrorHandler(errorHandler); - - std::istringstream is(content); - Arabica::SAX::InputSource<std::string> inputSource; - inputSource.setByteStream(is); - if (parser.parse(inputSource)) { - dom = parser.getDocument(); - return; - } - - this->content = content; -} Event Event::fromXML(const std::string& xmlString) { Arabica::SAX2DOM::Parser<std::string> eventParser; |