aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/occurencecountnode.h
blob: ed7f8b42e008c2f81ff1074d4f1203868fddfb11 (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
30
31
32
33
34
35
#ifndef OCCURENCECOUNTNODE_H
#define OCCURENCECOUNTNODE_H

#include "executionnode.h"
#include "validator.h"

class StringResult;
class OccurenceCountNode : public ExecutionNode
{
public:
    OccurenceCountNode();

    void run(ExecutionNode* previous = nullptr);
    virtual QString toString(bool withLabel)const;

    ExecutionNode* getCopy() const;
    qint64 getPriority() const;

    qint64 getWidth() const;
    void setWidth(const qint64 &width);

    qint64 getHeight() const;
    void setHeight(const qint64 &height);

    Validator *getValidator() const;
    void setValidator(Validator *validator);

private:
    qint64 m_width=0;
    qint64 m_height=0;
    Validator* m_validator;
    StringResult* m_stringResult;
};

#endif // OCCURENCECOUNTNODE_H