serialize.hh (2799:1c93aed5aa4a) | serialize.hh (2868:6a7e69fa92d3) |
---|---|
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; --- 112 unchanged lines hidden (view full) --- 121 virtual void unserialize(Checkpoint *cp, const std::string §ion) {} 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; | 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; --- 112 unchanged lines hidden (view full) --- 121 virtual void unserialize(Checkpoint *cp, const std::string §ion) {} 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(); | 129 static void serializeAll(const std::string &cpt_dir); 130 static void unserializeAll(const std::string &cpt_dir); |
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 --- 62 unchanged lines hidden (view full) --- 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 | 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 --- 62 unchanged lines hidden (view full) --- 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); | 209setCheckpointDir(const std::string &name); |
210 211class Checkpoint 212{ 213 private: 214 215 IniFile *db; 216 const std::string basePath; 217 std::map<std::string, Serializable*> objMap; --- 29 unchanged lines hidden --- | 210 211class Checkpoint 212{ 213 private: 214 215 IniFile *db; 216 const std::string basePath; 217 std::map<std::string, Serializable*> objMap; --- 29 unchanged lines hidden --- |