From 2ac054386d9394689e728241972dab7184ae965d Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Sun, 2 Nov 2003 21:49:15 -0800 Subject: Print a warning rather than failing if we're unserializing and there's an object in the config that was not in the checkpointed config. This code compiles, but I haven't tested it... I'm committing it so Ron can have it. Should not effect anything that currently works. base/inifile.cc: base/inifile.hh: Add sectionExists() method so you can query whether a section exists without knowing any of the entry names that would be in it. sim/serialize.cc: sim/serialize.hh: Add Checkpoint::sectionExists() (pass through to IniFile). --HG-- extra : convert_revision : 905db122afdfe55946ab8493ccac0b1e715bc7c6 --- sim/serialize.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sim/serialize.hh') diff --git a/sim/serialize.hh b/sim/serialize.hh index 78cbb702a..09e91d816 100644 --- a/sim/serialize.hh +++ b/sim/serialize.hh @@ -244,6 +244,8 @@ class Checkpoint bool findObj(const std::string §ion, const std::string &entry, Serializeable *&value); + + bool sectionExists(const std::string §ion); }; -- cgit v1.2.3