]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/persistence/persistent_float.hpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / persistence / persistent_float.hpp
diff --git a/src/stlplus/persistence/persistent_float.hpp b/src/stlplus/persistence/persistent_float.hpp
new file mode 100644 (file)
index 0000000..4a01e30
--- /dev/null
@@ -0,0 +1,37 @@
+#ifndef STLPLUS_PERSISTENT_FLOAT\r
+#define STLPLUS_PERSISTENT_FLOAT\r
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+//   Author:    Andy Rushton\r
+//   Copyright: (c) Southampton University 1999-2004\r
+//              (c) Andy Rushton           2004-2009\r
+//   License:   BSD License, see ../docs/license.html\r
+\r
+//   Persistence of floating-point types\r
+\r
+//   Note: despite years and years of IEEE standardisation, not all\r
+//   architectures use IEEE-standard representations of floating-point numbers.\r
+//   Therefore a binary dump is not necessarily portable between platforms.\r
+//   Solving this is (currently) beyond the scope of the STLplus project.\r
+\r
+//   If you want to be strictly portable to all platforms, do not dump/restore float\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+#include "persistence_fixes.hpp"\r
+#include "persistent_contexts.hpp"\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+namespace stlplus\r
+{\r
+\r
+  void dump_float(dump_context&, const float& data) throw(persistent_dump_failed);\r
+  void restore_float(restore_context&, float& data) throw(persistent_restore_failed);\r
+\r
+  void dump_double(dump_context&, const double& data) throw(persistent_dump_failed);\r
+  void restore_double(restore_context&, double& data) throw(persistent_restore_failed);\r
+\r
+} // end namespace stlplus\r
+\r
+  ////////////////////////////////////////////////////////////////////////////////\r
+#endif\r
This page took 0.022203 seconds and 4 git commands to generate.