diff options
Diffstat (limited to 'sim')
-rw-r--r-- | sim/serialize.cc | 2 | ||||
-rw-r--r-- | sim/serialize.hh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sim/serialize.cc b/sim/serialize.cc index 945f97c06..91548f653 100644 --- a/sim/serialize.cc +++ b/sim/serialize.cc @@ -431,7 +431,7 @@ Serializable::create(Checkpoint *cp, const std::string §ion) Checkpoint::Checkpoint(const std::string &cpt_dir, const std::string &path, const ConfigNode *_configNode) - : db(new IniFile), basePath(path), configNode(_configNode) + : db(new IniFile), basePath(path), configNode(_configNode), cptDir(cpt_dir) { string filename = cpt_dir + "/" + Checkpoint::baseFilename; if (!db->load(filename)) { diff --git a/sim/serialize.hh b/sim/serialize.hh index ad490d616..5df168665 100644 --- a/sim/serialize.hh +++ b/sim/serialize.hh @@ -210,6 +210,8 @@ class Checkpoint Checkpoint(const std::string &cpt_dir, const std::string &path, const ConfigNode *_configNode); + const std::string cptDir; + bool find(const std::string §ion, const std::string &entry, std::string &value); |