X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fstlplus%2Fpersistence%2Fpersistent_int.hpp;fp=src%2Fstlplus%2Fpersistence%2Fpersistent_int.hpp;h=404d1c56363758f14f8e4fbea32dbe17b67c1570;hb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;hp=0000000000000000000000000000000000000000;hpb=85783316365181491a3e3c0c63659972477cebba;p=chaz%2Fyoink diff --git a/src/stlplus/persistence/persistent_int.hpp b/src/stlplus/persistence/persistent_int.hpp new file mode 100644 index 0000000..404d1c5 --- /dev/null +++ b/src/stlplus/persistence/persistent_int.hpp @@ -0,0 +1,50 @@ +#ifndef STLPLUS_PERSISTENT_INT +#define STLPLUS_PERSISTENT_INT +//////////////////////////////////////////////////////////////////////////////// + +// Author: Andy Rushton +// Copyright: (c) Southampton University 1999-2004 +// (c) Andy Rushton 2004-2009 +// License: BSD License, see ../docs/license.html + +// Persistence of basic integer types + +//////////////////////////////////////////////////////////////////////////////// +#include "persistence_fixes.hpp" +#include "persistent_contexts.hpp" + +namespace stlplus +{ + + void dump_char(dump_context&, const char& data) throw(persistent_dump_failed); + void restore_char(restore_context&, char& data) throw(persistent_restore_failed); + + void dump_signed_char(dump_context&, const signed char& data) throw(persistent_dump_failed); + void restore_signed_char(restore_context&, signed char& data) throw(persistent_restore_failed); + + void dump_unsigned_char(dump_context&, const unsigned char& data) throw(persistent_dump_failed); + void restore_unsigned_char(restore_context&, unsigned char& data) throw(persistent_restore_failed); + + void dump_short(dump_context&, const short& data) throw(persistent_dump_failed); + void restore_short(restore_context&, short& data) throw(persistent_restore_failed); + + void dump_unsigned_short(dump_context&, const unsigned short& data) throw(persistent_dump_failed); + void restore_unsigned_short(restore_context&, unsigned short& data) throw(persistent_restore_failed); + + void dump_int(dump_context&, const int& data) throw(persistent_dump_failed); + void restore_int(restore_context&, int& data) throw(persistent_restore_failed); + + void dump_unsigned(dump_context&, const unsigned& data) throw(persistent_dump_failed); + void restore_unsigned(restore_context&, unsigned& data) throw(persistent_restore_failed); + + void dump_long(dump_context&, const long& data) throw(persistent_dump_failed); + void restore_long(restore_context&, long& data) throw(persistent_restore_failed); + + void dump_unsigned_long(dump_context&, const unsigned long& data) throw(persistent_dump_failed); + void restore_unsigned_long(restore_context&, unsigned long& data) throw(persistent_restore_failed); + + //////////////////////////////////////////////////////////////////////////////// + +} // end namespace stlplus + +#endif