From 46a538ceab12c89f1806293f6e5f4e89f6605da4 Mon Sep 17 00:00:00 2001 From: Brad Danofsky Date: Wed, 20 Apr 2011 11:14:52 -0700 Subject: stats: add user settable separator string for arrayed stats Default is '::', so no visible change unless it is overridden --- src/base/statistics.hh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/base/statistics.hh') diff --git a/src/base/statistics.hh b/src/base/statistics.hh index de5540272..f139bce61 100644 --- a/src/base/statistics.hh +++ b/src/base/statistics.hh @@ -255,6 +255,23 @@ class DataWrap : public InfoAccess } const std::string &name() const { return this->info()->name; } + /** + * Set the character(s) used between the name and vector number + * on vectors, dist, etc. + * @param _sep The new separator string + * @return A reference to this stat. + */ + Derived & + setSeparator(const std::string &_sep) + { + this->info()->setSeparator(_sep); + return this->self(); + } + const std::string &setSeparator() const + { + return this->info()->separatorString; + } + /** * Set the description and marks this stat to print at the end of * simulation. -- cgit v1.2.3