serialize.hh (4000:9bf49767a9e4) serialize.hh (4841:89a9419e7361)
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;

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

34 * Serialization Interface Declarations
35 */
36
37#ifndef __SERIALIZE_HH__
38#define __SERIALIZE_HH__
39
40
41#include <list>
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;

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

34 * Serialization Interface Declarations
35 */
36
37#ifndef __SERIALIZE_HH__
38#define __SERIALIZE_HH__
39
40
41#include <list>
42#include <vector>
42#include <iostream>
43#include <map>
44
45#include "sim/host.hh"
46
47class IniFile;
48class Serializable;
49class Checkpoint;

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

56void paramIn(Checkpoint *cp, const std::string &section,
57 const std::string &name, T &param);
58
59template <class T>
60void arrayParamOut(std::ostream &os, const std::string &name,
61 const T *param, int size);
62
63template <class T>
43#include <iostream>
44#include <map>
45
46#include "sim/host.hh"
47
48class IniFile;
49class Serializable;
50class Checkpoint;

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

57void paramIn(Checkpoint *cp, const std::string &section,
58 const std::string &name, T &param);
59
60template <class T>
61void arrayParamOut(std::ostream &os, const std::string &name,
62 const T *param, int size);
63
64template <class T>
65void arrayParamOut(std::ostream &os, const std::string &name,
66 const std::vector<T> &param);
67
68template <class T>
64void arrayParamIn(Checkpoint *cp, const std::string &section,
65 const std::string &name, T *param, int size);
66
69void arrayParamIn(Checkpoint *cp, const std::string &section,
70 const std::string &name, T *param, int size);
71
72template <class T>
73void arrayParamIn(Checkpoint *cp, const std::string &section,
74 const std::string &name, std::vector<T> &param);
75
67void
68objParamIn(Checkpoint *cp, const std::string &section,
69 const std::string &name, SimObject * &param);
70
71
72//
73// These macros are streamlined to use in serialize/unserialize
74// functions. It's assumed that serialize() has a parameter 'os' for

--- 173 unchanged lines hidden ---
76void
77objParamIn(Checkpoint *cp, const std::string &section,
78 const std::string &name, SimObject * &param);
79
80
81//
82// These macros are streamlined to use in serialize/unserialize
83// functions. It's assumed that serialize() has a parameter 'os' for

--- 173 unchanged lines hidden ---