X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fstlplus%2Fpersistence%2Fpersistent_callback.hpp;fp=src%2Fstlplus%2Fpersistence%2Fpersistent_callback.hpp;h=0000000000000000000000000000000000000000;hb=5846afb00833cc72fe72422ca896d2387c712cb4;hp=034f43e7679c17cc21a8c38ba9985166b1e86258;hpb=a97500609dc3c1b11f9786d32bc458eb00de4c36;p=chaz%2Fyoink diff --git a/src/stlplus/persistence/persistent_callback.hpp b/src/stlplus/persistence/persistent_callback.hpp deleted file mode 100644 index 034f43e..0000000 --- a/src/stlplus/persistence/persistent_callback.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef STLPLUS_PERSISTENT_CALLBACK -#define STLPLUS_PERSISTENT_CALLBACK -//////////////////////////////////////////////////////////////////////////////// - -// Author: Andy Rushton -// Copyright: (c) Southampton University 1999-2004 -// (c) Andy Rushton 2004-2009 -// License: BSD License, see ../docs/license.html - -// Persistence for pointers to polymorphic classes using the callback approach. - -// This works on a set of classes. Each subclass has a set of callback -// (non-method) functions that enable create/dump/restore operations. Each -// subclass must be registered with the persistence dump/restore context so -// that the system knows how to handle it. - -// This approach is suited to classes that cannot be modified to add -// persistence methods. See persistent_interface for a more C++-like way of -// handling polymorphism. - -// Objects are always dumped/restored as pointers to the superclass T. - -// Multiple pointers to the same object are handled in the same way as for -// simple pointers - -// Only classes registered with the context can be dumped and restored as -// polymorphic types - see dump_context::register_callback and -// restore_context::register_callback. Attempting to use any unrecognised class -// will throw an exception. - -//////////////////////////////////////////////////////////////////////////////// - -#include "persistence_fixes.hpp" -#include "persistent_contexts.hpp" - -//////////////////////////////////////////////////////////////////////////////// - -namespace stlplus -{ - - template - void dump_callback(dump_context&, const T* const data) - throw(persistent_dump_failed); - - template - void restore_callback(restore_context&, T*& data) - throw(persistent_restore_failed); - -} // end namespace stlplus - - //////////////////////////////////////////////////////////////////////////////// -#include "persistent_callback.tpp" -#endif