diff options
| author | 2024-10-23 15:42:08 +0200 | |
|---|---|---|
| committer | 2024-12-29 14:46:30 +0100 | |
| commit | cb1dcb5ee28994a2cd691ad696a5ba4c3c3802ea (patch) | |
| tree | c261de4ad8d0f85aec0200bf500e9579437577df /src/libparser/node/executionnode.h | |
| parent | e4dc41cdc3ebb84ef7e42f5cf261e36fe874c901 (diff) | |
| download | OneRoll-cb1dcb5ee28994a2cd691ad696a5ba4c3c3802ea.tar.gz OneRoll-cb1dcb5ee28994a2cd691ad696a5ba4c3c3802ea.zip | |
Add execute node.
Diffstat (limited to 'src/libparser/node/executionnode.h')
| -rw-r--r-- | src/libparser/node/executionnode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libparser/node/executionnode.h b/src/libparser/node/executionnode.h index 64cc2da..342ae36 100644 --- a/src/libparser/node/executionnode.h +++ b/src/libparser/node/executionnode.h @@ -21,6 +21,8 @@ public: * @brief ~ExecutionNode */ virtual ~ExecutionNode(); + + virtual void execute(ExecutionNode* previous= nullptr); /** * @brief run * @param previous @@ -81,6 +83,8 @@ public: virtual qint64 getScalarResult(); + bool isValid(bool condition, Dice::ERROR_CODE code , const QString& errorTxt, bool error = true); + protected: /** * @brief m_nextNode @@ -99,6 +103,8 @@ protected: */ QMap<Dice::ERROR_CODE, QString> m_errors; + QMap<Dice::ERROR_CODE, QString> m_warnings; + QString m_id; }; |