From 2db0d6a52b91a6a05301332369152f7d6e055ee9 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 4 Dec 2023 17:33:10 +0100 Subject: codec: Renamed header file --- modules/codec/c++/schema_builder.h | 46 -------------------------------------- modules/codec/c++/schema_factory.h | 46 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 46 deletions(-) delete mode 100644 modules/codec/c++/schema_builder.h create mode 100644 modules/codec/c++/schema_factory.h (limited to 'modules/codec/c++') diff --git a/modules/codec/c++/schema_builder.h b/modules/codec/c++/schema_builder.h deleted file mode 100644 index 91094fe..0000000 --- a/modules/codec/c++/schema_builder.h +++ /dev/null @@ -1,46 +0,0 @@ -#pragma once - -#include "schema.h" - -namespace saw { -template -struct schema_factory { - using Schema = T; - static_assert(always_false, "Not supported"); -}; - -template -struct schema_factory...>> { - using Schema = schema::Struct...>; - - template - constexpr schema_factory...,schema::Member>> add() const noexcept { - return {}; - } -}; - -template -struct schema_factory...>> { - using Schema = schema::Union...>; - - template - constexpr schema_factory...,schema::Member>> add() const noexcept { - return {}; - } -}; - -template -struct schema_factory> { - using Schema = schema::Tuple; - - template - constexpr schema_factory> add() const noexcept { - return {}; - } -}; - -template -constexpr schema_factory build_schema() noexcept { - return {}; -} -} diff --git a/modules/codec/c++/schema_factory.h b/modules/codec/c++/schema_factory.h new file mode 100644 index 0000000..91094fe --- /dev/null +++ b/modules/codec/c++/schema_factory.h @@ -0,0 +1,46 @@ +#pragma once + +#include "schema.h" + +namespace saw { +template +struct schema_factory { + using Schema = T; + static_assert(always_false, "Not supported"); +}; + +template +struct schema_factory...>> { + using Schema = schema::Struct...>; + + template + constexpr schema_factory...,schema::Member>> add() const noexcept { + return {}; + } +}; + +template +struct schema_factory...>> { + using Schema = schema::Union...>; + + template + constexpr schema_factory...,schema::Member>> add() const noexcept { + return {}; + } +}; + +template +struct schema_factory> { + using Schema = schema::Tuple; + + template + constexpr schema_factory> add() const noexcept { + return {}; + } +}; + +template +constexpr schema_factory build_schema() noexcept { + return {}; +} +} -- cgit v1.2.3