Page 1 of 1

Creating Namespaces

Posted: 13 Mar 2018, 18:26
by RafaelCrespi
Hi,

I have read that NodeManagers than inherits from NodeManagerBase can only have 1 Namespace by NodeManager instance.

a) If I want to create different namespaces on runtime using a NodeManager than inherits from NodeManagerBase, can I do it creating as many NodeManager instances as Namespaces? Is there any other way?

b) When implementing the constructor of myNodeManager I have to define the Namespace URI just like that:

Code: Select all

myNodeManager::myNodeManager(): NodeManagerBase("NamespaceURI"){}
Can I do it by parameter when creating the NodeManager instance? I mean:

Code: Select all

myNodeManager::myNodeManager(): NodeManagerBase(const UaString s_NamespaceURI){}
and in main:

Code: Select all

myNodeManager* p_myNodeManager = new myNodeManager("NamespaceURI"); 


Thanks in advance,

Rafa

Re: Creating Namespaces

Posted: 16 Jun 2020, 18:43
by baldo
RafaelCrespi wrote:
13 Mar 2018, 18:26
I have read that NodeManagers than inherits from NodeManagerBase can only have 1 Namespace by NodeManager instance.
Where did you read that?

Re: Creating Namespaces

Posted: 27 Jul 2020, 07:22
by Support Team
Yes, NodeManagerUaNode is designed to care for exactly one Namespace and NodeManagerBase is derrived from that class.