15#ifndef DDL_STATIC_CODEC_LEGACY_CLASS_HEADER
16#define DDL_STATIC_CODEC_LEGACY_CLASS_HEADER
22#define DEV_ESSENTIAL_DEPRECATED_STATIC_DECODER \
23 DEV_ESSENTIAL_DEPRECATED("Use the new ddl::codec::StaticDecoder() instead.")
25#define DEV_ESSENTIAL_DEPRECATED_STATIC_CODEC \
26 DEV_ESSENTIAL_DEPRECATED("Use the new ddl::codec::StaticCodec() instead.")
32struct LegacyCodecAccess;
46 DEV_ESSENTIAL_DEPRECATED_STATIC_DECODER
66 DEV_ESSENTIAL_DEPRECATED_STATIC_DECODER
123 friend class CodecFactory;
133 StaticDecoder(
const std::shared_ptr<LegacyCodecAccess>& legacy_codec_access);
158 DEV_ESSENTIAL_DEPRECATED_STATIC_CODEC
178 DEV_ESSENTIAL_DEPRECATED_STATIC_CODEC
212 friend class CodecFactory;
Definition result_type_decl.h:34
StaticCodec & operator=(const StaticCodec &)=delete
DEV_ESSENTIAL_DEPRECATED_STATIC_CODEC StaticCodec()
StaticCodec(std::shared_ptr< const StructLayout > layout, void *data, size_t data_size, DataRepresentation rep)
a_util::result::Result setConstants()
a_util::result::Result setElementValue(size_t index, const a_util::variant::Variant &value)
a_util::result::Result setElementValue(size_t index, const void *value)
StaticCodec(const StaticCodec &)=delete
void * getElementAddress(size_t index)
DEV_ESSENTIAL_DEPRECATED_STATIC_CODEC StaticCodec & operator=(StaticCodec &&)=default
StaticCodec(StaticCodec &&)=default
size_t _compat_data_size
Definition static_codec_legacy.h:143
const void * getElementAddress(size_t index) const
a_util::result::Result getElement(size_t index, const StructElement *&element) const
StaticDecoder(const std::shared_ptr< LegacyCodecAccess > &legacy_codec_access)
For internal use only.
StaticDecoder & operator=(const StaticDecoder &)=delete
a_util::result::Result getElementValue(size_t index, a_util::variant::Variant &value) const
~StaticDecoder()=default
virtual DTOR
DEV_ESSENTIAL_DEPRECATED_STATIC_DECODER StaticDecoder()
const void * _compat_data
Definition static_codec_legacy.h:140
StaticDecoder(StaticDecoder &&)=default
a_util::result::Result getElementValue(size_t index, void *value) const
virtual size_t getElementCount() const
DEV_ESSENTIAL_DEPRECATED_STATIC_DECODER StaticDecoder & operator=(StaticDecoder &&)=default
const void * _compat_element_accessor
Definition static_codec_legacy.h:146
size_t getStaticBufferSize(DataRepresentation rep=deserialized) const
StaticDecoder(const StaticDecoder &)=delete
DataRepresentation getRepresentation() const
std::shared_ptr< LegacyCodecAccess > _legacy_access
For internal use only.
Definition static_codec_legacy.h:137
StaticDecoder(std::shared_ptr< const StructLayout > layout, const void *data, size_t data_size, DataRepresentation rep)
virtual a_util::result::Result isValid() const
definition of the ddl namespace
Definition codec.h:21
DataRepresentation
Definition data_representation.h:25
@ deserialized
deserialized data, c-structs, arrays, ...
Definition data_representation.h:27
Definition struct_element.h:32