diff options
-rw-r--r-- | src/sim/serialize.cc | 18 | ||||
-rw-r--r-- | src/sim/serialize.hh | 11 |
2 files changed, 23 insertions, 6 deletions
diff --git a/src/sim/serialize.cc b/src/sim/serialize.cc index a4851d3f6..ee9b04236 100644 --- a/src/sim/serialize.cc +++ b/src/sim/serialize.cc @@ -394,6 +394,24 @@ Globals::unserialize(Checkpoint *cp) mainEventQueue.unserialize(cp, "MainEventQueue"); } +Serializable::Serializable() +{ +} + +Serializable::~Serializable() +{ +} + +void +Serializable::serialize(std::ostream &os) +{ +} + +void +Serializable::unserialize(Checkpoint *cp, const std::string §ion) +{ +} + void Serializable::serializeAll(const std::string &cpt_dir) { diff --git a/src/sim/serialize.hh b/src/sim/serialize.hh index 4c5f399e6..c33633065 100644 --- a/src/sim/serialize.hh +++ b/src/sim/serialize.hh @@ -121,17 +121,16 @@ class Serializable void nameOut(std::ostream &os, const std::string &_name); public: - Serializable() {} - virtual ~Serializable() {} + Serializable(); + virtual ~Serializable(); // manditory virtual function, so objects must provide names virtual const std::string name() const = 0; - virtual void serialize(std::ostream &os) {} - virtual void unserialize(Checkpoint *cp, const std::string §ion) {} + virtual void serialize(std::ostream &os); + virtual void unserialize(Checkpoint *cp, const std::string §ion); - static Serializable *create(Checkpoint *cp, - const std::string §ion); + static Serializable *create(Checkpoint *cp, const std::string §ion); static int ckptCount; static int ckptMaxCount; |