1#ifndef CAPIO_CL_SERIALIZER_H
2#define CAPIO_CL_SERIALIZER_H
29 [[nodiscard]]
const char *
what() const noexcept
override {
return message.c_str(); }
40 static std::vector<std::pair<std::string, std::string>>
47 static void sortPathsByDecreasingLength(std::vector<std::string> &paths);
50 struct available_serializers {
61 const std::filesystem::path &filename,
bool compress =
false);
73 const std::filesystem::path &filename,
bool compress =
false);
Engine for managing CAPIO-CL configuration entries. The CapioCLEngine class stores and manages config...
Definition engine.h:83
SerializerException(const std::string &msg)
Construct a new CAPIO-CL Exception.
Definition Serializer.cpp:32
const char * what() const noexcept override
Definition serializer.h:29
Dump the current loaded CAPIO-CL configuration from class Engine to a CAPIO-CL configuration file.
Definition serializer.h:34
static void dump(const engine::Engine &engine, const std::filesystem::path &filename, bool compress=false, const std::string &version=CAPIO_CL_VERSION::V1)
Dump the current configuration loaded into an instance of Engine to a CAPIO-CL configuration file.
Definition Serializer.cpp:13
Namespace containing the CAPIO-CL Engine.
Definition engine.h:13
Namespace containing the CAPIO-CL Serializer component.
Definition serializer.h:11
static constexpr char V1[]
Release 1.0 of CAPIO-CL.
Definition capiocl.hpp:71