C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537
UaJsonWriterGroupMessageDataType Class Reference

Wrapper class for the UA stack structure OpcUa_JsonWriterGroupMessageDataType. More...

#include <uajsonwritergroupmessagedatatype.h>

Public Member Functions

 UaJsonWriterGroupMessageDataType ()
 Constructs an instance of the class UaJsonWriterGroupMessageDataType with empty default values.
 
 UaJsonWriterGroupMessageDataType (const UaJsonWriterGroupMessageDataType &other)
 Constructs an instance of the class UaJsonWriterGroupMessageDataType with values from another UaJsonWriterGroupMessageDataType object. More...
 
 UaJsonWriterGroupMessageDataType (const OpcUa_JsonWriterGroupMessageDataType &other)
 Constructs an instance of the class UaJsonWriterGroupMessageDataType with values from another OpcUa_JsonWriterGroupMessageDataType structure. More...
 
 UaJsonWriterGroupMessageDataType (OpcUa_JsonNetworkMessageContentMask networkMessageContentMask)
 Constructs an instance of the class UaJsonWriterGroupMessageDataType with values provided in the constructor.
 
 UaJsonWriterGroupMessageDataType (const UaExtensionObject &extensionObject)
 Constructs an instance of the class UaJsonWriterGroupMessageDataType initialized with value from a UaExtensionObject. More...
 
 UaJsonWriterGroupMessageDataType (const OpcUa_ExtensionObject &extensionObject)
 Constructs an instance of the class UaJsonWriterGroupMessageDataType initialized with value from an OpcUa_ExtensionObject structure. More...
 
 ~UaJsonWriterGroupMessageDataType ()
 Destroys the UaJsonWriterGroupMessageDataType object.
 
void clear ()
 Clear the data of the UaJsonWriterGroupMessageDataType. More...
 
bool operator== (const UaJsonWriterGroupMessageDataType &other) const
 Compare two UaJsonWriterGroupMessageDataType for equality. More...
 
bool operator!= (const UaJsonWriterGroupMessageDataType &other) const
 Compare two UaJsonWriterGroupMessageDataType for inequality. More...
 
UaJsonWriterGroupMessageDataTypeoperator= (const UaJsonWriterGroupMessageDataType &other)
 Assignment operator. More...
 
OpcUa_JsonWriterGroupMessageDataType * copy () const
 Copy UaJsonWriterGroupMessageDataType data to a newly allocated OpcUa_JsonWriterGroupMessageDataType. More...
 
void copyTo (OpcUa_JsonWriterGroupMessageDataType *pDst) const
 Copy UaJsonWriterGroupMessageDataType data to an existing OpcUa_JsonWriterGroupMessageDataType structure. More...
 
void attach (OpcUa_JsonWriterGroupMessageDataType *pValue)
 Attaches to an existing OpcUa_JsonWriterGroupMessageDataType structure. More...
 
OpcUa_JsonWriterGroupMessageDataType * detach (OpcUa_JsonWriterGroupMessageDataType *pDst)
 Detaches the internal JsonWriterGroupMessageDataType structure from this class. More...
 
OpcUa_JsonNetworkMessageContentMask getNetworkMessageContentMask () const
 Returns the NetworkMessageContentMask.
 
void setNetworkMessageContentMask (OpcUa_JsonNetworkMessageContentMask networkMessageContentMask)
 Sets the NetworkMessageContentMask.
 

Static Public Member Functions

static
OpcUa_JsonWriterGroupMessageDataType * 
clone (const OpcUa_JsonWriterGroupMessageDataType &source)
 Copy OpcUa_JsonWriterGroupMessageDataType data to a newly allocated OpcUa_JsonWriterGroupMessageDataType. More...
 
static void cloneTo (const OpcUa_JsonWriterGroupMessageDataType &source, OpcUa_JsonWriterGroupMessageDataType &copy)
 Copy OpcUa_JsonWriterGroupMessageDataType data to an existing OpcUa_JsonWriterGroupMessageDataType structure. More...
 

Detailed Description

Wrapper class for the UA stack structure OpcUa_JsonWriterGroupMessageDataType.

This class encapsulates the native OpcUa_JsonWriterGroupMessageDataType structure and handles memory allocation and cleanup for you. UaJsonWriterGroupMessageDataType uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared JsonWriterGroupMessageDataType it creates a copy for that (copy-on-write). So assigning another UaJsonWriterGroupMessageDataType or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.

Constructor & Destructor Documentation

UaJsonWriterGroupMessageDataType::UaJsonWriterGroupMessageDataType ( const UaJsonWriterGroupMessageDataType other)

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

