aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/stringnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/stringnode.cpp')
-rw-r--r--node/stringnode.cpp58
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;
-}