#include <StandaloneDataIO.h>
Definition at line 42 of file StandaloneDataIO.h.
◆ read_geometry()
Definition at line 48 of file StandaloneDataIO.h.
51 {
52 std::ifstream in(
file.native(), std::ios_base::binary);
54 if (in.fail())
55 {
58 }
59 in.close();
61 }
static void report_error(const std::filesystem::path &file, const std::string &kind, const bool really_report=false)
◆ read_noise()
Definition at line 63 of file StandaloneDataIO.h.
66 {
67 std::ifstream in(
file.native(), std::ios_base::binary);
68 noise.binary_input(in);
69 if (in.fail())
70 {
73 }
74 in.close();
76 }
◆ write_geometry()
Definition at line 78 of file StandaloneDataIO.h.
81 {
82 file.replace_extension(
".geometry");
83 std::ofstream
out(
file, std::ios_base::binary);
84 geo.binary_output(out);
86 {
89 }
92 }
◆ write_noise()
Definition at line 94 of file StandaloneDataIO.h.
97 {
98 file.replace_extension(
".noise");
99 std::ofstream
out(
file, std::ios_base::binary);
100 noise.binary_output(out);
102 {
105 }
108 }
◆ StandaloneDataIO
The documentation for this struct was generated from the following file: