CVB++ 14.0
MethodNodeArgument Class Reference

An OPCUAMethodNodeArgument is a helper class to manage arguments of a method node. More...

#include <cvb/opcua/method_node_argument.hpp>

Public Member Functions

OpcUa::DataType Datatype () const
 Return the data type of the argument. More...
 
template<typename T >
Read ()
 Returns the value of the argument. More...
 
template<typename T >
void Write (const T &value)
 Sets the value of the argument. More...
 
OpcUa::ArgumentType ArgumentType ()
 Returns whether this is an input or output argument. More...
 

Detailed Description

An OPCUAMethodNodeArgument is a helper class to manage arguments of a method node.

Member Function Documentation

◆ ArgumentType()

Returns whether this is an input or output argument.

Returns
input or output argument type.

◆ Datatype()

OpcUa::DataType Datatype ( ) const

Return the data type of the argument.

Returns
The data type.
Exceptions
Anyexception derived from std::exception including CvbException and OpcUaException.

◆ Read()

T Read

Returns the value of the argument.

Note
Use OpcUa::MethodNodeArgument::Datatype() to determine the correct type.
Returns
The value.
Exceptions
Anyexception derived from std::exception including CvbException and OpcUaException.

◆ Write()

void Write ( const T &  value)

Sets the value of the argument.

Note
Use OpcUa::MethodNodeArgument::Datatype() to determine the correct type.
Parameters
[in]valueThe value.
Exceptions
Anyexception derived from std::exception including CvbException and OpcUaException.