]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/persistence/persistent_string.hpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / persistence / persistent_string.hpp
diff --git a/src/stlplus/persistence/persistent_string.hpp b/src/stlplus/persistence/persistent_string.hpp
new file mode 100644 (file)
index 0000000..ff065c7
--- /dev/null
@@ -0,0 +1,48 @@
+#ifndef STLPLUS_PERSISTENT_STRING\r
+#define STLPLUS_PERSISTENT_STRING\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 for STL strings\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+#include "persistence_fixes.hpp"\r
+#include "persistent_contexts.hpp"\r
+#include <string>\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+namespace stlplus\r
+{\r
+\r
+  // basic_string\r
+\r
+  template<typename charT, typename traits, typename allocator, typename D>\r
+  void dump_basic_string(dump_context&, const std::basic_string<charT,traits,allocator>& data, D dump_fn)\r
+    throw(persistent_dump_failed);\r
+\r
+  template<typename charT, typename traits, typename allocator, typename R>\r
+  void restore_basic_string(restore_context&, std::basic_string<charT,traits,allocator>& data, R restore_fn)\r
+    throw(persistent_restore_failed);\r
+\r
+  // string\r
+\r
+  void dump_string(dump_context&, const std::string& data)\r
+    throw(persistent_dump_failed);\r
+\r
+  void restore_string(restore_context&, std::string& data) \r
+    throw(persistent_restore_failed);\r
+\r
+\r
+  // Note: persistence of wstring not supported because it is too weakly defined and messy\r
+  //       decide on a byte-wide encoding of wide strings (e.g. UTF8) and use the string persistence on that\r
+\r
+} // end namespace stlplus\r
+\r
+  ////////////////////////////////////////////////////////////////////////////////\r
+#include "persistent_string.tpp"\r
+#endif\r
This page took 0.021367 seconds and 4 git commands to generate.