Generic class has a signal attribute to send signal when value is changed All variable in OpcUaCanopen Server inherits this class.
More...
#include <UaControlDeviceItem.h>
Inherits BaseDataVariableType, and BaseDataVariableType.
Inherited by AddressSpace::UaCalcItem, AddressSpace::UaCalcItem, AddressSpace::UaControlDeviceItem, AddressSpace::UaControlDeviceItem, AddressSpace::UaProgramStartVariable, and AddressSpace::UaProgramStartVariable.
|
| UaControlVariable (UaNode *cur, NmBuildingAutomation *pNodeManager, UaVariable *instance, UaMutexRefCounted *pSharedMutex) |
| Constructor. More...
|
|
| UaControlVariable (const UaString &name, const UaNodeId &newNodeId, NmBuildingAutomation *pNodeManager, UaVariant &dv, UaMutexRefCounted *pSharedMutex) |
|
virtual | ~UaControlVariable () |
|
virtual UaStatus | write (UaDataValue &udv) |
|
virtual UaStatus | read () |
|
virtual UaStatus | setValue (Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel) |
| Redefine setValue function to sent data change signal;. More...
|
|
virtual UaStatus | setValueOnChange (Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel) |
| Redefine setValue function to sent data change signal;. More...
|
|
virtual void | connectItem (UaControlVariable *item) |
|
virtual UaNodeId | typeDefinitionId () const |
|
virtual void | setTypeDefinition (UaNodeId uni) |
| set node id of type of variable More...
|
|
void | convertToDouble (const UaDataValue &dataValue) |
| Signal. More...
|
|
| UaControlVariable (UaNode *cur, NmBuildingAutomation *pNodeManager, UaVariable *instance, UaMutexRefCounted *pSharedMutex) |
| Constructor. More...
|
|
| UaControlVariable (const UaString &name, const UaNodeId &newNodeId, NmBuildingAutomation *pNodeManager, UaVariant &dv, UaMutexRefCounted *pSharedMutex) |
|
virtual | ~UaControlVariable () |
|
virtual UaStatus | write (UaDataValue &udv) |
|
virtual UaStatus | read () |
|
virtual UaStatus | setValue (Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel) |
| Redefine setValue function to sent data change signal;. More...
|
|
virtual UaStatus | setValueOnChange (Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel) |
| Redefine setValue function to sent data change signal;. More...
|
|
virtual void | connectItem (UaControlVariable *item) |
|
virtual UaNodeId | typeDefinitionId () const |
|
virtual void | setTypeDefinition (UaNodeId uni) |
| set node id of type of variable More...
|
|
void | convertToDouble (const UaDataValue &dataValue) |
| Signal. More...
|
|
|
boost::signals2::signal< void(Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel) > | valueChange |
| write date to hardware More...
|
|
OpcUa_Double | curValue |
|
Generic class has a signal attribute to send signal when value is changed All variable in OpcUaCanopen Server inherits this class.
Definition at line 24 of file UaControlDeviceItem.h.
◆ UaControlVariable() [1/4]
AddressSpace::UaControlVariable::UaControlVariable |
( |
UaNode * |
cur, |
|
|
NmBuildingAutomation * |
pNodeManager, |
|
|
UaVariable * |
instance, |
|
|
UaMutexRefCounted * |
pSharedMutex |
|
) |
| |
Constructor.
- Parameters
-
name | the name of ua node |
newNodeId | item ua node id |
pNodeManager | pointer to node manager |
dv | initial value of item (usually empty) |
pSharedMutex | pointer to shared mutex (using toolkit) |
Definition at line 21 of file UaControlDeviceItem.cpp.
◆ UaControlVariable() [2/4]
AddressSpace::UaControlVariable::UaControlVariable |
( |
const UaString & |
name, |
|
|
const UaNodeId & |
newNodeId, |
|
|
NmBuildingAutomation * |
pNodeManager, |
|
|
UaVariant & |
dv, |
|
|
UaMutexRefCounted * |
pSharedMutex |
|
) |
| |
◆ ~UaControlVariable() [1/2]
virtual AddressSpace::UaControlVariable::~UaControlVariable |
( |
| ) |
|
|
inlinevirtual |
◆ UaControlVariable() [3/4]
AddressSpace::UaControlVariable::UaControlVariable |
( |
UaNode * |
cur, |
|
|
NmBuildingAutomation * |
pNodeManager, |
|
|
UaVariable * |
instance, |
|
|
UaMutexRefCounted * |
pSharedMutex |
|
) |
| |
Constructor.
- Parameters
-
name | the name of ua node |
newNodeId | item ua node id |
pNodeManager | pointer to node manager |
dv | initial value of item (usually empty) |
pSharedMutex | pointer to shared mutex (using toolkit) |
◆ UaControlVariable() [4/4]
AddressSpace::UaControlVariable::UaControlVariable |
( |
const UaString & |
name, |
|
|
const UaNodeId & |
newNodeId, |
|
|
NmBuildingAutomation * |
pNodeManager, |
|
|
UaVariant & |
dv, |
|
|
UaMutexRefCounted * |
pSharedMutex |
|
) |
| |
◆ ~UaControlVariable() [2/2]
virtual AddressSpace::UaControlVariable::~UaControlVariable |
( |
| ) |
|
|
inlinevirtual |
◆ connectItem() [1/2]
virtual void AddressSpace::UaControlVariable::connectItem |
( |
UaControlVariable * |
item | ) |
|
|
inlinevirtual |
◆ connectItem() [2/2]
virtual void AddressSpace::UaControlVariable::connectItem |
( |
UaControlVariable * |
item | ) |
|
|
inlinevirtual |
◆ convertToDouble() [1/2]
void AddressSpace::UaControlVariable::convertToDouble |
( |
const UaDataValue & |
dataValue | ) |
|
|
inline |
◆ convertToDouble() [2/2]
void AddressSpace::UaControlVariable::convertToDouble |
( |
const UaDataValue & |
dataValue | ) |
|
|
inline |
◆ read() [1/2]
virtual UaStatus AddressSpace::UaControlVariable::read |
( |
| ) |
|
|
inlinevirtual |
◆ read() [2/2]
virtual UaStatus AddressSpace::UaControlVariable::read |
( |
| ) |
|
|
inlinevirtual |
◆ setTypeDefinition() [1/2]
virtual void AddressSpace::UaControlVariable::setTypeDefinition |
( |
UaNodeId |
uni | ) |
|
|
inlinevirtual |
◆ setTypeDefinition() [2/2]
virtual void AddressSpace::UaControlVariable::setTypeDefinition |
( |
UaNodeId |
uni | ) |
|
|
inlinevirtual |
◆ setValue() [1/2]
virtual UaStatus AddressSpace::UaControlVariable::setValue |
( |
Session * |
pSession, |
|
|
const UaDataValue & |
dataValue, |
|
|
OpcUa_Boolean |
checkAccessLevel |
|
) |
| |
|
inlinevirtual |
◆ setValue() [2/2]
virtual UaStatus AddressSpace::UaControlVariable::setValue |
( |
Session * |
pSession, |
|
|
const UaDataValue & |
dataValue, |
|
|
OpcUa_Boolean |
checkAccessLevel |
|
) |
| |
|
inlinevirtual |
◆ setValueOnChange() [1/2]
virtual UaStatus AddressSpace::UaControlVariable::setValueOnChange |
( |
Session * |
pSession, |
|
|
const UaDataValue & |
dataValue, |
|
|
OpcUa_Boolean |
checkAccessLevel |
|
) |
| |
|
inlinevirtual |
◆ setValueOnChange() [2/2]
virtual UaStatus AddressSpace::UaControlVariable::setValueOnChange |
( |
Session * |
pSession, |
|
|
const UaDataValue & |
dataValue, |
|
|
OpcUa_Boolean |
checkAccessLevel |
|
) |
| |
|
inlinevirtual |
◆ typeDefinitionId() [1/2]
virtual UaNodeId AddressSpace::UaControlVariable::typeDefinitionId |
( |
| ) |
const |
|
inlinevirtual |
◆ typeDefinitionId() [2/2]
virtual UaNodeId AddressSpace::UaControlVariable::typeDefinitionId |
( |
| ) |
const |
|
inlinevirtual |
◆ UA_DISABLE_COPY() [1/2]
◆ UA_DISABLE_COPY() [2/2]
◆ write() [1/2]
virtual UaStatus AddressSpace::UaControlVariable::write |
( |
UaDataValue & |
udv | ) |
|
|
inlinevirtual |
◆ write() [2/2]
virtual UaStatus AddressSpace::UaControlVariable::write |
( |
UaDataValue & |
udv | ) |
|
|
inlinevirtual |
◆ curValue
OpcUa_Double AddressSpace::UaControlVariable::curValue |
◆ m_TypeDefinition
UaNodeId AddressSpace::UaControlVariable::m_TypeDefinition |
|
private |
◆ valueChange
boost::signals2::signal< void(Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel) > AddressSpace::UaControlVariable::valueChange |
The documentation for this class was generated from the following files: