serialize.hh (9332:ae2a5329ce96) | serialize.hh (9342:6fec8f26e56d) |
---|---|
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; --- 130 unchanged lines hidden (view full) --- 139 140#define UNSERIALIZE_OBJPTR(objptr) \ 141 do { \ 142 SimObject *sptr; \ 143 objParamIn(cp, section, #objptr, sptr); \ 144 fromSimObject(objptr, sptr); \ 145 } while (0) 146 | 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; --- 130 unchanged lines hidden (view full) --- 139 140#define UNSERIALIZE_OBJPTR(objptr) \ 141 do { \ 142 SimObject *sptr; \ 143 objParamIn(cp, section, #objptr, sptr); \ 144 fromSimObject(objptr, sptr); \ 145 } while (0) 146 |
147/* | 147/** |
148 * Basic support for object serialization. | 148 * Basic support for object serialization. |
149 * 150 * @note Many objects that support serialization need to be put in a 151 * consistent state when serialization takes place. We refer to the 152 * action of forcing an object into a consistent state as 153 * 'draining'. Objects that need draining inherit from Drainable. See 154 * Drainable for more information. |
|
149 */ 150class Serializable 151{ 152 protected: 153 void nameOut(std::ostream &os); 154 void nameOut(std::ostream &os, const std::string &_name); 155 156 public: --- 140 unchanged lines hidden --- | 155 */ 156class Serializable 157{ 158 protected: 159 void nameOut(std::ostream &os); 160 void nameOut(std::ostream &os, const std::string &_name); 161 162 public: --- 140 unchanged lines hidden --- |