From 13e297604b00615d47352538e3c82ea1ac700d4c Mon Sep 17 00:00:00 2001 From: Renaud G Date: Mon, 28 Nov 2016 00:36:15 +0100 Subject: -Add API for copying a branch of execution node. -Allow to use if node several times. --- node/filternode.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'node/filternode.cpp') diff --git a/node/filternode.cpp b/node/filternode.cpp index 8fe99c3..8f0baa9 100644 --- a/node/filternode.cpp +++ b/node/filternode.cpp @@ -74,3 +74,16 @@ qint64 FilterNode::getPriority() const return priority; } +ExecutionNode* FilterNode::getCopy() const +{ + FilterNode* node = new FilterNode(); + if(NULL!=m_validator) + { + node->setValidator(m_validator->getCopy()); + } + if(NULL!=m_nextNode) + { + node->setNextNode(m_nextNode->getCopy()); + } + return node; +} -- cgit v1.2.3-70-g09d2