Kaydet (Commit) 388ce838 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Dump source data for each field re-constructd from the index array.

Change-Id: I863ec02853042662accc2005fa1cd9340f950740
üst 84ba49c5
......@@ -1117,6 +1117,13 @@ void dumpItems(const ScDPCache& rCache, long nDim, const ScDPCache::ItemsType& r
cout << " " << (i+nOffset) << ": " << rCache.GetFormattedString(nDim, rItems[i]) << endl;
}
void dumpSourceData(const ScDPCache& rCache, long nDim, const ScDPCache::ItemsType& rItems, const ScDPCache::IndexArrayType& rArray)
{
ScDPCache::IndexArrayType::const_iterator it = rArray.begin(), itEnd = rArray.end();
for (; it != itEnd; ++it)
cout << " '" << rCache.GetFormattedString(nDim, rItems[*it]) << "'" << endl;
}
}
void ScDPCache::Dump() const
......@@ -1135,6 +1142,9 @@ void ScDPCache::Dump() const
cout << " group item count: " << fld.mpGroup->maItems.size() << endl;
dumpItems(*this, i, fld.mpGroup->maItems, fld.maItems.size());
}
cout << " source data (re-constructed):" << endl;
dumpSourceData(*this, i, fld.maItems, fld.maData);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment