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

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

#include <uajsondatasetreadermessagedatatype.h>

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Wrapper class for the UA stack structure OpcUa_JsonDataSetReaderMessageDataType.

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

Constructor & Destructor Documentation

UaJsonDataSetReaderMessageDataType::UaJsonDataSetReaderMessageDataType ( const UaJsonDataSetReaderMessageDataType other)

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

Parameters
otherthe other UaJsonDataSetReaderMessageDataType used to initialize the object
UaJsonDataSetReaderMessageDataType::UaJsonDataSetReaderMessageDataType ( const OpcUa_JsonDataSetReaderMessageDataType &  other)

Constructs an instance of the class UaJsonDataSetReaderMessageDataType with values from another OpcUa_JsonDataSetReaderMessageDataType structure.

Parameters
otherthe other OpcUa_JsonDataSetReaderMessageDataType used to initialize the object
UaJsonDataSetReaderMessageDataType::UaJsonDataSetReaderMessageDataType ( const UaExtensionObject extensionObject)

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

Parameters
extensionObjectthe extension object containing the JsonDataSetReaderMessageDataType
UaJsonDataSetReaderMessageDataType::UaJsonDataSetReaderMessageDataType ( const OpcUa_ExtensionObject extensionObject)

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

Parameters
extensionObjectthe extension object containing the JsonDataSetReaderMessageDataType

Member Function Documentation

void UaJsonDataSetReaderMessageDataType::attach ( OpcUa_JsonDataSetReaderMessageDataType *  pValue)

Attaches to an existing OpcUa_JsonDataSetReaderMessageDataType structure.

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

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

Clear the data of the UaJsonDataSetReaderMessageDataType.

OpcUa_JsonDataSetReaderMessageDataType * UaJsonDataSetReaderMessageDataType::clone ( const OpcUa_JsonDataSetReaderMessageDataType &  source)
static

Copy OpcUa_JsonDataSetReaderMessageDataType data to a newly allocated OpcUa_JsonDataSetReaderMessageDataType.

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

Copy OpcUa_JsonDataSetReaderMessageDataType data to an existing OpcUa_JsonDataSetReaderMessageDataType structure.

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

Copy UaJsonDataSetReaderMessageDataType data to a newly allocated OpcUa_JsonDataSetReaderMessageDataType.

Returns
pointer to a newly allocated OpcUa_JsonDataSetReaderMessageDataType.
void UaJsonDataSetReaderMessageDataType::copyTo ( OpcUa_JsonDataSetReaderMessageDataType *  pDst) const

Copy UaJsonDataSetReaderMessageDataType data to an existing OpcUa_JsonDataSetReaderMessageDataType structure.

Parameters
pDstthe destination of this copy operation.
OpcUa_JsonDataSetReaderMessageDataType * UaJsonDataSetReaderMessageDataType::detach ( OpcUa_JsonDataSetReaderMessageDataType *  pDst)

Detaches the internal JsonDataSetReaderMessageDataType structure from this class.

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

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

Compare two UaJsonDataSetReaderMessageDataType for inequality.

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

Assignment operator.

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

Compare two UaJsonDataSetReaderMessageDataType for equality.

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

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