summaryrefslogtreecommitdiffstats
path: root/src/uscxml/debug/DebugSession.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-11 07:58:48 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-11 07:58:48 (GMT)
commit71c334bf4e35559496feac3f3cf00b72ceb88812 (patch)
tree859f78af51c8e929559a53d70492035ef3fad862 /src/uscxml/debug/DebugSession.cpp
parent5180e4666a314db36a15d953fdfa38af4f285758 (diff)
downloaduscxml-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/debug/DebugSession.cpp')
-rw-r--r--src/uscxml/debug/DebugSession.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/uscxml/debug/DebugSession.cpp b/src/uscxml/debug/DebugSession.cpp
index 46b414f..e785c84 100644
--- a/src/uscxml/debug/DebugSession.cpp
+++ b/src/uscxml/debug/DebugSession.cpp
@@ -106,9 +106,9 @@ Data DebugSession::debugPrepare(const Data& data) {
_isAttached = false;
if (data.hasKey("xml")) {
- _interpreter = Interpreter::fromXML(data["xml"].atom);
+ _interpreter = Interpreter::fromXML(data.at("xml").atom);
} else if (data.hasKey("url")) {
- _interpreter = Interpreter::fromURI(data["url"].atom);
+ _interpreter = Interpreter::fromURI(data.at("url").atom);
} else {
_interpreter = Interpreter();
}
@@ -119,7 +119,7 @@ Data DebugSession::debugPrepare(const Data& data) {
_debugger->attachSession(_interpreter, shared_from_this());
if (data.hasKey("url")) {
// this allows to resolve relative external reources
- _interpreter.setSourceURI(data["url"].atom);
+ _interpreter.setSourceURI(data.at("url").atom);
}
replyData.compound["status"] = Data("success", Data::VERBATIM);
} else {
@@ -139,7 +139,7 @@ Data DebugSession::debugAttach(const Data& data) {
return replyData;
}
- std::string interpreterId = data["attach"].atom;
+ std::string interpreterId = data.at("attach").atom;
bool interpreterFound = false;
// find interpreter for sessionid
@@ -354,7 +354,7 @@ Data DebugSession::debugEval(const Data& data) {
return replyData;
}
- std::string expr = data["expression"].atom;
+ std::string expr = data.at("expression").atom;
if (!_interpreter) {
replyData.compound["status"] = Data("failure", Data::VERBATIM);