mc146818.hh (10631:6d6bfdb036ce) | mc146818.hh (10905:a6ca6831e775) |
---|---|
1/* 2 * Copyright (c) 2004-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; --- 156 unchanged lines hidden (view full) --- 165 166 void tickClock(); 167 168 /** 169 * Serialize this object to the given output stream. 170 * @param base The base name of the counter object. 171 * @param os The stream to serialize to. 172 */ | 1/* 2 * Copyright (c) 2004-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; --- 156 unchanged lines hidden (view full) --- 165 166 void tickClock(); 167 168 /** 169 * Serialize this object to the given output stream. 170 * @param base The base name of the counter object. 171 * @param os The stream to serialize to. 172 */ |
173 void serialize(const std::string &base, std::ostream &os); | 173 void serialize(const std::string &base, CheckpointOut &cp) const; |
174 175 /** 176 * Reconstruct the state of this object from a checkpoint. 177 * @param base The base name of the counter object. 178 * @param cp The checkpoint use. 179 * @param section The section name of this object 180 */ | 174 175 /** 176 * Reconstruct the state of this object from a checkpoint. 177 * @param base The base name of the counter object. 178 * @param cp The checkpoint use. 179 * @param section The section name of this object 180 */ |
181 void unserialize(const std::string &base, Checkpoint *cp, 182 const std::string §ion); | 181 void unserialize(const std::string &base, CheckpointIn &cp); |
183}; 184 185#endif // __DEV_MC146818_HH__ | 182}; 183 184#endif // __DEV_MC146818_HH__ |