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

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

#include <uaprogramdiagnostic2datatype.h>

Public Member Functions

 UaProgramDiagnostic2DataType ()
 Constructs an instance of the class UaProgramDiagnostic2DataType with empty default values.
 
 UaProgramDiagnostic2DataType (const UaProgramDiagnostic2DataType &other)
 Constructs an instance of the class UaProgramDiagnostic2DataType with values from another UaProgramDiagnostic2DataType object. More...
 
 UaProgramDiagnostic2DataType (const OpcUa_ProgramDiagnostic2DataType &other)
 Constructs an instance of the class UaProgramDiagnostic2DataType with values from another OpcUa_ProgramDiagnostic2DataType structure. More...
 
 UaProgramDiagnostic2DataType (const UaNodeId &createSessionId, const UaString &createClientName, const UaDateTime &invocationCreationTime, const UaDateTime &lastTransitionTime, const UaString &lastMethodCall, const UaNodeId &lastMethodSessionId, const UaArguments &lastMethodInputArguments, const UaArguments &lastMethodOutputArguments, const UaVariantArray &lastMethodInputValues, const UaVariantArray &lastMethodOutputValues, const UaDateTime &lastMethodCallTime, const UaStatus &lastMethodReturnStatus)
 Constructs an instance of the class UaProgramDiagnostic2DataType with values provided in the constructor.
 
 UaProgramDiagnostic2DataType (const UaExtensionObject &extensionObject)
 Constructs an instance of the class UaProgramDiagnostic2DataType initialized with value from a UaExtensionObject. More...
 
 UaProgramDiagnostic2DataType (const OpcUa_ExtensionObject &extensionObject)
 Constructs an instance of the class UaProgramDiagnostic2DataType initialized with value from an OpcUa_ExtensionObject structure. More...
 
 ~UaProgramDiagnostic2DataType ()
 Destroys the UaProgramDiagnostic2DataType object.
 
void clear ()
 Clear the data of the UaProgramDiagnostic2DataType. More...
 
bool operator== (const UaProgramDiagnostic2DataType &other) const
 Compare two UaProgramDiagnostic2DataType for equality. More...
 
bool operator!= (const UaProgramDiagnostic2DataType &other) const
 Compare two UaProgramDiagnostic2DataType for inequality. More...
 
UaProgramDiagnostic2DataTypeoperator= (const UaProgramDiagnostic2DataType &other)
 Assignment operator. More...
 
OpcUa_ProgramDiagnostic2DataType * copy () const
 Copy UaProgramDiagnostic2DataType data to a newly allocated OpcUa_ProgramDiagnostic2DataType. More...
 
void copyTo (OpcUa_ProgramDiagnostic2DataType *pDst) const
 Copy UaProgramDiagnostic2DataType data to an existing OpcUa_ProgramDiagnostic2DataType structure. More...
 
void attach (OpcUa_ProgramDiagnostic2DataType *pValue)
 Attaches to an existing OpcUa_ProgramDiagnostic2DataType structure. More...
 
OpcUa_ProgramDiagnostic2DataType * detach (OpcUa_ProgramDiagnostic2DataType *pDst)
 Detaches the internal ProgramDiagnostic2DataType structure from this class. More...
 
UaNodeId getCreateSessionId () const
 Returns the CreateSessionId.
 
UaString getCreateClientName () const
 Returns the CreateClientName.
 
UaDateTime getInvocationCreationTime () const
 Returns the InvocationCreationTime.
 
UaDateTime getLastTransitionTime () const
 Returns the LastTransitionTime.
 
UaString getLastMethodCall () const
 Returns the LastMethodCall.
 
UaNodeId getLastMethodSessionId () const
 Returns the LastMethodSessionId.
 
void getLastMethodInputArguments (UaArguments &lastMethodInputArguments) const
 Returns the LastMethodInputArguments.
 
void getLastMethodOutputArguments (UaArguments &lastMethodOutputArguments) const
 Returns the LastMethodOutputArguments.
 
void getLastMethodInputValues (UaVariantArray &lastMethodInputValues) const
 Returns the LastMethodInputValues.
 
void getLastMethodOutputValues (UaVariantArray &lastMethodOutputValues) const
 Returns the LastMethodOutputValues.
 
UaDateTime getLastMethodCallTime () const
 Returns the LastMethodCallTime.
 
