serialize.hh (2760:4dbf498165ac) | serialize.hh (2797:b5f26b4eacef) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 113 unchanged lines hidden (view full) --- 122 123 static Serializable *create(Checkpoint *cp, 124 const std::string §ion); 125 126 static int ckptCount; 127 static int ckptMaxCount; 128 static int ckptPrevCount; 129 static void serializeAll(); | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 113 unchanged lines hidden (view full) --- 122 123 static Serializable *create(Checkpoint *cp, 124 const std::string §ion); 125 126 static int ckptCount; 127 static int ckptMaxCount; 128 static int ckptPrevCount; 129 static void serializeAll(); |
130 static void unserializeAll(); |
|
130 static void unserializeGlobals(Checkpoint *cp); 131}; 132 133// 134// A SerializableBuilder serves as an evaluation context for a set of 135// parameters that describe a specific instance of a Serializable. This 136// evaluation context corresponds to a section in the .ini file (as 137// with the base ParamContext) plus an optional node in the --- 61 unchanged lines hidden (view full) --- 199// Macros to encapsulate the magic of declaring & defining 200// SerializableBuilder and SerializableClass objects 201// 202 203#define REGISTER_SERIALIZEABLE(CLASS_NAME, OBJ_CLASS) \ 204SerializableClass the##OBJ_CLASS##Class(CLASS_NAME, \ 205 OBJ_CLASS::createForUnserialize); 206 | 131 static void unserializeGlobals(Checkpoint *cp); 132}; 133 134// 135// A SerializableBuilder serves as an evaluation context for a set of 136// parameters that describe a specific instance of a Serializable. This 137// evaluation context corresponds to a section in the .ini file (as 138// with the base ParamContext) plus an optional node in the --- 61 unchanged lines hidden (view full) --- 200// Macros to encapsulate the magic of declaring & defining 201// SerializableBuilder and SerializableClass objects 202// 203 204#define REGISTER_SERIALIZEABLE(CLASS_NAME, OBJ_CLASS) \ 205SerializableClass the##OBJ_CLASS##Class(CLASS_NAME, \ 206 OBJ_CLASS::createForUnserialize); 207 |
208void 209setCheckpointName(const std::string &name); 210 |
|
207class Checkpoint 208{ 209 private: 210 211 IniFile *db; 212 const std::string basePath; 213 std::map<std::string, Serializable*> objMap; 214 --- 31 unchanged lines hidden --- | 211class Checkpoint 212{ 213 private: 214 215 IniFile *db; 216 const std::string basePath; 217 std::map<std::string, Serializable*> objMap; 218 --- 31 unchanged lines hidden --- |