UA Server SDK C++ Bundle  1.4.1.271
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
UaTimeZoneDataType Class Reference

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...
 
UaTimeZoneDataTypeoperator= (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)
 Copy OpcUa_TimeZoneDataType data to an existing OpcUa_TimeZoneDataType structure. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

UaTimeZoneDataType::UaTimeZoneDataType ( const UaTimeZoneDataType other)

Constructs an instance of the class UaTimeZoneDataType with values from another UaTimeZoneDataType object.

Parameters
otherthe 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.

Parameters
otherthe 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.

Parameters
extensionObjectthe 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.

Parameters
extensionObjectthe extension object containing the TimeZoneDataType

Member Function Documentation

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.

Parameters
[in]pValueParameter to attach to.
void UaTimeZoneDataType::clear ( )

Clear the data of the UaTimeZoneDataType.

OpcUa_TimeZoneDataType * UaTimeZoneDataType::clone ( const OpcUa_TimeZoneDataType &  source)
static

Copy OpcUa_TimeZoneDataType data to a newly allocated OpcUa_TimeZoneDataType.

Parameters
sourceSource to clone.
Returns
new copy.
void UaTimeZoneDataType::cloneTo ( const OpcUa_TimeZoneDataType &  source,
OpcUa_TimeZoneDataType &  copy 
)
static

Copy OpcUa_TimeZoneDataType data to an existing OpcUa_TimeZoneDataType structure.

Parameters
sourcethe source of the clone operation.
copythe destination of the clone operation.
OpcUa_TimeZoneDataType * UaTimeZoneDataType::copy ( ) const

Copy UaTimeZoneDataType data to a newly allocated OpcUa_TimeZoneDataType.

Returns
data to a newly allocated OpcUa_TimeZoneDataType.
void UaTimeZoneDataType::copyTo ( OpcUa_TimeZoneDataType *  pDst) const

Copy UaTimeZoneDataType data to an existing OpcUa_TimeZoneDataType structure.

Parameters
pDstthe 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.

Returns
If the function succeeds, pDst is returned, otherwise 0 is returned.
Parameters
[out]pDstPointer 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.

See Also
operator==
Parameters
otherthe UaTimeZoneDataType to compare.
Returns
true if other is not equal to this.
UaTimeZoneDataType & UaTimeZoneDataType::operator= ( const UaTimeZoneDataType other)

Assignment operator.

Parameters
otherthe UaTimeZoneDataType to assign.
Returns
Assignment operator.
bool UaTimeZoneDataType::operator== ( const UaTimeZoneDataType other) const

Compare two UaTimeZoneDataType if they are similar.

Parameters
otherthe UaTimeZoneDataType to compare.
Returns
true if similar, false if not.

The documentation for this class was generated from the following files: