C++ UA Server SDK
1.5.2.336
|
Base class for handling values of structured DataTypes that are not known at compile time. More...
#include <uaabstractgenericvalue.h>
Inherited by UaAbstractGenericStructureValue, and UaGenericOptionSetValue.
Public Types | |
enum | Encoding |
The possible encodings for a UaAbstractGenericValue. More... | |
Public Member Functions | |
virtual void | clear ()=0 |
Clears the value. More... | |
virtual void | toVariant (UaVariant &variant, Encoding valueEncoding=Encoding_Binary) const |
Serializes the UaGenericValue to the variant. More... | |
virtual void | toVariant (OpcUa_Variant &variant, Encoding valueEncoding=Encoding_Binary) const |
Serializes the UaGenericValue to the variant. More... | |
void | toDataValue (UaDataValue &dataValue, OpcUa_Boolean updateTimeStamps, Encoding valueEncoding=Encoding_Binary) const |
Serializes the UaGenericValue to the dataValue. More... | |
void | toDataValue (OpcUa_DataValue &dataValue, OpcUa_Boolean updateTimeStamps, Encoding valueEncoding=Encoding_Binary) const |
Serializes the UaGenericValue to the dataValue. More... | |
void | toExtensionObject (UaExtensionObject &extensionObject, Encoding valueEncoding=Encoding_Binary) const |
Serializes the UaGenericValue to the extensionObject. More... | |
void | toExtensionObject (OpcUa_ExtensionObject &extensionObject, Encoding valueEncoding=Encoding_Binary) const |
Serializes the UaGenericValue to the extensionObject. More... | |
virtual void | decode (UaAbstractDecoder *pDecoder)=0 |
Deserializes the instance. More... | |
virtual void | encode (UaAbstractEncoder *pEncoder) const =0 |
Serializes the instance. More... | |
Protected Member Functions | |
UaStructureFieldData | readField (UaAbstractDecoder *pDecoder, const UaStructureField &field) const |
Deserializes a field. More... | |
void | writeField (UaAbstractEncoder *pEncoder, const UaStructureField &field, const UaStructureFieldData &value) const |
Serializes a field. More... | |
Base class for handling values of structured DataTypes that are not known at compile time.
The possible encodings for a UaAbstractGenericValue.
|
pure virtual |
Clears the value.
Implemented in UaGenericUnionValue, UaGenericStructureValue, and UaGenericOptionSetValue.
|
pure virtual |
Deserializes the instance.
Implemented in UaGenericStructureValue, UaGenericUnionValue, and UaGenericOptionSetValue.
|
pure virtual |
Serializes the instance.
Implemented in UaGenericStructureValue, UaGenericUnionValue, and UaGenericOptionSetValue.
|
protected |
Deserializes a field.
void UaAbstractGenericValue::toDataValue | ( | UaDataValue & | dataValue, |
OpcUa_Boolean | updateTimeStamps, | ||
Encoding | valueEncoding = Encoding_Binary |
||
) | const |
Serializes the UaGenericValue to the dataValue.
void UaAbstractGenericValue::toDataValue | ( | OpcUa_DataValue & | dataValue, |
OpcUa_Boolean | updateTimeStamps, | ||
Encoding | valueEncoding = Encoding_Binary |
||
) | const |
Serializes the UaGenericValue to the dataValue.
void UaAbstractGenericValue::toExtensionObject | ( | UaExtensionObject & | extensionObject, |
Encoding | valueEncoding = Encoding_Binary |
||
) | const |
Serializes the UaGenericValue to the extensionObject.
void UaAbstractGenericValue::toExtensionObject | ( | OpcUa_ExtensionObject & | extensionObject, |
Encoding | valueEncoding = Encoding_Binary |
||
) | const |
Serializes the UaGenericValue to the extensionObject.
|
virtual |
Serializes the UaGenericValue to the variant.
Reimplemented in UaGenericOptionSetValue.
|
virtual |
Serializes the UaGenericValue to the variant.
Reimplemented in UaGenericOptionSetValue.
|
protected |
Serializes a field.