C++ Based OPC UA Client/Server SDK
1.6.5.478
|
Array class for the UA stack structure OpcUa_ByteString. More...
#include <uaarraytemplates.h>
Public Member Functions | |
UaByteStringArray () | |
Constructs an empty instance of the class UaByteStringArray. | |
UaByteStringArray (const UaByteStringArray &other) | |
Constructs an instance of the class ByteStringArray with values from another ByteStringArray object. More... | |
UaByteStringArray (OpcUa_Int32 length, OpcUa_ByteString *data) | |
Constructs an instance of the class UaByteString using a raw OpcUa_ByteString array. More... | |
virtual | ~UaByteStringArray () |
Destroys the UaByteStringArray object. | |
UaByteStringArray & | operator= (const UaByteStringArray &other) |
Assignment operator. More... | |
const OpcUa_ByteString & | operator[] (OpcUa_UInt32 index) const |
Index operator. More... | |
OpcUa_ByteString & | operator[] (OpcUa_UInt32 index) |
Index operator. More... | |
bool | operator== (const UaByteStringArray &other) const |
Compare two UaByteStringArray. More... | |
bool | operator!= (const UaByteStringArray &other) const |
Compare two UaByteStringArray. More... | |
void | attach (OpcUa_UInt32 length, OpcUa_ByteString *data) |
Attach to a raw OpcUa_ByteString array. More... | |
void | attach (OpcUa_Int32 length, OpcUa_ByteString *data) |
Attach to a raw OpcUa_ByteString array. More... | |
OpcUa_ByteString * | detach () |
Detach from the internal OpcUa_ByteString array. More... | |
void | create (OpcUa_UInt32 length) |
Clears the array and resizes to the given length. More... | |
void | resize (OpcUa_UInt32 length) |
Resizes the array to a given length. More... | |
void | clear () |
Clears the array. | |
Array class for the UA stack structure OpcUa_ByteString.
This class encapsulates an array of the native OpcUa_ByteString structure and handles memory allocation and cleanup for you.
UaByteStringArray::UaByteStringArray | ( | const UaByteStringArray & | other | ) |
Constructs an instance of the class ByteStringArray with values from another ByteStringArray object.
other | the other ByteStringArray used to initialize the object |
UaByteStringArray::UaByteStringArray | ( | OpcUa_Int32 | length, |
OpcUa_ByteString * | data | ||
) |
Constructs an instance of the class UaByteString using a raw OpcUa_ByteString array.
length | the length of the raw OpcUa_ByteString array |
data | the raw OpcUa_ByteString array |
void UaByteStringArray::attach | ( | OpcUa_UInt32 | length, |
OpcUa_ByteString * | data | ||
) |
Attach to a raw OpcUa_ByteString array.
length | the length of the raw OpcUa_ByteString array |
data | the raw OpcUa_ByteString array |
void UaByteStringArray::attach | ( | OpcUa_Int32 | length, |
OpcUa_ByteString * | data | ||
) |
Attach to a raw OpcUa_ByteString array.
length | the length of the raw OpcUa_ByteString array |
data | the raw OpcUa_ByteString array |
void UaByteStringArray::create | ( | OpcUa_UInt32 | length | ) |
Clears the array and resizes to the given length.
length | the new length of the array |
OpcUa_ByteString * UaByteStringArray::detach | ( | ) |
Detach from the internal OpcUa_ByteString array.
After detaching, the detached array data will not be cleared automatically anymore.
bool UaByteStringArray::operator!= | ( | const UaByteStringArray & | other | ) | const |
Compare two UaByteStringArray.
other | the UaByteStringArray to compare with. |
UaByteStringArray & UaByteStringArray::operator= | ( | const UaByteStringArray & | other | ) |
Assignment operator.
other | the UaByteStringArray to assign. |
bool UaByteStringArray::operator== | ( | const UaByteStringArray & | other | ) | const |
Compare two UaByteStringArray.
other | the UaByteStringArray to compare with. |
const OpcUa_ByteString & UaByteStringArray::operator[] | ( | OpcUa_UInt32 | index | ) | const |
Index operator.
index | the index of the structure to return. |
OpcUa_ByteString & UaByteStringArray::operator[] | ( | OpcUa_UInt32 | index | ) |
Index operator.
index | the index of the structure to return. |
void UaByteStringArray::resize | ( | OpcUa_UInt32 | length | ) |
Resizes the array to a given length.
length | the new length of the array |