C++ UA Server SDK
1.5.0.318
|
Base class for handling values of structured DataTypes that are not known at compile time. More...
#include <uaabstractgenericstructurevalue.h>
Inherits UaAbstractGenericValue.
Inherited by UaGenericStructureValue, and UaGenericUnionValue.
Public Member Functions | |
virtual UaStructureDefinition | definition () const =0 |
Returns the UaStructureDefinition of the instance. More... | |
Public Member Functions inherited from UaAbstractGenericValue | |
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 | |
bool | checkValue (const UaStructureField &field, const UaVariant &value) const |
Checks whether value matches the DataType and ValueRank definition of field. More... | |
UaVariant | defaultValue (const UaStructureField &field) const |
Returns a value based on the DataType and the ValueRank of the field. More... | |
void | setVariantToFieldData (const UaStructureField &field, UaVariant &value, UaStructureFieldData &fieldData) const |
Detaches value. | |
Protected Member Functions inherited from UaAbstractGenericValue | |
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... | |
Additional Inherited Members | |
Public Types inherited from UaAbstractGenericValue | |
enum | Encoding |
The possible encodings for a UaAbstractGenericValue. More... | |
Base class for handling values of structured DataTypes that are not known at compile time.
|
protected |
Checks whether value matches the DataType and ValueRank definition of field.
|
protected |
Returns a value based on the DataType and the ValueRank of the field.
|
pure virtual |
Returns the UaStructureDefinition of the instance.
Implemented in UaGenericStructureValue, and UaGenericUnionValue.