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:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user