1 #ifndef STLPLUS_PERSISTENT_INT
2 #define STLPLUS_PERSISTENT_INT
3 ////////////////////////////////////////////////////////////////////////////////
5 // Author: Andy Rushton
6 // Copyright: (c) Southampton University 1999-2004
7 // (c) Andy Rushton 2004-2009
8 // License: BSD License, see ../docs/license.html
10 // Persistence of basic integer types
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "persistence_fixes.hpp"
14 #include "persistent_contexts.hpp"
19 void dump_char(dump_context
&, const char& data
) throw(persistent_dump_failed
);
20 void restore_char(restore_context
&, char& data
) throw(persistent_restore_failed
);
22 void dump_signed_char(dump_context
&, const signed char& data
) throw(persistent_dump_failed
);
23 void restore_signed_char(restore_context
&, signed char& data
) throw(persistent_restore_failed
);
25 void dump_unsigned_char(dump_context
&, const unsigned char& data
) throw(persistent_dump_failed
);
26 void restore_unsigned_char(restore_context
&, unsigned char& data
) throw(persistent_restore_failed
);
28 void dump_short(dump_context
&, const short& data
) throw(persistent_dump_failed
);
29 void restore_short(restore_context
&, short& data
) throw(persistent_restore_failed
);
31 void dump_unsigned_short(dump_context
&, const unsigned short& data
) throw(persistent_dump_failed
);
32 void restore_unsigned_short(restore_context
&, unsigned short& data
) throw(persistent_restore_failed
);
34 void dump_int(dump_context
&, const int& data
) throw(persistent_dump_failed
);
35 void restore_int(restore_context
&, int& data
) throw(persistent_restore_failed
);
37 void dump_unsigned(dump_context
&, const unsigned& data
) throw(persistent_dump_failed
);
38 void restore_unsigned(restore_context
&, unsigned& data
) throw(persistent_restore_failed
);
40 void dump_long(dump_context
&, const long& data
) throw(persistent_dump_failed
);
41 void restore_long(restore_context
&, long& data
) throw(persistent_restore_failed
);
43 void dump_unsigned_long(dump_context
&, const unsigned long& data
) throw(persistent_dump_failed
);
44 void restore_unsigned_long(restore_context
&, unsigned long& data
) throw(persistent_restore_failed
);
46 ////////////////////////////////////////////////////////////////////////////////
48 } // end namespace stlplus