diff options
| author | 2022-04-29 10:48:09 +0200 | |
|---|---|---|
| committer | 2022-04-29 10:48:09 +0200 | |
| commit | 07c5f6ec23fcf9237a24e71adcfacabce677f818 (patch) | |
| tree | 588e8c5f82b9163181fad3581f610e6f1d88cba4 /node/stringnode.cpp | |
| parent | a9153f1615a842cfb9e9bcda4d9071e202618569 (diff) | |
| download | OneRoll-07c5f6ec23fcf9237a24e71adcfacabce677f818.tar.gz OneRoll-07c5f6ec23fcf9237a24e71adcfacabce677f818.zip | |
Change file organization.
Diffstat (limited to 'node/stringnode.cpp')
| -rw-r--r-- | node/stringnode.cpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/node/stringnode.cpp b/node/stringnode.cpp deleted file mode 100644 index e908463..0000000 --- a/node/stringnode.cpp +++ /dev/null @@ -1,58 +0,0 @@ -#include "stringnode.h" - -StringNode::StringNode() : m_stringResult(new StringResult()) -{ - m_result= m_stringResult; -} - -void StringNode::run(ExecutionNode* previous) -{ - m_previousNode= previous; - if(nullptr != previous) - { - m_result->setPrevious(previous->getResult()); - } - if(nullptr != m_nextNode) - { - m_nextNode->run(this); - } -} - -void StringNode::setString(QString str) -{ - m_data= str; - m_stringResult->addText(m_data); - m_stringResult->finished(); -} -QString StringNode::toString(bool withLabel) const -{ - if(withLabel) - { - QString dataCopy= m_data; - - return QString("%1 [label=\"StringNode %2\"]").arg(m_id, dataCopy.replace('%', '\\')); - } - else - { - return m_id; - } -} -qint64 StringNode::getPriority() const -{ - qint64 priority= 0; - if(nullptr != m_nextNode) - { - priority= m_nextNode->getPriority(); - } - return priority; -} -ExecutionNode* StringNode::getCopy() const -{ - StringNode* node= new StringNode(); - node->setString(m_data); - if(nullptr != m_nextNode) - { - node->setNextNode(m_nextNode->getCopy()); - } - return node; -} |