From 0593150651dcb55fb19f97a585a526e3cec0de5b Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Wed, 10 May 2023 01:20:31 +0200 Subject: [PATCH] add cereal write/readFile wrappers --- src/opt/cereal/include/utilities.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/opt/cereal/include/utilities.h b/src/opt/cereal/include/utilities.h index 5743229..e8e8750 100644 --- a/src/opt/cereal/include/utilities.h +++ b/src/opt/cereal/include/utilities.h @@ -58,6 +58,24 @@ namespace CNORXZ template void readFile(const String& name, MArray& data); + + template + void writeBINARYFile(const String& name, const MArray& data) { writeFile(name, data); } + + template + void readBINARYFile(const String& name, MArray& data) { readFile(name, data); } + + template + void writeJSONFile(const String& name, const MArray& data) { writeFile(name, data); } + + template + void readJSONFile(const String& name, MArray& data) { readFile(name, data); } + + template + void writeXMLFile(const String& name, const MArray& data) { writeFile(name, data); } + + template + void readXMLFile(const String& name, MArray& data) { readFile(name, data); } } }