12 #ifndef DOCWIRE_SERIALIZATION_FILE_EXTENSION_H
13 #define DOCWIRE_SERIALIZATION_FILE_EXTENSION_H
15 #include "file_extension.h"
16 #include "serialization_base.h"
29 return object{{{
"value", ext.
string()}}};
A class representing a file extension.
std::string string() const
Returns the file extension as a string.
Provides a generic, concept-based serialization framework.
value decorate_with_typeid(const value &base_val, const std::string &typeid_str)
Helper to decorate a serialized value with a typeid string.
std::variant< std::nullptr_t, bool, std::int64_t, std::uint64_t, double, std::string, array, object > value
A variant type representing any serialized value.
value full(const T &value)
Serializes a value of type T into a docwire::serialization::value.
Primary template for the serializer.