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 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
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 ---
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 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
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 ---