26#ifndef TAGLIB_EBMLFLOATELEMENT_H
27#define TAGLIB_EBMLFLOATELEMENT_H
28#ifndef DO_NOT_DOCUMENT
37 class FloatElement :
public Element
40 using FloatVariantType = std::variant<std::monostate, float, double>;
42 FloatElement(Id
id,
int sizeLength, offset_t dataSize);
43 FloatElement(Id
id,
int sizeLength, offset_t dataSize, offset_t);
44 explicit FloatElement(Id
id);
46 FloatVariantType getValue()
const;
47 double getValueAsDouble(
double defaultValue = 0.0)
const;
48 void setValue(FloatVariantType val);
49 bool read(File &file)
override;
50 ByteVector render()
override;
53 FloatVariantType value;
A namespace for all TagLib related classes and functions.
Definition apefile.h:41