mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-22 07:01:12 +01:00
Update toString method
This commit is contained in:
parent
9696d7d339
commit
8fddacd451
@ -133,10 +133,16 @@ void Document::read(BinaryReader& reader)
|
||||
std::string Document::toString() const
|
||||
{
|
||||
std::ostringstream oss;
|
||||
oss << "{" << std::endl;
|
||||
for(ElementSet::const_iterator it = _elements.begin(); it != _elements.end(); ++it)
|
||||
{
|
||||
oss << (*it)->name() << " ";
|
||||
if ( it != _elements.begin() )
|
||||
{
|
||||
oss << ", ";
|
||||
}
|
||||
oss << '"' << (*it)->name() << '"' << " : " << (*it)->toString();
|
||||
}
|
||||
oss << "}" << std::endl;
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user