C++ Based OPC UA Client/Server/PubSub SDK
1.7.9.586
|
Wrapper class for the UA stack structure OpcUa_EndpointConfiguration. More...
#include <uaendpointconfiguration.h>
Public Member Functions | |
UaEndpointConfiguration () | |
Constructs an instance of the class UaEndpointConfiguration with empty default values. | |
UaEndpointConfiguration (const UaEndpointConfiguration &other) | |
Constructs an instance of the class UaEndpointConfiguration with values from another UaEndpointConfiguration object. More... | |
UaEndpointConfiguration (const OpcUa_EndpointConfiguration &other) | |
Constructs an instance of the class UaEndpointConfiguration with values from another OpcUa_EndpointConfiguration structure. More... | |
UaEndpointConfiguration (OpcUa_Int32 operationTimeout, OpcUa_Boolean useBinaryEncoding, OpcUa_Int32 maxStringLength, OpcUa_Int32 maxByteStringLength, OpcUa_Int32 maxArrayLength, OpcUa_Int32 maxMessageSize, OpcUa_Int32 maxBufferSize, OpcUa_Int32 channelLifetime, OpcUa_Int32 securityTokenLifetime) | |
Constructs an instance of the class UaEndpointConfiguration with values provided in the constructor. | |
UaEndpointConfiguration (const UaExtensionObject &extensionObject) | |
Constructs an instance of the class UaEndpointConfiguration initialized with value from a UaExtensionObject. More... | |
UaEndpointConfiguration (const OpcUa_ExtensionObject &extensionObject) | |
Constructs an instance of the class UaEndpointConfiguration initialized with value from an OpcUa_ExtensionObject structure. More... | |
~UaEndpointConfiguration () | |
Destroys the UaEndpointConfiguration object. | |
void | clear () |
Clear the data of the UaEndpointConfiguration. More... | |
bool | operator== (const UaEndpointConfiguration &other) const |
Compare two UaEndpointConfiguration for equality. More... | |
bool | operator!= (const UaEndpointConfiguration &other) const |
Compare two UaEndpointConfiguration for inequality. More... | |
UaEndpointConfiguration & | operator= (const UaEndpointConfiguration &other) |
Assignment operator. More... | |
OpcUa_EndpointConfiguration * | copy () const |
Copy UaEndpointConfiguration data to a newly allocated OpcUa_EndpointConfiguration. More... | |
void | copyTo (OpcUa_EndpointConfiguration *pDst) const |
Copy UaEndpointConfiguration data to an existing OpcUa_EndpointConfiguration structure. More... | |
void | attach (OpcUa_EndpointConfiguration *pValue) |
Attaches to an existing OpcUa_EndpointConfiguration structure. More... | |
OpcUa_EndpointConfiguration * | detach (OpcUa_EndpointConfiguration *pDst) |
Detaches the internal EndpointConfiguration structure from this class. More... | |
OpcUa_Int32 | getOperationTimeout () const |
Returns the OperationTimeout. | |
OpcUa_Boolean | getUseBinaryEncoding () const |
Returns the UseBinaryEncoding. | |
OpcUa_Int32 | getMaxStringLength () const |
Returns the MaxStringLength. | |
OpcUa_Int32 | getMaxByteStringLength () const |
Returns the MaxByteStringLength. | |
OpcUa_Int32 | getMaxArrayLength () const |
Returns the MaxArrayLength. | |
OpcUa_Int32 | getMaxMessageSize () const |
Returns the MaxMessageSize. | |
OpcUa_Int32 | getMaxBufferSize () const |
Returns the MaxBufferSize. | |
OpcUa_Int32 | getChannelLifetime () const |
Returns the ChannelLifetime. | |
OpcUa_Int32 | getSecurityTokenLifetime () const |
Returns the SecurityTokenLifetime. | |
void | setOperationTimeout (OpcUa_Int32 operationTimeout) |
Sets the OperationTimeout. | |
void | setUseBinaryEncoding (OpcUa_Boolean useBinaryEncoding) |
Sets the UseBinaryEncoding. | |
void | setMaxStringLength (OpcUa_Int32 maxStringLength) |
Sets the MaxStringLength. | |
void | setMaxByteStringLength (OpcUa_Int32 maxByteStringLength) |
Sets the MaxByteStringLength. | |
void | setMaxArrayLength (OpcUa_Int32 maxArrayLength) |
Sets the MaxArrayLength. | |
void | setMaxMessageSize (OpcUa_Int32 maxMessageSize) |
Sets the MaxMessageSize. | |
void | setMaxBufferSize (OpcUa_Int32 maxBufferSize) |
Sets the MaxBufferSize. | |
void | setChannelLifetime (OpcUa_Int32 channelLifetime) |
Sets the ChannelLifetime. | |
void | setSecurityTokenLifetime (OpcUa_Int32 securityTokenLifetime) |
Sets the SecurityTokenLifetime. | |
Static Public Member Functions | |
static OpcUa_EndpointConfiguration * | clone (const OpcUa_EndpointConfiguration &source) |
Copy OpcUa_EndpointConfiguration data to a newly allocated OpcUa_EndpointConfiguration. More... | |
static void | cloneTo (const OpcUa_EndpointConfiguration &source, OpcUa_EndpointConfiguration ©) |
Copy OpcUa_EndpointConfiguration data to an existing OpcUa_EndpointConfiguration structure. More... | |
Wrapper class for the UA stack structure OpcUa_EndpointConfiguration.
This class encapsulates the native OpcUa_EndpointConfiguration structure and handles memory allocation and cleanup for you. UaEndpointConfiguration uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared EndpointConfiguration it creates a copy for that (copy-on-write). So assigning another UaEndpointConfiguration or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.
UaEndpointConfiguration::UaEndpointConfiguration | ( | const UaEndpointConfiguration & | other | ) |
Constructs an instance of the class UaEndpointConfiguration with values from another UaEndpointConfiguration object.
other | the other UaEndpointConfiguration used to initialize the object |
UaEndpointConfiguration::UaEndpointConfiguration | ( | const OpcUa_EndpointConfiguration & | other | ) |
Constructs an instance of the class UaEndpointConfiguration with values from another OpcUa_EndpointConfiguration structure.
other | the other OpcUa_EndpointConfiguration used to initialize the object |
UaEndpointConfiguration::UaEndpointConfiguration | ( | const UaExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaEndpointConfiguration initialized with value from a UaExtensionObject.
extensionObject | the extension object containing the EndpointConfiguration |
UaEndpointConfiguration::UaEndpointConfiguration | ( | const OpcUa_ExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaEndpointConfiguration initialized with value from an OpcUa_ExtensionObject structure.
extensionObject | the extension object containing the EndpointConfiguration |
void UaEndpointConfiguration::attach | ( | OpcUa_EndpointConfiguration * | pValue | ) |
Attaches to an existing OpcUa_EndpointConfiguration structure.
Don't manually free the attached structure afterwards, because UaEndpointConfiguration is responsible for it now.
pValue | [in] Parameter to attach to. |
void UaEndpointConfiguration::clear | ( | ) |
Clear the data of the UaEndpointConfiguration.
|
static |
Copy OpcUa_EndpointConfiguration data to a newly allocated OpcUa_EndpointConfiguration.
source | Source to clone. |
|
static |
Copy OpcUa_EndpointConfiguration data to an existing OpcUa_EndpointConfiguration structure.
source | the source of the clone operation. |
copy | the destination of the clone operation. |
OpcUa_EndpointConfiguration * UaEndpointConfiguration::copy | ( | ) | const |
Copy UaEndpointConfiguration data to a newly allocated OpcUa_EndpointConfiguration.
void UaEndpointConfiguration::copyTo | ( | OpcUa_EndpointConfiguration * | pDst | ) | const |
Copy UaEndpointConfiguration data to an existing OpcUa_EndpointConfiguration structure.
pDst | the destination of this copy operation. |
OpcUa_EndpointConfiguration * UaEndpointConfiguration::detach | ( | OpcUa_EndpointConfiguration * | pDst | ) |
Detaches the internal EndpointConfiguration structure from this class.
This way you take over the control of freeing the EndpointConfiguration data. If more than one reference exists, the data is copied to pDst instead of being detached.
pDst | [out] Pointer to an OpcUa_EndpointConfiguration structure that receives the EndpointConfiguration data. |
bool UaEndpointConfiguration::operator!= | ( | const UaEndpointConfiguration & | other | ) | const |
Compare two UaEndpointConfiguration for inequality.
other | the UaEndpointConfiguration to compare with. |
UaEndpointConfiguration & UaEndpointConfiguration::operator= | ( | const UaEndpointConfiguration & | other | ) |
Assignment operator.
other | the UaEndpointConfiguration to assign. |
bool UaEndpointConfiguration::operator== | ( | const UaEndpointConfiguration & | other | ) | const |
Compare two UaEndpointConfiguration for equality.
other | the UaEndpointConfiguration to compare with. |