DeleteNode in NodeManager
Posted: 07 Jul 2021, 16:32
Hi there,
I have modeled my type system with UaModeler and instantiated two objects directly from it (both siblings at the top-level object folder), as it would be a pain in the bottom to do this manually (as OPC UA is!). However, I have to decide which object should be available for browsing during runtime, the other is unnecessary and has to be removed from the tree. So, I want to use the DeleteNode function or something similar from the generated myNS_NodeManager.cpp but it seems that everything needs a ServiceContext. Where to get that from? Your documentation is very sparse when it comes to using UaModeler with the C++ toolkit. Please be so kind and point me to the correct solution.
Thank you!
Best wishes,
Martin
I have modeled my type system with UaModeler and instantiated two objects directly from it (both siblings at the top-level object folder), as it would be a pain in the bottom to do this manually (as OPC UA is!). However, I have to decide which object should be available for browsing during runtime, the other is unnecessary and has to be removed from the tree. So, I want to use the DeleteNode function or something similar from the generated myNS_NodeManager.cpp but it seems that everything needs a ServiceContext. Where to get that from? Your documentation is very sparse when it comes to using UaModeler with the C++ toolkit. Please be so kind and point me to the correct solution.
Thank you!
Best wishes,
Martin