diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-11-24 14:08:08 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-11-26 23:27:28 +0100 |
commit | 0cf04f2d1ba5ed2a18fe9f3501f363cb3ff76c9f (patch) | |
tree | b8374ccc6226e2d2754a59108a071f7e010ef7e8 /c++/codec-netcdf | |
parent | 5c34e8ae67998c53c1d4016d5b9f4c02917f0ecf (diff) |
codec-netcdf: Started writing array parts, but realized that there are
name issues.
Diffstat (limited to 'c++/codec-netcdf')
-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>...>; |