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

Wrapper class for the UA stack structure OpcUa_AxisInformation. More...

#include <uaaxisinformation.h>

Public Member Functions

 UaAxisInformation ()
 Constructs an instance of the class UaAxisInformation with empty default values.
 
 UaAxisInformation (const UaAxisInformation &other)
 Constructs an instance of the class UaAxisInformation with values from another UaAxisInformation object. More...
 
 UaAxisInformation (const OpcUa_AxisInformation &other)
 Constructs an instance of the class UaAxisInformation with values from another OpcUa_AxisInformation structure. More...
 
 UaAxisInformation (const UaEUInformation &engineeringUnits, const UaRange &eURange, const UaLocalizedText &title, OpcUa_AxisScaleEnumeration axisScaleType, const UaDoubleArray &axisSteps)
 Constructs an instance of the class UaAxisInformation with values provided in the constructor.
 
 UaAxisInformation (const UaExtensionObject &extensionObject)
 Constructs an instance of the class UaAxisInformation initialized with value from a UaExtensionObject. More...
 
 UaAxisInformation (const OpcUa_ExtensionObject &extensionObject)
 Constructs an instance of the class UaAxisInformation initialized with value from an OpcUa_ExtensionObject structure. More...
 
 ~UaAxisInformation ()
 Destroys the UaAxisInformation object.
 
void clear ()
 Clear the data of the UaAxisInformation. More...
 
bool operator== (const UaAxisInformation &other) const
 Compare two UaAxisInformation if they are similar. More...
 
bool operator!= (const UaAxisInformation &other) const
 Returns true if the other UaAxisInformation is not equal to this. More...
 
UaAxisInformationoperator= (const UaAxisInformation &other)
 Assignment operator. More...
 
OpcUa_AxisInformation * copy () const
 Copy UaAxisInformation data to a newly allocated OpcUa_AxisInformation. More...
 
void copyTo (OpcUa_AxisInformation *pDst) const
 Copy UaAxisInformation data to an existing OpcUa_AxisInformation structure. More...
 
void attach (OpcUa_AxisInformation *pValue)
 Attaches the data of the parameter pValue. More...
 
OpcUa_AxisInformation * detach (OpcUa_AxisInformation *pDst)
 Detaches the internal AxisInformation structure from this class. More...
 

Static Public Member Functions

static OpcUa_AxisInformation * clone (const OpcUa_AxisInformation &source)
 Copy OpcUa_AxisInformation data to a newly allocated OpcUa_AxisInformation. More...
 
static void cloneTo (const OpcUa_AxisInformation &source, OpcUa_AxisInformation &copy)
 Copy OpcUa_AxisInformation data to an existing OpcUa_AxisInformation structure. More...
 

Detailed Description

Wrapper class for the UA stack structure OpcUa_AxisInformation.

This class encapsulates the native OpcUa_AxisInformation structure and handles memory allocation and cleanup for you. UaAxisInformation uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared AxisInformation it creates a copy for that (copy-on-write). So assigning another UaAxisInformation or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.

Constructor & Destructor Documentation

UaAxisInformation::UaAxisInformation ( const UaAxisInformation other)

Constructs an instance of the class UaAxisInformation with values from another UaAxisInformation object.

Parameters
otherthe other UaAxisInformation used to initialize the object
UaAxisInformation::UaAxisInformation ( const OpcUa_AxisInformation &  other)

Constructs an instance of the class UaAxisInformation with values from another OpcUa_AxisInformation structure.

Parameters
otherthe other OpcUa_AxisInformation used to initialize the object
UaAxisInformation::UaAxisInformation ( const UaExtensionObject extensionObject)

Constructs an instance of the class UaAxisInformation initialized with value from a UaExtensionObject.

Parameters
extensionObjectthe extension object containing the AxisInformation
UaAxisInformation::UaAxisInformation ( const OpcUa_ExtensionObject &  extensionObject)

Constructs an instance of the class UaAxisInformation initialized with value from an OpcUa_ExtensionObject structure.

Parameters
extensionObjectthe extension object containing the AxisInformation

Member Function Documentation

void UaAxisInformation::attach ( OpcUa_AxisInformation *  pValue)

Attaches the data of the parameter pValue.

Don't clear the data of pValue afterwards manually, because UaAxisInformation is responsible for it now.

Parameters
[in]pValueParameter to attach to.
void UaAxisInformation::clear ( )

Clear the data of the UaAxisInformation.

OpcUa_AxisInformation * UaAxisInformation::clone ( const OpcUa_AxisInformation &  source)
static

Copy OpcUa_AxisInformation data to a newly allocated OpcUa_AxisInformation.

Parameters
sourceSource to clone.
Returns
new copy.
void UaAxisInformation::cloneTo ( const OpcUa_AxisInformation &  source,
OpcUa_AxisInformation &  copy 
)
static

Copy OpcUa_AxisInformation data to an existing OpcUa_AxisInformation structure.

Parameters
sourcethe source of the clone operation.
copythe destination of the clone operation.
OpcUa_AxisInformation * UaAxisInformation::copy ( ) const

Copy UaAxisInformation data to a newly allocated OpcUa_AxisInformation.

Returns
data to a newly allocated OpcUa_AxisInformation.
void UaAxisInformation::copyTo ( OpcUa_AxisInformation *  pDst) const

Copy UaAxisInformation data to an existing OpcUa_AxisInformation structure.

Parameters
pDstthe destination of this copy operation.
OpcUa_AxisInformation * UaAxisInformation::detach ( OpcUa_AxisInformation *  pDst)

Detaches the internal AxisInformation structure from this class.

This way you take over the control of releasing the AxisInformation data. If more than one reference exists, the data is copied to pDst instead of being detached.

Returns
If the function succeeds, pDst is returned, otherwise 0 is returned.
Parameters
[out]pDstPointer to OpcUa_AxisInformation structure that receives the AxisInformation data.
bool UaAxisInformation::operator!= ( const UaAxisInformation other) const

Returns true if the other UaAxisInformation is not equal to this.

See Also
operator==
Parameters
otherthe UaAxisInformation to compare.
Returns
true if other is not equal to this.
UaAxisInformation & UaAxisInformation::operator= ( const UaAxisInformation other)

Assignment operator.

Parameters
otherthe UaAxisInformation to assign.
Returns
Assignment operator.
bool UaAxisInformation::operator== ( const UaAxisInformation other) const

Compare two UaAxisInformation if they are similar.

Parameters
otherthe UaAxisInformation to compare.
Returns
true if similar, false if not.

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