OpcUaCanOpen
CANopen OPC-UA server
AddressSpace::UaProgramStartVariable Class Reference

#include <UaProgramStartVariable.h>

Inherits AddressSpace::UaControlVariable, and AddressSpace::UaControlVariable.

Public Member Functions

 UaProgramStartVariable (const UaString &name, const UaNodeId &newNodeId, NmBuildingAutomation *pNodeManager, UaVariant &dv, UaProgramItem *prog, UaMutexRefCounted *pSharedMutex)
 Constructor. More...
 
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...
 
 UaProgramStartVariable (const UaString &name, const UaNodeId &newNodeId, NmBuildingAutomation *pNodeManager, UaVariant &dv, UaProgramItem *prog, UaMutexRefCounted *pSharedMutex)
 Constructor. More...
 
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...
 
- Public Member Functions inherited from AddressSpace::UaControlVariable
 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 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 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...
 

Private Attributes

UaProgramItemm_pProg
 

Additional Inherited Members

- Public Attributes inherited from AddressSpace::UaControlVariable
boost::signals2::signal< void(Session *pSession, const UaDataValue &dataValue, OpcUa_Boolean checkAccessLevel) > valueChange
 write date to hardware More...
 
OpcUa_Double curValue
 

Detailed Description

Definition at line 14 of file UaProgramStartVariable.h.

Constructor & Destructor Documentation

◆ UaProgramStartVariable() [1/2]

AddressSpace::UaProgramStartVariable::UaProgramStartVariable ( const UaString &  name,
const UaNodeId &  newNodeId,
NmBuildingAutomation pNodeManager,
UaVariant &  dv,
UaProgramItem prog,
UaMutexRefCounted *  pSharedMutex 
)
inline

Constructor.

Parameters
namethe name of ua node
newNodeIditem ua node id
pNodeManagerpointer to node manager
dvinitial value of item (usually empty)
pSharedMutexpointer to shared mutex (using toolkit)

Definition at line 26 of file UaProgramStartVariable.h.

◆ UaProgramStartVariable() [2/2]

AddressSpace::UaProgramStartVariable::UaProgramStartVariable ( const UaString &  name,
const UaNodeId &  newNodeId,
NmBuildingAutomation pNodeManager,
UaVariant &  dv,
UaProgramItem prog,
UaMutexRefCounted *  pSharedMutex 
)
inline

Constructor.

Parameters
namethe name of ua node
newNodeIditem ua node id
pNodeManagerpointer to node manager
dvinitial value of item (usually empty)
pSharedMutexpointer to shared mutex (using toolkit)

Definition at line 26 of file UaProgramStartVariable.hpp.

Member Function Documentation

◆ setValue() [1/2]

virtual UaStatus AddressSpace::UaProgramStartVariable::setValue ( Session *  pSession,
const UaDataValue &  dataValue,
OpcUa_Boolean  checkAccessLevel 
)
inlinevirtual

Redefine setValue function to sent data change signal;.

Parameters
pSessionpointer to current session
dataValuenew value of item
checkAccessLevelwhether check access
Returns
status

Reimplemented from AddressSpace::UaControlVariable.

Definition at line 47 of file UaProgramStartVariable.h.

◆ setValue() [2/2]

virtual UaStatus AddressSpace::UaProgramStartVariable::setValue ( Session *  pSession,
const UaDataValue &  dataValue,
OpcUa_Boolean  checkAccessLevel 
)
inlinevirtual

Redefine setValue function to sent data change signal;.

Parameters
pSessionpointer to current session
dataValuenew value of item
checkAccessLevelwhether check access
Returns
status

Reimplemented from AddressSpace::UaControlVariable.

Definition at line 47 of file UaProgramStartVariable.hpp.

◆ setValueOnChange() [1/2]

virtual UaStatus AddressSpace::UaProgramStartVariable::setValueOnChange ( Session *  pSession,
const UaDataValue &  dataValue,
OpcUa_Boolean  checkAccessLevel 
)
inlinevirtual

Redefine setValue function to sent data change signal;.

Parameters
pSessionpointer to current session
dataValuenew value of item
checkAccessLevelwhether check access
Returns
status

Reimplemented from AddressSpace::UaControlVariable.

Definition at line 63 of file UaProgramStartVariable.hpp.

◆ setValueOnChange() [2/2]

virtual UaStatus AddressSpace::UaProgramStartVariable::setValueOnChange ( Session *  pSession,
const UaDataValue &  dataValue,
OpcUa_Boolean  checkAccessLevel 
)
inlinevirtual

Redefine setValue function to sent data change signal;.

Parameters
pSessionpointer to current session
dataValuenew value of item
checkAccessLevelwhether check access
Returns
status

Reimplemented from AddressSpace::UaControlVariable.

Definition at line 64 of file UaProgramStartVariable.h.

Member Data Documentation

◆ m_pProg

UaProgramItem * AddressSpace::UaProgramStartVariable::m_pProg
private

Definition at line 75 of file UaProgramStartVariable.h.


The documentation for this class was generated from the following files: