diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-04-11 07:58:48 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-04-11 07:58:48 (GMT) |
commit | 71c334bf4e35559496feac3f3cf00b72ceb88812 (patch) | |
tree | 859f78af51c8e929559a53d70492035ef3fad862 /src/uscxml/plugins/ioprocessor | |
parent | 5180e4666a314db36a15d953fdfa38af4f285758 (diff) | |
download | uscxml-71c334bf4e35559496feac3f3cf00b72ceb88812.zip uscxml-71c334bf4e35559496feac3f3cf00b72ceb88812.tar.gz uscxml-71c334bf4e35559496feac3f3cf00b72ceb88812.tar.bz2 |
More work on promela DM
changed const of Data subscript operator and introduced at(key) and item(index)
Diffstat (limited to 'src/uscxml/plugins/ioprocessor')
-rw-r--r-- | src/uscxml/plugins/ioprocessor/basichttp/BasicHTTPIOProcessor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/uscxml/plugins/ioprocessor/basichttp/BasicHTTPIOProcessor.cpp b/src/uscxml/plugins/ioprocessor/basichttp/BasicHTTPIOProcessor.cpp index 085d919..9c1ba45 100644 --- a/src/uscxml/plugins/ioprocessor/basichttp/BasicHTTPIOProcessor.cpp +++ b/src/uscxml/plugins/ioprocessor/basichttp/BasicHTTPIOProcessor.cpp @@ -122,11 +122,11 @@ bool BasicHTTPIOProcessor::httpRecvRequest(const HTTPServer::Request& req) { */ // this will call the const subscript operator - if (req.data["content"]["_scxmleventname"]) { - reqEvent.name = req.data["content"]["_scxmleventname"].atom; + if (req.data.at("content").hasKey("_scxmleventname")) { + reqEvent.name = req.data.at("content").at("_scxmleventname").atom; } - if (req.data["content"]["content"]) { - reqEvent.content = req.data["content"]["content"].atom; + if (req.data.at("content").hasKey("content")) { + reqEvent.content = req.data.at("content").at("content").atom; } // check whether we can parse it as XML |