Add methods that turns a numeric index into a string for getting the element (an array is actually a document)

This commit is contained in:
fbraem
2013-02-27 19:51:33 +01:00
parent d1b318b806
commit ee360d307c
2 changed files with 43 additions and 0 deletions

View File

@@ -51,6 +51,13 @@ Array::~Array()
}
Element::Ptr Array::get(int pos) const
{
std::string name = Poco::NumberFormatter::format(pos);
return Document::get(name);
}
std::string Array::toString(int indent) const
{
std::ostringstream oss;