ENH: add ITstream::toString() method

- creates a std::string with space-delimited tokens, which can be sent
  to another application or even re-parsed into tokens
This commit is contained in:
Mark Olesen
2019-08-14 19:29:02 +02:00
committed by Andrew Heather
parent 771410e546
commit ba69505225
3 changed files with 38 additions and 3 deletions

View File

@ -67,6 +67,14 @@ int main(int argc, char *argv[])
dictionary dict(is);
Info<< dict << endl;
for (const entry& e : dict)
{
if (e.isStream())
{
Info<< e.keyword() << " :: "
<< e.stream().toString() << nl;
}
}
}
}