diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2003-10-28 17:48:10 -0800 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2003-10-28 17:48:10 -0800 |
commit | 3761bcf076e9289f34b4863d87e4b2afdd276341 (patch) | |
tree | fc9944fb1e928313a80b0f5738536f848d8c9de3 /sim/param.hh | |
parent | e12e64a0718f6805c1203e1d11a39abaf0d9483b (diff) | |
download | gem5-3761bcf076e9289f34b4863d87e4b2afdd276341.tar.xz |
Get new serialization code to link.
sim/param.cc:
Convert parseParam() and showParam() to templates,
andd explicitly instantiate them for common types.
sim/param.hh:
Add declarations for parseParam() and showParam() function templates,
so serialize.cc can use them.
sim/serialize.cc:
Don't need declarations for parseParam() and showParam() since
we put them in param.hh.
Also instantiate paramOut() etc. for bool.
--HG--
extra : convert_revision : 1d84d0fbec64481996cbfa8b84c67c13c6244385
Diffstat (limited to 'sim/param.hh')
-rw-r--r-- | sim/param.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sim/param.hh b/sim/param.hh index fb2c9dd44..abc424f04 100644 --- a/sim/param.hh +++ b/sim/param.hh @@ -754,4 +754,13 @@ SimObjectVectorParam<OBJ_CLASS *>::showType(std::ostream &os) const \ os << "vector of " << CLASS_NAME; \ } + +// +// Declarations for low-level parsing & displaying functions. These +// are used internally, but should not be used directly by clients of +// the parameter mechanism, but are declared here so they can be +// shared with the serialization code (see sim/serialize.cc). +template <class T> bool parseParam(const std::string &str, T &data); +template <class T> void showParam(std::ostream &os, const T &data); + #endif // _PARAM_HH |