summaryrefslogtreecommitdiff
path: root/modules/codec-obj/c++/obj.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec-obj/c++/obj.hpp')
-rw-r--r--modules/codec-obj/c++/obj.hpp31
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");
+ }
+};
+}