aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/stringnode.h
blob: 4079b7f693f80c5a0009e0e2051447a6d054b259 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef STRINGNODE_H
#define STRINGNODE_H

#include "node/executionnode.h"
#include "result/stringresult.h"

/**
 * @brief The StringNode class is an ExecutionNode. It is dedicated to store string and display result.
 */
class StringNode : public ExecutionNode
{
public:
    StringNode();
    void run(ExecutionNode* previous);
    void setString(QString str);
    virtual QString toString(bool withLabel) const;
    virtual qint64 getPriority() const;
    /**
     * @brief getCopy
     * @return
     */
    virtual ExecutionNode* getCopy() const;

private:
    QString m_data;
    StringResult* m_stringResult;
};

#endif // STRINGNODE_H