diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-08-24 18:10:41 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-08-24 18:10:41 +0200 |
commit | 49fbd753bee3e6cec68f4e23cc766934c8449eb3 (patch) | |
tree | d33420ab311156cb557db213222b3b7fc9e03f13 /modules/codec-obj/c++/obj.hpp | |
parent | 53738bc556fc13c80dacdb56633ef8b7441e6566 (diff) |
Preparing for wavefront
Diffstat (limited to 'modules/codec-obj/c++/obj.hpp')
-rw-r--r-- | modules/codec-obj/c++/obj.hpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/codec-obj/c++/obj.hpp b/modules/codec-obj/c++/obj.hpp new file mode 100644 index 0000000..d8d0dde --- /dev/null +++ b/modules/codec-obj/c++/obj.hpp @@ -0,0 +1,31 @@ +#pragma once + +#include <forstio/codec/data.hpp> + +namespace saw { +namespace encode { +struct WavefrontObj {}; +} +} + +namespace saw{ +template<typename Schema> +class data<Schema, encode::WavefrontObj> { +private: +public: +}; + +template<typename Schema> +class codec<Schema, encode::WavefrontObj> { +private: + template<typename ToEncode> + error_or<void> decode(data<Schema,encode::WavefrontObj>& from, data<Schema, ToEncode>& to){ + return make_error<err::not_implemented>("Wavefront decode not available"); + } + + template<typename FromEncode> + error_or<void> encode(data<Schema,FromEncode>& from, data<Schema, encode::WavefrontObj>& to){ + return make_error<err::not_implemented>("Wavefront encode not available"); + } +}; +} |