serialize.hh (7532:3f6413fc37a2) | serialize.hh (7823:dac01f14f20f) |
---|---|
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; --- 236 unchanged lines hidden (view full) --- 245 // someday 246 247 private: 248 // current directory we're serializing into. 249 static std::string currentDirectory; 250 251 public: 252 // Set the current directory. This function takes care of | 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; --- 236 unchanged lines hidden (view full) --- 245 // someday 246 247 private: 248 // current directory we're serializing into. 249 static std::string currentDirectory; 250 251 public: 252 // Set the current directory. This function takes care of |
253 // inserting curTick if there's a '%d' in the argument, and | 253 // inserting curTick() if there's a '%d' in the argument, and |
254 // appends a '/' if necessary. The final name is returned. 255 static std::string setDir(const std::string &base_name); 256 257 // Export current checkpoint directory name so other objects can 258 // derive filenames from it (e.g., memory). The return value is 259 // guaranteed to end in '/' so filenames can be directly appended. 260 // This function is only valid while a checkpoint is being created. 261 static std::string dir(); 262 263 // Filename for base checkpoint file within directory. 264 static const char *baseFilename; 265}; 266 267#endif // __SERIALIZE_HH__ | 254 // appends a '/' if necessary. The final name is returned. 255 static std::string setDir(const std::string &base_name); 256 257 // Export current checkpoint directory name so other objects can 258 // derive filenames from it (e.g., memory). The return value is 259 // guaranteed to end in '/' so filenames can be directly appended. 260 // This function is only valid while a checkpoint is being created. 261 static std::string dir(); 262 263 // Filename for base checkpoint file within directory. 264 static const char *baseFilename; 265}; 266 267#endif // __SERIALIZE_HH__ |