C++ UA Server SDK
1.5.2.336
|
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 for equality. More... | |
bool | operator!= (const UaRedundantServerDataType &other) const |
Compare two UaRedundantServerDataType for inequality. 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 to an existing OpcUa_RedundantServerDataType structure. More... | |
OpcUa_RedundantServerDataType * | detach (OpcUa_RedundantServerDataType *pDst) |
Detaches the internal RedundantServerDataType structure from this class. More... | |
UaString | getServerId () const |
The Id of the server (not the URI). | |
OpcUa_Byte | getServiceLevel () const |
The service level of the server. | |
OpcUa_ServerState | getServerState () const |
The current state of the server. | |
void | setServerId (const UaString &serverId) |
The Id of the server (not the URI). | |
void | setServiceLevel (OpcUa_Byte serviceLevel) |
The service level of the server. | |
void | setServerState (OpcUa_ServerState serverState) |
The current state of the server. | |
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.
Contains elements that describe the status of the Server.
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 to an existing OpcUa_RedundantServerDataType structure.
Don't manually free the attached structure afterwards, because UaRedundantServerDataType is responsible for it now.
pValue | [in] 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 freeing the RedundantServerDataType data. If more than one reference exists, the data is copied to pDst instead of being detached.
pDst | [out] Pointer to an OpcUa_RedundantServerDataType structure that receives the RedundantServerDataType data. |
bool UaRedundantServerDataType::operator!= | ( | const UaRedundantServerDataType & | other | ) | const |
Compare two UaRedundantServerDataType for inequality.
other | the UaRedundantServerDataType to compare with. |
UaRedundantServerDataType & UaRedundantServerDataType::operator= | ( | const UaRedundantServerDataType & | other | ) |
Assignment operator.
other | the UaRedundantServerDataType to assign. |
bool UaRedundantServerDataType::operator== | ( | const UaRedundantServerDataType & | other | ) | const |
Compare two UaRedundantServerDataType for equality.
other | the UaRedundantServerDataType to compare with. |