X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=storable.h;fp=storable.h;h=d9fca5119e9d51a4c12399c5e574aa924a27ac31;hb=d922ad61d35e9a6996730bec24b16f8bf7bc426c;hp=0000000000000000000000000000000000000000;hpb=3bb118f5a9462d02ff7d99ef28ecc0d7e23529f9;p=folded-ctf.git
diff --git a/storable.h b/storable.h
new file mode 100644
index 0000000..d9fca51
--- /dev/null
+++ b/storable.h
@@ -0,0 +1,37 @@
+
+///////////////////////////////////////////////////////////////////////////
+// This program is free software: you can redistribute it and/or modify //
+// it under the terms of the version 3 of the GNU General Public License //
+// as published by the Free Software Foundation. //
+// //
+// This program is distributed in the hope that it will be useful, but //
+// WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU //
+// General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program. If not, see . //
+// //
+// Written by Francois Fleuret, (C) IDIAP //
+// Contact for comments & bug reports //
+///////////////////////////////////////////////////////////////////////////
+
+#ifndef STORABLE_H
+#define STORABLE_H
+
+#include
+
+using namespace std;
+
+class Storable {
+public:
+ virtual ~Storable();
+
+ virtual void read(istream *is) = 0;
+ virtual void write(ostream *os) = 0;
+
+ virtual void read(const char *name);
+ virtual void write(const char *name);
+};
+
+#endif