UaStatus getLastMethodReturnStatus () const
 Returns the LastMethodReturnStatus.
 
void setCreateSessionId (const UaNodeId &createSessionId)
 Sets the CreateSessionId.
 
void setCreateClientName (const UaString &createClientName)
 Sets the CreateClientName.
 
void setInvocationCreationTime (const UaDateTime &invocationCreationTime)
 Sets the InvocationCreationTime.
 
void setLastTransitionTime (const UaDateTime &lastTransitionTime)
 Sets the LastTransitionTime.
 
void setLastMethodCall (const UaString &lastMethodCall)
 Sets the LastMethodCall.
 
void setLastMethodSessionId (const UaNodeId &lastMethodSessionId)
 Sets the LastMethodSessionId.
 
void setLastMethodInputArguments (const UaArguments &lastMethodInputArguments)
 Sets the LastMethodInputArguments.
 
void setLastMethodOutputArguments (const UaArguments &lastMethodOutputArguments)
 Sets the LastMethodOutputArguments.
 
void setLastMethodInputValues (const UaVariantArray &lastMethodInputValues)
 Sets the LastMethodInputValues.
 
void setLastMethodOutputValues (const UaVariantArray &lastMethodOutputValues)
 Sets the LastMethodOutputValues.
 
void setLastMethodCallTime (const UaDateTime &lastMethodCallTime)
 Sets the LastMethodCallTime.
 
void setLastMethodReturnStatus (const UaStatus &lastMethodReturnStatus)
 Sets the LastMethodReturnStatus.
 

Static Public Member Functions

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

Detailed Description

Wrapper class for the UA stack structure OpcUa_ProgramDiagnostic2DataType.

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

Constructor & Destructor Documentation

UaProgramDiagnostic2DataType::UaProgramDiagnostic2DataType ( const UaProgramDiagnostic2DataType other)

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

Parameters
otherthe other UaProgramDiagnostic2DataType used to initialize the object
UaProgramDiagnostic2DataType::UaProgramDiagnostic2DataType ( const OpcUa_ProgramDiagnostic2DataType &  other)

Constructs an instance of the class UaProgramDiagnostic2DataType with values from another OpcUa_ProgramDiagnostic2DataType structure.

Parameters
otherthe other OpcUa_ProgramDiagnostic2DataType used to initialize the object
UaProgramDiagnostic2DataType::UaProgramDiagnostic2DataType ( const UaExtensionObject extensionObject)

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

Parameters
extensionObjectthe extension object containing the ProgramDiagnostic2DataType
UaProgramDiagnostic2DataType::UaProgramDiagnostic2DataType ( const OpcUa_ExtensionObject extensionObject)

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

Parameters
extensionObjectthe extension object containing the ProgramDiagnostic2DataType

Member Function Documentation

void UaProgramDiagnostic2DataType::attach ( OpcUa_ProgramDiagnostic2DataType *  pValue)

Attaches to an existing OpcUa_ProgramDiagnostic2DataType structure.

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

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

Clear the data of the UaProgramDiagnostic2DataType.

OpcUa_ProgramDiagnostic2DataType * UaProgramDiagnostic2DataType::clone ( const OpcUa_ProgramDiagnostic2DataType &  source)
static

Copy OpcUa_ProgramDiagnostic2DataType data to a newly allocated OpcUa_ProgramDiagnostic2DataType.

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

Copy OpcUa_ProgramDiagnostic2DataType data to an existing OpcUa_ProgramDiagnostic2DataType structure.

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

Copy UaProgramDiagnostic2DataType data to a newly allocated OpcUa_ProgramDiagnostic2DataType.

Returns
pointer to a newly allocated OpcUa_ProgramDiagnostic2DataType.
void UaProgramDiagnostic2DataType::copyTo ( OpcUa_ProgramDiagnostic2DataType *  pDst) const

Copy UaProgramDiagnostic2DataType data to an existing OpcUa_ProgramDiagnostic2DataType structure.

Parameters
pDstthe destination of this copy operation.
OpcUa_ProgramDiagnostic2DataType * UaProgramDiagnostic2DataType::detach ( OpcUa_ProgramDiagnostic2DataType *  pDst)

Detaches the internal ProgramDiagnostic2DataType structure from this class.

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

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

Compare two UaProgramDiagnostic2DataType for inequality.

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

Assignment operator.

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

Compare two UaProgramDiagnostic2DataType for equality.

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

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