Inherits UaAbstractGenericValue.
|
| UaGenericValue () |
| Creates an empty UaGenericValue. More...
|
|
| UaGenericValue (const UaStructureDefinition &structureDefinition) |
| Creates an UaGenericValue with default values for each field. More...
|
|
| UaGenericValue (const UaGenericValue &other) |
| copy constructor. More...
|
|
| UaGenericValue (const UaByteString &bsData, Encoding valueEncoding, const UaStructureDefinition &structureDefinition) |
| Creates an UaGenericValue. More...
|
|
virtual | ~UaGenericValue () |
| Desctruction.
|
|
virtual void | clear () |
| Clears the UaGenericValue. More...
|
|
bool | operator== (const UaGenericValue &other) const |
| Compares the content of two UaGenericValues.
|
|
bool | operator!= (const UaGenericValue &other) const |
|
UaGenericValue & | operator= (const UaGenericValue &other) |
|
OpcUa_StatusCode | setGenericValue (const UaByteString &bsData, Encoding valueEncoding, const UaStructureDefinition &structureDefinition) |
| Sets an UaGenericValue. More...
|
|
OpcUa_StatusCode | setField (const UaString &sFieldName, const UaVariant &value) |
| Sets the value for a structure field based on the field name. More...
|
|
OpcUa_StatusCode | setField (int iIndex, const UaVariant &value) |
| Sets the value for a structure field based on the field index. More...
|
|
UaVariant | value (const UaString &sFieldName) const |
| Returns the value for a structure field based on the field name. More...
|
|
UaVariant | value (int iIndex) const |
| Returns the value for a structure field based on the field index. More...
|
|
UaStructureDefinition | definition () const |
| Returns the StructureDefinition of the UaGenericValue.
|
|
UaString | toString () const |
| Returns a string representation of the value. More...
|
|
void | decode (UaAbstractDecoder *pDecoder) |
| Deserializing method, that is used by the SDK internally.
|
|
void | encode (UaAbstractEncoder *pEncoder) const |
| Serializing method, that is used by the SDK internally.
|
|
virtual void | clear ()=0 |
|
void | toVariant (UaVariant &variant, Encoding valueEncoding=Encoding_Binary) const |
|
void | toVariant (OpcUa_Variant &variant, Encoding valueEncoding=Encoding_Binary) const |
|
void | toDataValue (UaDataValue &dataValue, OpcUa_Boolean updateTimeStamps, Encoding valueEncoding=Encoding_Binary) const |
|
void | toDataValue (OpcUa_DataValue &dataValue, OpcUa_Boolean updateTimeStamps, Encoding valueEncoding=Encoding_Binary) const |
|
void | toExtensionObject (UaExtensionObject &extensionObject, Encoding valueEncoding=Encoding_Binary) const |
|
void | toExtensionObject (OpcUa_ExtensionObject &extensionObject, Encoding valueEncoding=Encoding_Binary) const |
|
virtual UaStructureDefinition | definition () const =0 |
|
virtual void | decode (UaAbstractDecoder *pDecoder)=0 |
|
virtual void | encode (UaAbstractEncoder *pEncoder) const =0 |
|
A class that serializes and deserializes data that is described by an UaStructureDefinition.
The serialized data can be accessed by index or by field name. The class can be used for DataTypes that are not registered to the stack.