diff options
Diffstat (limited to 'c++/codec-netcdf/netcdf.tmpl.h')
-rw-r--r-- | c++/codec-netcdf/netcdf.tmpl.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/c++/codec-netcdf/netcdf.tmpl.h b/c++/codec-netcdf/netcdf.tmpl.h index 00bfbf4..bf257e4 100644 --- a/c++/codec-netcdf/netcdf.tmpl.h +++ b/c++/codec-netcdf/netcdf.tmpl.h @@ -75,6 +75,27 @@ struct netcdf_encode<schema::Primitive<T,N>, ToEncode> { } }; +template<typename T, size_t Dim, typename ToEncode> +struct netcdf_encode<schema::Array<T,Dim>, ToEncode> { + using Schema = schema::Array<T,Dim>; + + template<size_t Level> + static error_or<void> encode_level(data<Schema,ToEncode>& from, int ncid, int ncvarid){ + + return make_error<err::not_implemented>(); + } + + static error_or<void> encode(data<Schema, ToEncode>& from, int ncid, int ncvarid){ + + return make_error<err::not_implemented>(); + } + + static error_or<void> encode_meta(const data<Schema, ToEncode>& from, int ncid, int ncvarid){ + + return make_error<err::not_implemented>(); + } +}; + template<typename... T, string_literal... Lits, typename ToEncode> struct netcdf_encode<schema::Struct<schema::Member<T,Lits>...>, ToEncode> { using Schema = schema::Struct<schema::Member<T,Lits>...>; |