How to get/set a base variable inside a 2. level folder?
Posted: 03 Aug 2021, 07:00
Hi there,
I’m using the current C++ Server SDK and I generate my code via UaModeler!
I also know how to access variables, enums, structs, etc. in a 1. level folder inside a custom ObjectType: there are getFolderOne_VariableA() methods available (and set counterparts).
I can also get a pointer to a 2. level folder a la getFolderOne_FolderTwo.
But this is a general FolderType pointer without any semantics on the enclosing children.
So my question: What is the most elegant and easiest way to get e.g. VariableA from a FolderTwo that is inside FolderA that in turn is inside ObjectA?
A practical advice would be very appreciated!
Best wishes,
Martin
I’m using the current C++ Server SDK and I generate my code via UaModeler!
I also know how to access variables, enums, structs, etc. in a 1. level folder inside a custom ObjectType: there are getFolderOne_VariableA() methods available (and set counterparts).
I can also get a pointer to a 2. level folder a la getFolderOne_FolderTwo.
But this is a general FolderType pointer without any semantics on the enclosing children.
So my question: What is the most elegant and easiest way to get e.g. VariableA from a FolderTwo that is inside FolderA that in turn is inside ObjectA?
A practical advice would be very appreciated!
Best wishes,
Martin