![]() |
C++ Based OPC UA Client/Server/PubSub SDK
1.7.6.537
|
Wrapper class for the UA stack structure OpcUa_BrokerConnectionTransportDataType. More...
#include <uabrokerconnectiontransportdatatype.h>
Public Member Functions | |
UaBrokerConnectionTransportDataType () | |
Constructs an instance of the class UaBrokerConnectionTransportDataType with empty default values. | |
UaBrokerConnectionTransportDataType (const UaBrokerConnectionTransportDataType &other) | |
Constructs an instance of the class UaBrokerConnectionTransportDataType with values from another UaBrokerConnectionTransportDataType object. More... | |
UaBrokerConnectionTransportDataType (const OpcUa_BrokerConnectionTransportDataType &other) | |
Constructs an instance of the class UaBrokerConnectionTransportDataType with values from another OpcUa_BrokerConnectionTransportDataType structure. More... | |
UaBrokerConnectionTransportDataType (const UaString &resourceUri, const UaString &authenticationProfileUri) | |
Constructs an instance of the class UaBrokerConnectionTransportDataType with values provided in the constructor. | |
UaBrokerConnectionTransportDataType (const UaExtensionObject &extensionObject) | |
Constructs an instance of the class UaBrokerConnectionTransportDataType initialized with value from a UaExtensionObject. More... | |
UaBrokerConnectionTransportDataType (const OpcUa_ExtensionObject &extensionObject) | |
Constructs an instance of the class UaBrokerConnectionTransportDataType initialized with value from an OpcUa_ExtensionObject structure. More... | |
~UaBrokerConnectionTransportDataType () | |
Destroys the UaBrokerConnectionTransportDataType object. | |
void | clear () |
Clear the data of the UaBrokerConnectionTransportDataType. More... | |
bool | operator== (const UaBrokerConnectionTransportDataType &other) const |
Compare two UaBrokerConnectionTransportDataType for equality. More... | |
bool | operator!= (const UaBrokerConnectionTransportDataType &other) const |
Compare two UaBrokerConnectionTransportDataType for inequality. More... | |
UaBrokerConnectionTransportDataType & | operator= (const UaBrokerConnectionTransportDataType &other) |
Assignment operator. More... | |
OpcUa_BrokerConnectionTransportDataType * | copy () const |
Copy UaBrokerConnectionTransportDataType data to a newly allocated OpcUa_BrokerConnectionTransportDataType. More... | |
void | copyTo (OpcUa_BrokerConnectionTransportDataType *pDst) const |
Copy UaBrokerConnectionTransportDataType data to an existing OpcUa_BrokerConnectionTransportDataType structure. More... | |
void | attach (OpcUa_BrokerConnectionTransportDataType *pValue) |
Attaches to an existing OpcUa_BrokerConnectionTransportDataType structure. More... | |
OpcUa_BrokerConnectionTransportDataType * | detach (OpcUa_BrokerConnectionTransportDataType *pDst) |
Detaches the internal BrokerConnectionTransportDataType structure from this class. More... | |
UaString | getResourceUri () const |
Returns the ResourceUri. | |
UaString | getAuthenticationProfileUri () const |
Returns the AuthenticationProfileUri. | |
void | setResourceUri (const UaString &resourceUri) |
Sets the ResourceUri. | |
void | setAuthenticationProfileUri (const UaString &authenticationProfileUri) |
Sets the AuthenticationProfileUri. | |
Static Public Member Functions | |
static OpcUa_BrokerConnectionTransportDataType * | clone (const OpcUa_BrokerConnectionTransportDataType &source) |
Copy OpcUa_BrokerConnectionTransportDataType data to a newly allocated OpcUa_BrokerConnectionTransportDataType. More... | |
static void | cloneTo (const OpcUa_BrokerConnectionTransportDataType &source, OpcUa_BrokerConnectionTransportDataType ©) |
Copy OpcUa_BrokerConnectionTransportDataType data to an existing OpcUa_BrokerConnectionTransportDataType structure. More... | |
Wrapper class for the UA stack structure OpcUa_BrokerConnectionTransportDataType.
This class encapsulates the native OpcUa_BrokerConnectionTransportDataType structure and handles memory allocation and cleanup for you. UaBrokerConnectionTransportDataType uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared BrokerConnectionTransportDataType it creates a copy for that (copy-on-write). So assigning another UaBrokerConnectionTransportDataType or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.
UaBrokerConnectionTransportDataType::UaBrokerConnectionTransportDataType | ( | const UaBrokerConnectionTransportDataType & | other | ) |
Constructs an instance of the class UaBrokerConnectionTransportDataType with values from another UaBrokerConnectionTransportDataType object.
other | the other UaBrokerConnectionTransportDataType used to initialize the object |
UaBrokerConnectionTransportDataType::UaBrokerConnectionTransportDataType | ( | const OpcUa_BrokerConnectionTransportDataType & | other | ) |
Constructs an instance of the class UaBrokerConnectionTransportDataType with values from another OpcUa_BrokerConnectionTransportDataType structure.
other | the other OpcUa_BrokerConnectionTransportDataType used to initialize the object |
UaBrokerConnectionTransportDataType::UaBrokerConnectionTransportDataType | ( | const UaExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaBrokerConnectionTransportDataType initialized with value from a UaExtensionObject.
extensionObject | the extension object containing the BrokerConnectionTransportDataType |
UaBrokerConnectionTransportDataType::UaBrokerConnectionTransportDataType | ( | const OpcUa_ExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaBrokerConnectionTransportDataType initialized with value from an OpcUa_ExtensionObject structure.
extensionObject | the extension object containing the BrokerConnectionTransportDataType |
void UaBrokerConnectionTransportDataType::attach | ( | OpcUa_BrokerConnectionTransportDataType * | pValue | ) |
Attaches to an existing OpcUa_BrokerConnectionTransportDataType structure.
Don't manually free the attached structure afterwards, because UaBrokerConnectionTransportDataType is responsible for it now.
pValue | [in] Parameter to attach to. |
void UaBrokerConnectionTransportDataType::clear | ( | ) |
Clear the data of the UaBrokerConnectionTransportDataType.
|
static |
Copy OpcUa_BrokerConnectionTransportDataType data to a newly allocated OpcUa_BrokerConnectionTransportDataType.
source | Source to clone. |
|
static |
Copy OpcUa_BrokerConnectionTransportDataType data to an existing OpcUa_BrokerConnectionTransportDataType structure.
source | the source of the clone operation. |
copy | the destination of the clone operation. |
OpcUa_BrokerConnectionTransportDataType * UaBrokerConnectionTransportDataType::copy | ( | ) | const |
Copy UaBrokerConnectionTransportDataType data to a newly allocated OpcUa_BrokerConnectionTransportDataType.
void UaBrokerConnectionTransportDataType::copyTo | ( | OpcUa_BrokerConnectionTransportDataType * | pDst | ) | const |
Copy UaBrokerConnectionTransportDataType data to an existing OpcUa_BrokerConnectionTransportDataType structure.
pDst | the destination of this copy operation. |
OpcUa_BrokerConnectionTransportDataType * UaBrokerConnectionTransportDataType::detach | ( | OpcUa_BrokerConnectionTransportDataType * | pDst | ) |
Detaches the internal BrokerConnectionTransportDataType structure from this class.
This way you take over the control of freeing the BrokerConnectionTransportDataType data. If more than one reference exists, the data is copied to pDst instead of being detached.
pDst | [out] Pointer to an OpcUa_BrokerConnectionTransportDataType structure that receives the BrokerConnectionTransportDataType data. |
bool UaBrokerConnectionTransportDataType::operator!= | ( | const UaBrokerConnectionTransportDataType & | other | ) | const |
Compare two UaBrokerConnectionTransportDataType for inequality.
other | the UaBrokerConnectionTransportDataType to compare with. |
UaBrokerConnectionTransportDataType & UaBrokerConnectionTransportDataType::operator= | ( | const UaBrokerConnectionTransportDataType & | other | ) |
Assignment operator.
other | the UaBrokerConnectionTransportDataType to assign. |
bool UaBrokerConnectionTransportDataType::operator== | ( | const UaBrokerConnectionTransportDataType & | other | ) | const |
Compare two UaBrokerConnectionTransportDataType for equality.
other | the UaBrokerConnectionTransportDataType to compare with. |