mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Hadrons: better string representation of module parameters
This commit is contained in:
parent
d3f857b1c9
commit
ccfc0a5a89
@ -256,12 +256,11 @@ void Module<P>::saveParameters(XmlWriter &writer, const std::string name)
|
|||||||
template <typename P>
|
template <typename P>
|
||||||
std::string Module<P>::parString(void) const
|
std::string Module<P>::parString(void) const
|
||||||
{
|
{
|
||||||
std::string xmlstring;
|
std::ostringstream s;
|
||||||
XmlWriter writer("","");
|
|
||||||
|
|
||||||
write(writer, par_.SerialisableClassName(), par_);
|
s << par();
|
||||||
|
|
||||||
return writer.string();
|
return s.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename P>
|
template <typename P>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user