C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uatrustlistdatatype.h>

Public Member Functions

 UaTrustListDataType ()
 Constructs an instance of the class UaTrustListDataType with empty default values.
 
 UaTrustListDataType (const UaTrustListDataType &other)
 Constructs an instance of the class UaTrustListDataType with values from another UaTrustListDataType object. More...
 
 UaTrustListDataType (const OpcUa_TrustListDataType &other)
 Constructs an instance of the class UaTrustListDataType with values from another OpcUa_TrustListDataType structure. More...
 
 UaTrustListDataType (OpcUa_UInt32 specifiedLists, const UaByteStringArray &trustedCertificates, const UaByteStringArray &trustedCrls, const UaByteStringArray &issuerCertificates, const UaByteStringArray &issuerCrls)
 Constructs an instance of the class UaTrustListDataType with values provided in the constructor.
 
 UaTrustListDataType (const UaExtensionObject &extensionObject)
 Constructs an instance of the class UaTrustListDataType initialized with value from a UaExtensionObject. More...
 
 UaTrustListDataType (const OpcUa_ExtensionObject &extensionObject)
 Constructs an instance of the class UaTrustListDataType initialized with value from an OpcUa_ExtensionObject structure. More...
 
 ~UaTrustListDataType ()
 Destroys the UaTrustListDataType object.
 
void clear ()
 Clear the data of the UaTrustListDataType. More...
 
bool operator== (const UaTrustListDataType &other) const
 Compare two UaTrustListDataType for equality. More...
 
bool operator!= (const UaTrustListDataType &other) const
 Compare two UaTrustListDataType for inequality. More...
 
UaTrustListDataTypeoperator= (const UaTrustListDataType &other)
 Assignment operator. More...
 
OpcUa_TrustListDataTypecopy () const
 Copy UaTrustListDataType data to a newly allocated OpcUa_TrustListDataType. More...
 
void copyTo (OpcUa_TrustListDataType *pDst) const
 Copy UaTrustListDataType data to an existing OpcUa_TrustListDataType structure. More...
 
void attach (OpcUa_TrustListDataType *pValue)
 Attaches to an existing OpcUa_TrustListDataType structure. More...
 
OpcUa_TrustListDataTypedetach (OpcUa_TrustListDataType *pDst)
 Detaches the internal TrustListDataType structure from this class. More...
 
OpcUa_UInt32 getSpecifiedLists () const
 Returns the SpecifiedLists.
 
void getTrustedCertificates (UaByteStringArray &trustedCertificates) const
 Returns the TrustedCertificates.
 
void getTrustedCrls (UaByteStringArray &trustedCrls) const
 Returns the TrustedCrls.
 
void getIssuerCertificates (UaByteStringArray &issuerCertificates) const
 Returns the IssuerCertificates.
 
void getIssuerCrls (UaByteStringArray &issuerCrls) const
 Returns the IssuerCrls.
 
void setSpecifiedLists (OpcUa_UInt32 specifiedLists)
 Sets the SpecifiedLists.
 
void setTrustedCertificates (const UaByteStringArray &trustedCertificates)
 Sets the TrustedCertificates.
 
void setTrustedCrls (const UaByteStringArray &trustedCrls)
 Sets the TrustedCrls.
 
void setIssuerCertificates (const UaByteStringArray &issuerCertificates)
 Sets the IssuerCertificates.
 
void setIssuerCrls (const UaByteStringArray &issuerCrls)
 Sets the IssuerCrls.
 

Static Public Member Functions

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

Detailed Description

Wrapper class for the UA stack structure OpcUa_TrustListDataType.

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

Constructor & Destructor Documentation

UaTrustListDataType::UaTrustListDataType ( const UaTrustListDataType other)

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

Parameters
otherthe other UaTrustListDataType used to initialize the object
UaTrustListDataType::UaTrustListDataType ( const OpcUa_TrustListDataType other)

Constructs an instance of the class UaTrustListDataType with values from another OpcUa_TrustListDataType structure.

Parameters
otherthe other OpcUa_TrustListDataType used to initialize the object
UaTrustListDataType::UaTrustListDataType ( const UaExtensionObject extensionObject)

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

Parameters
extensionObjectthe extension object containing the TrustListDataType
UaTrustListDataType::UaTrustListDataType ( const OpcUa_ExtensionObject extensionObject)

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

Parameters
extensionObjectthe extension object containing the TrustListDataType

Member Function Documentation

void UaTrustListDataType::attach ( OpcUa_TrustListDataType pValue)

Attaches to an existing OpcUa_TrustListDataType structure.

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

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

Clear the data of the UaTrustListDataType.

OpcUa_TrustListDataType * UaTrustListDataType::clone ( const OpcUa_TrustListDataType source)
static

Copy OpcUa_TrustListDataType data to a newly allocated OpcUa_TrustListDataType.

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

Copy OpcUa_TrustListDataType data to an existing OpcUa_TrustListDataType structure.

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

Copy UaTrustListDataType data to a newly allocated OpcUa_TrustListDataType.

Returns
pointer to a newly allocated OpcUa_TrustListDataType.
void UaTrustListDataType::copyTo ( OpcUa_TrustListDataType pDst) const

Copy UaTrustListDataType data to an existing OpcUa_TrustListDataType structure.

Parameters
pDstthe destination of this copy operation.
OpcUa_TrustListDataType * UaTrustListDataType::detach ( OpcUa_TrustListDataType pDst)

Detaches the internal TrustListDataType structure from this class.

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

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

Compare two UaTrustListDataType for inequality.

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

Assignment operator.

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

Compare two UaTrustListDataType for equality.

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

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