15 #ifndef DDL_CODEC_FACTORY_LEGACY_CLASS_HEADER
16 #define DDL_CODEC_FACTORY_LEGACY_CLASS_HEADER
19 #include <ddl/codec/codec_factory.h>
25 #define DEV_ESSENTIAL_DEPRECATED_CODEC_FACTORY \
26 DEV_ESSENTIAL_DEPRECATED("Use the new ddl::codec::CodecFactory() instead.")
42 DEV_ESSENTIAL_DEPRECATED_CODEC_FACTORY
50 DEV_ESSENTIAL_DEPRECATED_CODEC_FACTORY
51 CodecFactory(
const std::string& struct_name,
const std::string& dd_string);
58 DEV_ESSENTIAL_DEPRECATED_CODEC_FACTORY
65 DEV_ESSENTIAL_DEPRECATED_CODEC_FACTORY
72 DEV_ESSENTIAL_DEPRECATED_CODEC_FACTORY
A common result class usable as return value throughout.
Factory class for ddl codecs.
Codec makeCodecFor(void *data, size_t data_size, DataRepresentation rep=deserialized) const
Creates a codec for the given data.
DEV_ESSENTIAL_DEPRECATED_CODEC_FACTORY CodecFactory(const ddl::dd::StructType &struct_type, const dd::DataDefinition &dd)
Constructor that uses an OO-DataDefinition struct for initialization.
a_util::result::Result isValid() const
Check if the factory is in a valid state.
DEV_ESSENTIAL_DEPRECATED_CODEC_FACTORY CodecFactory()
Empty constructor.
DEV_ESSENTIAL_DEPRECATED_CODEC_FACTORY CodecFactory(const DDStructure &dd_struct)
Constructor that uses an OO-DataDefinition struct for initialization.
StaticCodec makeStaticCodecFor(void *data, size_t data_size, DataRepresentation rep=deserialized) const
Creates a static codec for the given data.
StaticDecoder makeStaticDecoderFor(const void *data, size_t data_size, DataRepresentation rep=deserialized) const
Creates a static decoder for the given data.
DEV_ESSENTIAL_DEPRECATED_CODEC_FACTORY CodecFactory(const std::string &struct_name, const std::string &dd_string)
Constructor that take a DataDefinition string for initialization.
Decoder makeDecoderFor(const void *data, size_t data_size, DataRepresentation rep=deserialized) const
Creates a decoder for the given data.
a_util::result::Result getStaticElement(size_t index, const StructElement *&element) const
Access information about an element.
a_util::result::Result _dummy_constructor_result
This must stay for binary compatibility!
std::shared_ptr< const StructLayout > _layout
For internal use only.
size_t getStaticElementCount() const
size_t getStaticBufferSize(DataRepresentation rep=deserialized) const
DEV_ESSENTIAL_DEPRECATED_CODEC_FACTORY CodecFactory(const ddl::dd::StructTypeAccess &struct_type_access)
Constructor that uses an valid struct type access for initialization.
Decoder for dynamic structures defined by a DataDefinition definition.
Utility class for a complete valid data definition of one StructType and its dependencies.
Decoder for dynamic structures defined by a DataDefinition definition.
Codec for static structures defined by a DataDefinition definition.
Decoder for static structures defined by a DataDefinition definition.
The Data Definiton class uses the validation model to keep a Data Definition datamodel (ddl::dd::data...
Accessing class for a instance of a struct.
observable DataDefinition object class to describe StructType.
Definition of old Codec legacy header for old Codec API.
@ struct_type
value for struct type
Definition of preprocessor macro DEV_ESSENTIAL_DEPRECATED.
definition of the ddl namespace
DataRepresentation
Enumeration for the data representation.
@ deserialized
deserialized data, c-structs, arrays, ...
Definition of old StaticCodec legacy header for old Codec API.
Information about an element accessible with a decoder or codec.
Definition of old StructElement legacy header for old Codec API.