summaryrefslogtreecommitdiff
path: root/lib/c++/write_json.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/c++/write_json.hpp')
-rw-r--r--lib/c++/write_json.hpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/c++/write_json.hpp b/lib/c++/write_json.hpp
deleted file mode 100644
index 19bbfa6..0000000
--- a/lib/c++/write_json.hpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#pragma once
-
-#include <forstio/error.hpp>
-
-#include <forstio/codec/data.hpp>
-#include <forstio/codec/data_math.hpp>
-
-#include <forstio/codec/json/json.hpp>
-
-
-namespace kel {
-namespace lbm {
-
-template<typename Schema>
-saw::error_or<void> write_json(const std::filesystem::path& file_name, const saw::data<Schema>& field){
- saw::data<Schema, saw::encode::Json> j_data;
- {
- saw::codec<Schema, saw::encode::Json> j_codec;
- auto eov = j_codec.encode(field, j_data);
- if(eov.is_error()){
- return eov;
- }
- }
- return saw::make_void();
-}
-}
-}