Parameters
otherthe other UaJsonWriterGroupMessageDataType used to initialize the object
UaJsonWriterGroupMessageDataType::UaJsonWriterGroupMessageDataType ( const OpcUa_JsonWriterGroupMessageDataType &  other)

Constructs an instance of the class UaJsonWriterGroupMessageDataType with values from another OpcUa_JsonWriterGroupMessageDataType structure.

Parameters
otherthe other OpcUa_JsonWriterGroupMessageDataType used to initialize the object
UaJsonWriterGroupMessageDataType::UaJsonWriterGroupMessageDataType ( const UaExtensionObject extensionObject)

Constructs an instance of the class UaJsonWriterGroupMessageDataType initialized with value from a UaExtensionObject.

Parameters
extensionObjectthe extension object containing the JsonWriterGroupMessageDataType
UaJsonWriterGroupMessageDataType::UaJsonWriterGroupMessageDataType ( const OpcUa_ExtensionObject extensionObject)

Constructs an instance of the class UaJsonWriterGroupMessageDataType initialized with value from an OpcUa_ExtensionObject structure.

Parameters
extensionObjectthe extension object containing the JsonWriterGroupMessageDataType

Member Function Documentation

void UaJsonWriterGroupMessageDataType::attach ( OpcUa_JsonWriterGroupMessageDataType *  pValue)

Attaches to an existing OpcUa_JsonWriterGroupMessageDataType structure.

Don't manually free the attached structure afterwards, because UaJsonWriterGroupMessageDataType is responsible for it now.

Parameters
pValue[in] Parameter to attach to.
void UaJsonWriterGroupMessageDataType::clear ( )

Clear the data of the UaJsonWriterGroupMessageDataType.

OpcUa_JsonWriterGroupMessageDataType * UaJsonWriterGroupMessageDataType::clone ( const OpcUa_JsonWriterGroupMessageDataType &  source)
static

Copy OpcUa_JsonWriterGroupMessageDataType data to a newly allocated OpcUa_JsonWriterGroupMessageDataType.

Parameters
sourceSource to clone.
Returns
pointer to a newly allocated OpcUa_JsonWriterGroupMessageDataType.
void UaJsonWriterGroupMessageDataType::cloneTo ( const OpcUa_JsonWriterGroupMessageDataType &  source,
OpcUa_JsonWriterGroupMessageDataType &  copy 
)
static

Copy OpcUa_JsonWriterGroupMessageDataType data to an existing OpcUa_JsonWriterGroupMessageDataType structure.

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

Copy UaJsonWriterGroupMessageDataType data to a newly allocated OpcUa_JsonWriterGroupMessageDataType.

Returns
pointer to a newly allocated OpcUa_JsonWriterGroupMessageDataType.
void UaJsonWriterGroupMessageDataType::copyTo ( OpcUa_JsonWriterGroupMessageDataType *  pDst) const

Copy UaJsonWriterGroupMessageDataType data to an existing OpcUa_JsonWriterGroupMessageDataType structure.

Parameters
pDstthe destination of this copy operation.
OpcUa_JsonWriterGroupMessageDataType * UaJsonWriterGroupMessageDataType::detach ( OpcUa_JsonWriterGroupMessageDataType *  pDst)

Detaches the internal JsonWriterGroupMessageDataType structure from this class.

This way you take over the control of freeing the JsonWriterGroupMessageDataType data. If more than one reference exists, the data is copied to pDst instead of being detached.

Parameters
pDst[out] Pointer to an OpcUa_JsonWriterGroupMessageDataType structure that receives the JsonWriterGroupMessageDataType data.
Returns
If the function succeeds, pDst is returned, otherwise 0 is returned.
bool UaJsonWriterGroupMessageDataType::operator!= ( const UaJsonWriterGroupMessageDataType other) const

Compare two UaJsonWriterGroupMessageDataType for inequality.

See also
operator==
Parameters
otherthe UaJsonWriterGroupMessageDataType to compare with.
Returns
true if not equal, false otherwise.
UaJsonWriterGroupMessageDataType & UaJsonWriterGroupMessageDataType::operator= ( const UaJsonWriterGroupMessageDataType other)

Assignment operator.

Parameters
otherthe UaJsonWriterGroupMessageDataType to assign.
Returns
reference to itself.
bool UaJsonWriterGroupMessageDataType::operator== ( const UaJsonWriterGroupMessageDataType other) const

Compare two UaJsonWriterGroupMessageDataType for equality.

Parameters
otherthe UaJsonWriterGroupMessageDataType to compare with.
Returns
true if equal, false if not.

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