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 §ion = name(); 392 UNSERIALIZE_SCALAR(curTick); 393 394 mainEventQueue.unserialize(cp, "MainEventQueue"); 395} 396 |
397Serializable::Serializable() 398{ 399} 400 401Serializable::~Serializable() 402{ 403} 404 |
405void |
406Serializable::serialize(std::ostream &os) 407{ 408} 409 410void 411Serializable::unserialize(Checkpoint *cp, const std::string §ion) 412{ 413} 414 415void |
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 --- |