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