diff options
| author | 2018-03-18 17:46:44 +0100 | |
|---|---|---|
| committer | 2018-03-18 17:46:44 +0100 | |
| commit | 8e2f96053a4fb57f82a59fffbfa4178168455e9f (patch) | |
| tree | 9e0ba273f240ead1212a7efb6a194e79ae3448b2 /node/executionnode.cpp | |
| parent | f47c0c0a6f151d7f74d41e551fccadd8b12b003c (diff) | |
| download | OneRoll-8e2f96053a4fb57f82a59fffbfa4178168455e9f.tar.gz OneRoll-8e2f96053a4fb57f82a59fffbfa4178168455e9f.zip | |
-get scalar result.
Diffstat (limited to 'node/executionnode.cpp')
| -rw-r--r-- | node/executionnode.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node/executionnode.cpp b/node/executionnode.cpp index fadc9fb..588f4f5 100644 --- a/node/executionnode.cpp +++ b/node/executionnode.cpp @@ -89,3 +89,9 @@ void ExecutionNode::generateDotTree(QString& s) } } +qint64 ExecutionNode::getScalarResult() +{ + if(m_result == nullptr) + return 0; + return m_result->getResult(Result::SCALAR).toInt(); +} |