C++ UA Server SDK
1.5.2.336
|
Abstract factory for creating UaVariables or UaObjects of a namespace. More...
#include <instancefactory.h>
Inherited by OpcUaDi::InstanceFactoryDevices, OpcUaPlc::InstanceFactoryPLCopen, and XmlUaNodeFactoryNamespace0.
Public Member Functions | |
virtual OpcUa::BaseVariableTypeGeneric * | createGenericVariable (UaBase::Variable *pVariable, XmlUaNodeFactoryManager *pFactory, NodeManagerConfig *pNodeConfig, UaMutexRefCounted *pSharedMutex) |
Creates a Variable and the children defined by pVariable. More... | |
virtual OpcUa::BaseObjectTypeGeneric * | createGenericObject (UaBase::Object *pObject, XmlUaNodeFactoryManager *pFactory, NodeManagerConfig *pNodeConfig, UaMutexRefCounted *pSharedMutex) |
Creates an Object and the children defined by pObject. More... | |
virtual OpcUa::BaseMethod * | createGenericMethod (UaBase::Method *pMethod, XmlUaNodeFactoryManager *pFactory, NodeManagerConfig *pNodeConfig, UaMutexRefCounted *pSharedMutex) |
Creates a Method and the children defined by pMethod. More... | |
Abstract factory for creating UaVariables or UaObjects of a namespace.
This class provides an interface for creating UaNodes and its children depending on UaBase::BaseNodes and for adding the new nodes to a NodeManagerConfig. The TypeDefinition of the UaBase::BaseNode can be used to create an instance of a toolkit class.
Subtypes of this class are used by XmlUaNodeFactoryManager.
|
virtual |
Creates a Method and the children defined by pMethod.
pMethod | The temporary data representation of the method to create. |
pFactory | The XmlUaNodeFactoryManager to create the children. |
pNodeConfig | If pNodeConfig can be casted to NodeManagerNodeSetXml, the callback NodeManagerNodeSetXml::variableCreated is called for each child. |
pSharedMutex | An optional mutex that is used across different variables. |
|
virtual |
Creates an Object and the children defined by pObject.
pObject | The temporary data representation of the object to create. |
pFactory | The XmlUaNodeFactoryManager to create the children. |
pNodeConfig | If pNodeConfig can be casted to NodeManagerNodeSetXml, one of the callbacks of NodeManagerNodeSetXml is called for each child. |
pSharedMutex | An optional mutex that is used across different variables. |
|
virtual |
Creates a Variable and the children defined by pVariable.
pVariable | The temporary data representation of the variable to create. |
pFactory | The XmlUaNodeFactoryManager to create the children and the default value of this variable. |
pNodeConfig | If pNodeConfig can be casted to NodeManagerNodeSetXml, the callback NodeManagerNodeSetXml::variableCreated is called for each child. |
pSharedMutex | An optional mutex that is used across different variables. |