X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fstlplus%2Fpersistence%2Fpersistent_string.cpp;fp=src%2Fstlplus%2Fpersistence%2Fpersistent_string.cpp;h=80940d12ed57e88abe2acc9f2579d50ed90047d1;hp=0000000000000000000000000000000000000000;hb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;hpb=85783316365181491a3e3c0c63659972477cebba diff --git a/src/stlplus/persistence/persistent_string.cpp b/src/stlplus/persistence/persistent_string.cpp new file mode 100644 index 0000000..80940d1 --- /dev/null +++ b/src/stlplus/persistence/persistent_string.cpp @@ -0,0 +1,25 @@ +//////////////////////////////////////////////////////////////////////////////// + +// Author: Andy Rushton +// Copyright: (c) Southampton University 1999-2004 +// (c) Andy Rushton 2004-2009 +// License: BSD License, see ../docs/license.html + +//////////////////////////////////////////////////////////////////////////////// +#include "persistent_string.hpp" + +//////////////////////////////////////////////////////////////////////////////// + +void stlplus::dump_string(stlplus::dump_context& context, const std::string& data) + throw(stlplus::persistent_dump_failed) +{ + stlplus::dump_basic_string(context, data, stlplus::dump_char); +} + +void stlplus::restore_string(stlplus::restore_context& context, std::string& data) + throw(stlplus::persistent_restore_failed) +{ + stlplus::restore_basic_string(context, data, stlplus::restore_char); +} + +////////////////////////////////////////////////////////////////////////////////