void VariantDB::Print() { dataList::iterator itor = m_data.begin(); LogMsg("Listing VariantDB contents"); LogMsg("*********************"); while (itor != m_data.end()) { Variant *pV = itor->second; string s = itor->first + ": "+pV->Print(); LogMsg( s.c_str()); itor++; } LogMsg("*********************"); }
std::string VariantDB::DumpAsString() { string log = "*********************\r\n"; dataList::iterator itor = m_data.begin(); while (itor != m_data.end()) { Variant *pV = itor->second; string s = itor->first + ": "+pV->Print(); log += s + " "; itor++; } log += "\r\n"; return log; }