diff options
Diffstat (limited to 'modules/codec-obj/c++')
-rw-r--r-- | modules/codec-obj/c++/obj.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/codec-obj/c++/obj.hpp b/modules/codec-obj/c++/obj.hpp index d8d0dde..2137b7d 100644 --- a/modules/codec-obj/c++/obj.hpp +++ b/modules/codec-obj/c++/obj.hpp @@ -12,12 +12,25 @@ namespace saw{ template<typename Schema> class data<Schema, encode::WavefrontObj> { private: + std::string value_; public: + data(std::string value__): + value_{std::move(value__)} + {} }; +namespace impl { +template<typename T, typename ToDecode> +struct waveobj_helper { + static_assert(always_false<T,ToDecode>, "Wavefront Schema not supported"); +}; + +} + template<typename Schema> class codec<Schema, encode::WavefrontObj> { private: +public: 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"); |