UA Server SDK C++ Bundle
1.4.1.271
|
Wrapper class for the UA stack structure OpcUa_RedundantServerDataType. More...
#include <uaredundantserverdatatype.h>
Public Member Functions | |
UaRedundantServerDataType () | |
Constructs an instance of the class UaRedundantServerDataType with empty default values. | |
UaRedundantServerDataType (const UaRedundantServerDataType &other) | |
Constructs an instance of the class UaRedundantServerDataType with values from another UaRedundantServerDataType object. More... | |
UaRedundantServerDataType (const OpcUa_RedundantServerDataType &other) | |
Constructs an instance of the class UaRedundantServerDataType with values from another OpcUa_RedundantServerDataType structure. More... | |
UaRedundantServerDataType (const UaString &serverId, OpcUa_Byte serviceLevel, OpcUa_ServerState serverState) | |
Constructs an instance of the class UaRedundantServerDataType with values provided in the constructor. | |
UaRedundantServerDataType (const UaExtensionObject &extensionObject) | |
Constructs an instance of the class UaRedundantServerDataType initialized with value from a UaExtensionObject. More... | |
UaRedundantServerDataType (const OpcUa_ExtensionObject &extensionObject) | |
Constructs an instance of the class UaRedundantServerDataType initialized with value from an OpcUa_ExtensionObject structure. More... | |
~UaRedundantServerDataType () | |
Destroys the UaRedundantServerDataType object. | |
void | clear () |
Clear the data of the UaRedundantServerDataType. More... | |
bool | operator== (const UaRedundantServerDataType &other) const |
Compare two UaRedundantServerDataType if they are similar. More... | |
bool | operator!= (const UaRedundantServerDataType &other) const |
Returns true if the other UaRedundantServerDataType is not equal to this. More... | |
UaRedundantServerDataType & | operator= (const UaRedundantServerDataType &other) |
Assignment operator. More... | |
OpcUa_RedundantServerDataType * | copy () const |
Copy UaRedundantServerDataType data to a newly allocated OpcUa_RedundantServerDataType. More... | |
void | copyTo (OpcUa_RedundantServerDataType *pDst) const |
Copy UaRedundantServerDataType data to an existing OpcUa_RedundantServerDataType structure. More... | |
void | attach (OpcUa_RedundantServerDataType *pValue) |
Attaches the data of the parameter pValue. More... | |
OpcUa_RedundantServerDataType * | detach (OpcUa_RedundantServerDataType *pDst) |
Detaches the internal RedundantServerDataType structure from this class. More... | |
Static Public Member Functions | |
static OpcUa_RedundantServerDataType * | clone (const OpcUa_RedundantServerDataType &source) |
Copy OpcUa_RedundantServerDataType data to a newly allocated OpcUa_RedundantServerDataType. More... | |
static void | cloneTo (const OpcUa_RedundantServerDataType &source, OpcUa_RedundantServerDataType ©) |
Copy OpcUa_RedundantServerDataType data to an existing OpcUa_RedundantServerDataType structure. More... | |
Wrapper class for the UA stack structure OpcUa_RedundantServerDataType.
This class encapsulates the native OpcUa_RedundantServerDataType structure and handles memory allocation and cleanup for you. UaRedundantServerDataType uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared RedundantServerDataType it creates a copy for that (copy-on-write). So assigning another UaRedundantServerDataType or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.
UaRedundantServerDataType::UaRedundantServerDataType | ( | const UaRedundantServerDataType & | other | ) |
Constructs an instance of the class UaRedundantServerDataType with values from another UaRedundantServerDataType object.
other | the other UaRedundantServerDataType used to initialize the object |
UaRedundantServerDataType::UaRedundantServerDataType | ( | const OpcUa_RedundantServerDataType & | other | ) |
Constructs an instance of the class UaRedundantServerDataType with values from another OpcUa_RedundantServerDataType structure.
other | the other OpcUa_RedundantServerDataType used to initialize the object |
UaRedundantServerDataType::UaRedundantServerDataType | ( | const UaExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaRedundantServerDataType initialized with value from a UaExtensionObject.
extensionObject | the extension object containing the RedundantServerDataType |
UaRedundantServerDataType::UaRedundantServerDataType | ( | const OpcUa_ExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaRedundantServerDataType initialized with value from an OpcUa_ExtensionObject structure.
extensionObject | the extension object containing the RedundantServerDataType |
void UaRedundantServerDataType::attach | ( | OpcUa_RedundantServerDataType * | pValue | ) |
Attaches the data of the parameter pValue.
Don't clear the data of pValue afterwards manually, because UaRedundantServerDataType is responsible for it now.
[in] | pValue | Parameter to attach to. |
void UaRedundantServerDataType::clear | ( | ) |
Clear the data of the UaRedundantServerDataType.
|
static |
Copy OpcUa_RedundantServerDataType data to a newly allocated OpcUa_RedundantServerDataType.
source | Source to clone. |
|
static |
Copy OpcUa_RedundantServerDataType data to an existing OpcUa_RedundantServerDataType structure.
source | the source of the clone operation. |
copy | the destination of the clone operation. |
OpcUa_RedundantServerDataType * UaRedundantServerDataType::copy | ( | ) | const |
Copy UaRedundantServerDataType data to a newly allocated OpcUa_RedundantServerDataType.
void UaRedundantServerDataType::copyTo | ( | OpcUa_RedundantServerDataType * | pDst | ) | const |
Copy UaRedundantServerDataType data to an existing OpcUa_RedundantServerDataType structure.
pDst | the destination of this copy operation. |
OpcUa_RedundantServerDataType * UaRedundantServerDataType::detach | ( | OpcUa_RedundantServerDataType * | pDst | ) |
Detaches the internal RedundantServerDataType structure from this class.
This way you take over the control of releasing the RedundantServerDataType data. If more than one reference exists, the data is copied to pDst instead of being detached.
[out] | pDst | Pointer to OpcUa_RedundantServerDataType structure that receives the RedundantServerDataType data. |
bool UaRedundantServerDataType::operator!= | ( | const UaRedundantServerDataType & | other | ) | const |
Returns true if the other UaRedundantServerDataType is not equal to this.
other | the UaRedundantServerDataType to compare. |
UaRedundantServerDataType & UaRedundantServerDataType::operator= | ( | const UaRedundantServerDataType & | other | ) |
Assignment operator.
other | the UaRedundantServerDataType to assign. |
bool UaRedundantServerDataType::operator== | ( | const UaRedundantServerDataType & | other | ) | const |
Compare two UaRedundantServerDataType if they are similar.
other | the UaRedundantServerDataType to compare. |