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