serialize.cc (5581:5e1863e9afa2) serialize.cc (5739:27c1d1048c65)
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;

--- 380 unchanged lines hidden (view full) ---

389Globals::unserialize(Checkpoint *cp)
390{
391 const string &section = name();
392 UNSERIALIZE_SCALAR(curTick);
393
394 mainEventQueue.unserialize(cp, "MainEventQueue");
395}
396
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;

--- 380 unchanged lines hidden (view full) ---

389Globals::unserialize(Checkpoint *cp)
390{
391 const string &section = name();
392 UNSERIALIZE_SCALAR(curTick);
393
394 mainEventQueue.unserialize(cp, "MainEventQueue");
395}
396
397Serializable::Serializable()
398{
399}
400
401Serializable::~Serializable()
402{
403}
404
397void
405void
406Serializable::serialize(std::ostream &os)
407{
408}
409
410void
411Serializable::unserialize(Checkpoint *cp, const std::string &section)
412{
413}
414
415void
398Serializable::serializeAll(const std::string &cpt_dir)
399{
400 setCheckpointDir(cpt_dir);
401 string dir = Checkpoint::dir();
402 if (mkdir(dir.c_str(), 0775) == -1 && errno != EEXIST)
403 fatal("couldn't mkdir %s\n", dir);
404
405 string cpt_file = dir + Checkpoint::baseFilename;

--- 164 unchanged lines hidden ---
416Serializable::serializeAll(const std::string &cpt_dir)
417{
418 setCheckpointDir(cpt_dir);
419 string dir = Checkpoint::dir();
420 if (mkdir(dir.c_str(), 0775) == -1 && errno != EEXIST)
421 fatal("couldn't mkdir %s\n", dir);
422
423 string cpt_file = dir + Checkpoint::baseFilename;

--- 164 unchanged lines hidden ---