UA Server SDK C++ Bundle
1.4.1.271
|
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... | |
UaAxisInformation & | operator= (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 OpcUa_AxisInformation data to an existing OpcUa_AxisInformation structure. More... | |
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.
UaAxisInformation::UaAxisInformation | ( | const UaAxisInformation & | other | ) |
Constructs an instance of the class UaAxisInformation with values from another UaAxisInformation object.
other | the 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.
other | the 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.
extensionObject | the 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.
extensionObject | the extension object containing the AxisInformation |
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.
[in] | pValue | Parameter to attach to. |
void UaAxisInformation::clear | ( | ) |
Clear the data of the UaAxisInformation.
|
static |
Copy OpcUa_AxisInformation data to a newly allocated OpcUa_AxisInformation.
source | Source to clone. |
|
static |
Copy OpcUa_AxisInformation data to an existing OpcUa_AxisInformation structure.
source | the source of the clone operation. |
copy | the destination of the clone operation. |
OpcUa_AxisInformation * UaAxisInformation::copy | ( | ) | const |
Copy UaAxisInformation data to a newly allocated OpcUa_AxisInformation.
void UaAxisInformation::copyTo | ( | OpcUa_AxisInformation * | pDst | ) | const |
Copy UaAxisInformation data to an existing OpcUa_AxisInformation structure.
pDst | the 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.
[out] | pDst | Pointer 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.
other | the UaAxisInformation to compare. |
UaAxisInformation & UaAxisInformation::operator= | ( | const UaAxisInformation & | other | ) |
bool UaAxisInformation::operator== | ( | const UaAxisInformation & | other | ) | const |
Compare two UaAxisInformation if they are similar.
other | the UaAxisInformation to compare. |