mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
committed by
Andrew Heather
parent
771410e546
commit
ba69505225
@ -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