File indexing completed on 2025-08-05 08:16:20
0001
0002
0003
0004 #include "PHNodeReset.h"
0005
0006 #include "PHDataNode.h"
0007 #include "PHNode.h"
0008 #include "PHObject.h"
0009
0010 #include <iostream>
0011 #include <string>
0012
0013 void PHNodeReset::perform(PHNode* node)
0014 {
0015 if (!node->getResetFlag())
0016 {
0017 return;
0018 }
0019 if (verbosity > 0)
0020 {
0021 std::cout << "PHNodeReset: Resetting " << node->getName() << std::endl;
0022 }
0023 if (node->getType() == "PHDataNode" || node->getType() == "PHIODataNode")
0024 {
0025 if (node->getObjectType() == "PHObject")
0026 {
0027
0028 (static_cast<PHDataNode<PHObject>*>(node))->getData()->Reset();
0029 }
0030 }
0031 }