00001 /* 00002 * serialization-hooks.h 00003 * 00004 * Created on: Apr 10, 2010 00005 * Author: tdillig 00006 */ 00007 00008 #ifndef SERIALIZATIONHOOKS_H_ 00009 #define SERIALIZATIONHOOKS_H_ 00010 00011 #include <set> 00012 using namespace std; 00013 00014 typedef void (*callback_t)(); 00015 00016 00017 00018 void register_begin_callback(callback_t fn); 00019 void register_end_callback(callback_t fn); 00020 00021 bool in_serialization(); 00022 00023 00024 void begin_serialization(); 00025 void end_serialization(); 00026 00027 00028 #endif /* SERIALIZATIONHOOKS_H_ */