summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/Logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Plugins/Logger.cpp')
-rw-r--r--lib/Plugins/Logger.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Plugins/Logger.cpp b/lib/Plugins/Logger.cpp
index c17e85e..c6e076f 100644
--- a/lib/Plugins/Logger.cpp
+++ b/lib/Plugins/Logger.cpp
@@ -45,15 +45,15 @@ void CLogger::LoadSettings(const std::string& pPath)
}
}
-void CLogger::Report(const crash_report_t& pCrashReport)
+void CLogger::Report(const map_crash_report_t& pCrashReport)
{
std::stringstream binaryFiles, commonFiles, additionalFiles, UUIDFile;
std::ofstream fOut;
- crash_report_t::const_iterator it;
+ map_crash_report_t::const_iterator it;
for (it = pCrashReport.begin(); it != pCrashReport.end(); it++)
{
- if (it->second.m_sType == TYPE_TXT)
+ if (it->second[CD_TYPE] == type_crash_data_t_str[CD_TXT])
{
if (it->first != FILENAME_UUID &&
it->first != FILENAME_ARCHITECTURE &&
@@ -62,26 +62,26 @@ void CLogger::Report(const crash_report_t& pCrashReport)
{
additionalFiles << it->first << std::endl;
additionalFiles << "-----" << std::endl;
- additionalFiles << it->second.m_sContent << std::endl << std::endl;
+ additionalFiles << it->second[CD_CONTENT] << std::endl << std::endl;
}
else if (it->first == FILENAME_UUID)
{
UUIDFile << it->first << std::endl;
UUIDFile << "-----" << std::endl;
- UUIDFile << it->second.m_sContent << std::endl << std::endl;
+ UUIDFile << it->second[CD_CONTENT] << std::endl << std::endl;
}
else
{
commonFiles << it->first << std::endl;
commonFiles << "-----" << std::endl;
- commonFiles << it->second.m_sContent << std::endl << std::endl;
+ commonFiles << it->second[CD_CONTENT] << std::endl << std::endl;
}
}
- if (it->second.m_sType == TYPE_BIN)
+ if (it->second[CD_TYPE] == type_crash_data_t_str[CD_BIN])
{
binaryFiles << it->first << std::endl;
binaryFiles << "-----" << std::endl;
- binaryFiles << it->second.m_sContent << std::endl << std::endl;
+ binaryFiles << it->second[CD_CONTENT] << std::endl << std::endl;
}
}