UA Server SDK C++ Bundle  1.4.1.271
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
UaNumericRange Class Reference

Helper class for NumericRange handling. More...

#include <uanumericrange.h>

Public Member Functions

 UaNumericRange ()
 Constructs a numeric range object with initial value. More...
 
 UaNumericRange (const UaNumericRange &other)
 Constructs a numeric range object with the passed numeric range object.
 
 UaNumericRange (const UaString &sNumericRange)
 Constructs a numeric range object with the passed numeric range string.
 
 ~UaNumericRange ()
 Destroys the numeric range object.
 
UaNumericRangeoperator= (const UaNumericRange &other)
 operator=
 
bool isValid () const
 Test the numeric range for validity. More...
 
void clear ()
 Clear all memory that has been allocated and reset all members.
 
OpcUa_StatusCode setNumericRange (const UaString &sNumericRange)
 Sets the numeric range object with the passed numeric range string.
 

Detailed Description

Helper class for NumericRange handling.

The numeric range provides a way to identify a subset of a single or multidimensional array of data. The numeric range is provided as a string with a defined syntax for different constructs like single index into an array, a range of the array or a subset of a multidimensional array.

BNF for NumericRange:
<numeric-range> ::= dimension [',' dimension]
dimension ::= index [':' index]
index ::= digit [digit]
digit ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'

Constructor & Destructor Documentation

UaNumericRange::UaNumericRange ( )

Constructs a numeric range object with initial value.

No numeric range is set.

Member Function Documentation

bool UaNumericRange::isValid ( ) const

Test the numeric range for validity.

  • The number of dimensions must be at least 1
  • All dimensions have to be either of type INDEX or RANGE
  • For RANGE, firstIndex has to be smaller than secondIndex

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