UA Server SDK C++ Bundle
1.3.2.200
|
Base class with auto generated code for OPC UA Variable instances of the type StateVariableType. More...
#include <opcua_statevariabletypebase.h>
Inherits OpcUa::BaseDataVariableType.
Inherited by OpcUa::StateVariableType.
Public Member Functions | |
StateVariableTypeBase (UaNode *pParentNode, UaVariable *pInstanceDeclarationVariable, NodeManagerConfig *pNodeConfig, UaMutexRefCounted *pSharedMutex=NULL) | |
Constructs an instance of the class StateVariableTypeBase with all components. | |
StateVariableTypeBase (const UaNodeId &nodeId, const UaString &name, OpcUa_UInt16 browseNameNameSpaceIndex, const UaVariant &initialValue, OpcUa_Byte accessLevel, NodeManagerConfig *pNodeConfig, UaMutexRefCounted *pSharedMutex=NULL) | |
Constructs an instance of the class StateVariableTypeBase with all components. | |
virtual | ~StateVariableTypeBase () |
Destruction. | |
virtual UaNodeId | typeDefinitionId () const |
Returns the type definition NodeId for the StateVariableType. | |
Public Member Functions inherited from OpcUa::BaseDataVariableType | |
BaseDataVariableType (UaNode *pParentNode, UaVariable *pInstanceDeclarationVariable, NodeManagerConfig *pNodeConfig, UaMutexRefCounted *pSharedMutex=NULL) | |
Constructs an instance of the class BaseDataVariableType based on an instance declaration variable. | |
BaseDataVariableType (const UaNodeId &nodeId, const UaString &name, OpcUa_UInt16 browseNameNameSpaceIndex, const UaVariant &initialValue, OpcUa_Byte accessLevel, NodeManagerConfig *pNodeConfig, UaMutexRefCounted *pSharedMutex=NULL) | |
Constructs an instance of the class BaseDataVariableType with the passed attribute values. | |
virtual | ~BaseDataVariableType () |
Destroys the BaseDataVariableType instance. | |
virtual void | setUserData (UserDataBase *pUserData) |
Method to set user data stored in this class. | |
virtual UserDataBase * | getUserData () const |
Method to get the user data stored in this class. | |
Public Member Functions inherited from OpcUa::BaseDataVariableTypeBase | |
BaseDataVariableTypeBase (UaNode *pParentNode, UaVariable *pInstanceDeclarationVariable, NodeManagerConfig *pNodeConfig, UaMutexRefCounted *pSharedMutex=NULL) | |
Constructs an instance of the class BaseDataVariableTypeBase with all components. | |
BaseDataVariableTypeBase (const UaNodeId &nodeId, const UaString &name, OpcUa_UInt16 browseNameNameSpaceIndex, const UaVariant &initialValue, OpcUa_Byte accessLevel, NodeManagerConfig *pNodeConfig, UaMutexRefCounted *pSharedMutex=NULL) | |
Constructs an instance of the class BaseDataVariableTypeBase with all components. | |
virtual | ~BaseDataVariableTypeBase () |
Destruction. | |
Public Member Functions inherited from OpcUa::BaseVariableType | |
BaseVariableType (UaNode *pParentNode, UaVariable *pInstanceDeclarationVariable, NodeManagerConfig *pNodeConfig, UaMutexRefCounted *pSharedMutex=NULL) | |
Constructs an instance of the class BaseVariableType based on an instance declaration variable. | |
BaseVariableType (const UaNodeId &nodeId, const UaString &name, OpcUa_UInt16 browseNameNameSpaceIndex, const UaVariant &initialValue, OpcUa_Byte accessLevel, NodeManagerConfig *pNodeConfig, UaMutexRefCounted *pSharedMutex=NULL) | |
Constructs an instance of the class BaseVariableType with the passed attribute values. | |
virtual | ~BaseVariableType () |
Destruction. | |
UaReferenceLists * | getUaReferenceLists () const |
Get a ReferenceList where all the Nodes are in. | |
UaStatus | browse (const ServiceContext &serviceContext, BrowseContext &browseContext, UaReferenceDescriptions &References) |
Discover the references of a specified node of a view. | |
UaNodeId | nodeId () const |
Get the NodeId for the DataVariable. | |
virtual UaQualifiedName | browseName () const |
Get the browseName as QualifiedName of the current Node. | |
virtual UaLocalizedText | displayName (Session *pSession) const |
Get the displayName as LocalizedText of the current Node. | |
virtual OpcUa_Boolean | isDescriptionSupported () const |
Check if Node is DescriptionSupported. | |
virtual UaLocalizedText | description (Session *pSession) const |
Get the description as LocalizedText of the current Node. | |
virtual OpcUa_Boolean | isWriteMaskSupported () const |
Check if Node is WriteMaskSupported. | |
virtual OpcUa_UInt32 | writeMask () const |
Get the writeMask of the current Node. | |
virtual OpcUa_Boolean | isUserWriteMaskSupported () const |
Check if Node is UserWriteMaskSupported. | |
virtual OpcUa_UInt32 | userWriteMask (Session *pSession) const |
Get the WriteMask of the User. | |
virtual UaDataValue | value (Session *pSession) |
Gets the current value for the DataVariable. | |
virtual UaStatus | setValue (Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel) |
Sets the current value for the DataVariable. | |
virtual UaNodeId | dataType () const |
Get the DataType for the DataVariable. | |
virtual OpcUa_Int32 | valueRank () const |
Get the ValueRank for the DataVariable. | |
virtual OpcUa_Boolean | isArrayDimensionsSupported () const |
Check if the Node is ArrayDimensionsSupported. | |
virtual void | arrayDimensions (UaUInt32Array &arrayDimensions) const |
Get the arrayDimensions value for the passed UaNode. | |
virtual OpcUa_Byte | accessLevel () const |
Get the AccessLevel for the DataVariable. | |
virtual OpcUa_Byte | userAccessLevel (Session *pSession) const |
Get the UserAccessLevel for the DataVariable. | |
virtual OpcUa_Boolean | isMinimumSamplingIntervalSupported () const |
Check whether a minimum sampling interval is supported. | |
virtual OpcUa_Double | minimumSamplingInterval () const |
Get the minimum sampling interval of the Node. | |
virtual OpcUa_Boolean | historizing () const |
Indicates if historizing is available or not. | |
virtual void | setBrowseName (const UaQualifiedName &browseName) |
Sets the browse name attribute value. | |
virtual void | setDisplayName (const UaLocalizedText &displayName) |
Sets the display name attribute value. | |
virtual void | setDescription (const UaLocalizedText &description) |
Sets the description attribute value. | |
virtual void | setWriteMask (OpcUa_UInt32 writeMask) |
Sets the write mask attribute value. | |
virtual void | setDataType (const UaNodeId &dataType) |
Sets the data type attribute value. | |
virtual void | setValueRank (OpcUa_Int32 valueRank) |
Sets the value rank attribute value. | |
virtual void | setArrayDimensions (const UaUInt32Array &arrayDimensions) |
Sets the array dimensions attribute value. | |
virtual void | setAccessLevel (OpcUa_Byte accessLevel) |
Sets the access level attribute value. | |
virtual void | setMinimumSamplingInterval (OpcUa_Double minimumSamplingInterval) |
Sets the minimum sampling interval attribute value. | |
virtual void | setHistorizing (OpcUa_Boolean historizing) |
Sets the historizing attribute value. | |
virtual void | setModellingRuleId (const UaNodeId &modellingRuleId) |
Set NodeId of the modeling rule for this node. | |
virtual UaNodeId | modellingRuleId () const |
Get NodeId of the modeling rule for this node. | |
UaNode * | getUaNode () const |
Get the Node. | |
virtual OpcUa_UInt32 | valueHandling () const |
Get the mode for the handling of the value attribute. | |
void | setValueHandling (OpcUa_UInt32 valueHandling) |
Set the mode for the handling of the value attribute. | |
virtual UaStatus | setAttributeValue (Session *pSession, OpcUa_Int32 attributeId, const UaDataValue &dataValue, OpcUa_Boolean checkWriteMask) |
Sets the value of an attribute of the Node. | |
Public Member Functions inherited from UaVariableCache | |
UaVariableCache () | |
Constructes a cache variable with default settings. | |
UaVariableCache (UaMutexRefCounted *pSharedMutex) | |
Constructes a cache variable with default settings using the passed shared mutex. | |
virtual | ~UaVariableCache () |
Destroyes the cache variable object. | |
void | addCacheSignal (CacheSignal *pCacheSignal) |
Add a cache item. | |
void | removeCacheSignal (CacheSignal *pCacheSignal) |
Remove a cache item. | |
void | signalChange () |
Signal change to all cache items. | |
OpcUa_UInt32 | signalCount () |
Get the count of connected monitored items. | |
OpcUa_UInt32 | getMinSamplingInterval () |
Get the minimum sampling interval requested. | |
VariableHandle * | pVariableHandle () |
Return the VariableHandle for the DataVariable. | |
virtual void | setInvalid () |
Set the variable to invalid. | |
virtual void | setSharedMutex (UaMutexRefCounted *pSharedMutex) |
Set a shared mutex used for multiple variables to reduce resource consumption. | |
UaMutexRefCounted * | getSharedMutex () |
Returns the shared mutex used for multiple variables to reduce resource consumption. | |
void | getHandleIOVariableList (std::list< OpcUa_UInt32 > &handles) |
Returns a list of IOManager handles for the connected IOVariable CacheSignals. | |
Public Member Functions inherited from UaVariable | |
UaVariable () | |
construction | |
OpcUa_NodeClass | nodeClass () const |
Get the NodeClass of the current Node. | |
virtual void | getAttributeValue (Session *pSession, OpcUa_Int32 attributeId, UaDataValue &uaDataValue) |
Gets the value of an attribute of the Node. | |
Public Member Functions inherited from UaNode | |
UaNode () | |
Construction of the UaNode. | |
virtual UaNodeId | getKey () const |
Get the key of the node used for the hash table. | |
Public Member Functions inherited from ChainEntry | |
ChainEntry () | |
construction | |
ChainEntry * | find (const UaNodeId &key, ChainEntry **ppPrevious) |
finds the right entry in the chain. | |
void | add (ChainEntry *pNewEntry) |
adds a new entry to the list. | |
void | prepend (ChainEntry *pNewEntry) |
prepends a new entry to the list. | |
ChainEntry * | remove (const UaNodeId &key, ChainEntry **ppNext) |
removes an entry from the list. | |
ChainEntry * | getNext () const |
Check if there is a chain. | |
Public Member Functions inherited from ReferenceCounter | |
ReferenceCounter () | |
construction | |
virtual | ~ReferenceCounter () |
destruction | |
Public Member Functions inherited from UaReferenceLists | |
UaReferenceLists () | |
Constructs the reference lists object. | |
virtual | ~UaReferenceLists () |
Destroys the reference lists object. | |
virtual UaStatus | browseReferences (const ServiceContext &serviceContext, BrowseContext &browseContext, UaReferenceDescriptions &References) |
Discover the references of a specified node of a view. | |
virtual UaStatus | translateBrowsePathToNodeId (const ServiceContext &serviceContext, const UaNodeId &startingNode, UaRelativePath &relativePath, UaBrowsePathTargets &browsePathTargets) |
Find a node based on an element of an relative path. | |
virtual const UaReference * | pTargetNodes () const |
Returns the list of references to target nodes. | |
virtual const UaReference * | pSourceNodes () const |
Returns the list of references to source nodes. | |
virtual UaNode * | getTargetNodeByBrowseName (const UaQualifiedName &browseName) const |
Searches a target node with the passed browse name and returns the UaNode interface if found. | |
virtual void | addTargetNode (UaReference *pReference) |
Add a reference to a target node where this node is the source node. | |
virtual void | addSourceNode (UaReference *pReference) |
Adds a reference to a source node where this node is the target node. | |
virtual UaStatus | removeSourceNode (UaReference *pReferenceToRemove) |
Remove a reference to a source node where this node is the target node. | |
virtual bool | removeSourceReference (UaReference *pReferenceToRemove) |
Remove the passed reference to a source node. | |
virtual UaStatus | removeTargetNode (UaNode *pTargetNode, const UaNodeId &referenceTypeId, OpcUa_Boolean deleteBidirectional) |
Remove a reference to a target node where this node is the source node. | |
virtual UaStatus | removeTargetNode (const UaNodeId &targetNodeId, const UaNodeId &referenceTypeId, OpcUa_Boolean deleteBidirectional) |
Remove a reference to a target node where this node is the source node. | |
virtual bool | removeTargetReference (UaReference *pReferenceToRemove) |
Remove the passed reference to a target node. | |
virtual UaStatus | removeCrossNodeManagerRef (NodeManager *pNodeManager) |
Remove references to another NodeManager. | |
virtual UaStatus | invalidateSourceReferences (OpcUa_Boolean deleteSourceReferences) |
Set all references from SourceNodes to this Node invalid. | |
virtual UaStatus | invalidateTargetReferences (OpcUa_Boolean deleteTargetReferences) |
Set all references to TargetNode of this node invalid. | |
virtual UaStatus | deleteAllChilren (NodeManagerConfig *pNodeManagerConfig) |
Deletes all child nodes. |
Static Public Member Functions | |
static void | createTypes () |
Create the related type nodes. | |
static void | clearStaticMembers () |
Clear the static members of the class. |
Additional Inherited Members | |
Protected Member Functions inherited from UaVariable | |
virtual | ~UaVariable () |
destruction | |
Protected Attributes inherited from UaReferenceLists | |
UaReference * | m_pTargetNodes |
List of references to target nodes where this node is the source node. | |
UaReference * | m_pLastTargetNode |
Last references in the list of references to the target nodes. | |
UaReference * | m_pSourceNodes |
List of references to source nodes where this node is the target node. |
Base class with auto generated code for OPC UA Variable instances of the type StateVariableType.
OpcUa::StateVariableTypeBase::StateVariableTypeBase | ( | UaNode * | pParentNode, |
UaVariable * | pInstanceDeclarationVariable, | ||
NodeManagerConfig * | pNodeConfig, | ||
UaMutexRefCounted * | pSharedMutex = NULL |
||
) |
Constructs an instance of the class StateVariableTypeBase with all components.
[in] | pParentNode | Parent node of the new variable |
[in] | pInstanceDeclarationVariable | UaVariable interface of the instance declaration node used to provide attribute values other than NodeId and Value |
[in] | pNodeConfig | Interface pointer to the NodeManagerConfig interface used to add and delete node and references in the address space |
[in] | pSharedMutex | Shared mutex object used to synchronize access to the variable. Can be NULL if no shared mutex is provided |
OpcUa::StateVariableTypeBase::StateVariableTypeBase | ( | const UaNodeId & | nodeId, |
const UaString & | name, | ||
OpcUa_UInt16 | browseNameNameSpaceIndex, | ||
const UaVariant & | initialValue, | ||
OpcUa_Byte | accessLevel, | ||
NodeManagerConfig * | pNodeConfig, | ||
UaMutexRefCounted * | pSharedMutex = NULL |
||
) |
Constructs an instance of the class StateVariableTypeBase with all components.
[in] | nodeId | NodeId of the new variable |
[in] | name | Name of the new variable. Used as browse name and also as display name if no additional language specific names are set. |
[in] | browseNameNameSpaceIndex | Namespace index used for the browse name |
[in] | initialValue | Initial value for the Variable |
[in] | accessLevel | Access level for the Variable |
[in] | pNodeConfig | Interface pointer to the NodeManagerConfig interface used to add and delete node and references in the address space |
[in] | pSharedMutex | Shared mutex object used to synchronize access to the variable. Can be NULL if no shared mutex is provided |