summaryrefslogtreecommitdiff
path: root/modules/codec-netcdf
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-05-07 20:37:34 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-05-07 20:37:34 +0200
commitcd2a1ee7429c85b942229b6c91040aeccb02b571 (patch)
tree98a13061174623176edfa4b9b616298c0901d6c6 /modules/codec-netcdf
parent399d0a9a02d4a993b20637bebfba22f4c33aff04 (diff)
Added template keywords and changed away from rmt::Host
Diffstat (limited to 'modules/codec-netcdf')
-rw-r--r--modules/codec-netcdf/tests/codec-netcdf.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/codec-netcdf/tests/codec-netcdf.cpp b/modules/codec-netcdf/tests/codec-netcdf.cpp
index 0211a15..0c9bc57 100644
--- a/modules/codec-netcdf/tests/codec-netcdf.cpp
+++ b/modules/codec-netcdf/tests/codec-netcdf.cpp
@@ -46,10 +46,10 @@ std::array<uint8_t,156> tests_data_array_nc = {
SAW_TEST("NetCDF Struct Primitive write"){
using namespace saw;
- data<schema::TestStruct, encode::Native<rmt::Host>> native;
+ data<schema::TestStruct, encode::Native<storage::Default>> native;
- native.get<"data">().set(5);
- native.get<"other">().set(32.0);
+ native.template get<"data">().set(5);
+ native.template get<"other">().set(32.0);
codec<schema::TestStruct, encode::Netcdf> codec;
@@ -69,14 +69,14 @@ SAW_TEST("NetCDF Struct Primitive read"){
using namespace saw;
data<schema::TestStruct, encode::Netcdf> netcdf{tests_data_primitive_nc};
- data<schema::TestStruct, encode::Native<rmt::Host>> native;
+ data<schema::TestStruct, encode::Native<storage::Default>> native;
codec<schema::TestStruct, encode::Netcdf> codec;
auto eov = codec.decode(netcdf, native);
SAW_EXPECT(eov.is_value(), "Decoding failed");
- SAW_EXPECT(native.get<"data">().get() == 5, "Int Value incorrect");
- SAW_EXPECT(native.get<"other">().get() == 32.0, "Double Value incorrect");
+ SAW_EXPECT(native.template get<"data">().get() == 5, "Int Value incorrect");
+ SAW_EXPECT(native.template get<"other">().get() == 32.0, "Double Value incorrect");
}
SAW_TEST("NetCDF Struct Array read"){
@@ -84,7 +84,7 @@ SAW_TEST("NetCDF Struct Array read"){
data<schema::TestArrayStruct, encode::Netcdf> netcdf{tests_data_array_nc};
- data<schema::TestArrayStruct, encode::Native<rmt::Host>> native;
+ data<schema::TestArrayStruct, encode::Native<storage::Default>> native;
codec<schema::TestArrayStruct, encode::Netcdf> codec;