From cb1dcb5ee28994a2cd691ad696a5ba4c3c3802ea Mon Sep 17 00:00:00 2001 From: Renaud Guezennec Date: Wed, 23 Oct 2024 15:42:08 +0200 Subject: Add execute node. --- src/libparser/node/executionnode.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libparser/node/executionnode.h') 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 m_errors; + QMap m_warnings; + QString m_id; }; -- cgit v1.2.3-70-g09d2