MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / GetColumnText

Method GetColumnText

DebugView++/LogView.cpp:867–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

865}
866
867std::string CLogView::GetColumnText(int iItem, Column::type column) const
868{
869 int line = m_logLines[iItem].line;
870 const Message& msg = m_logFile[line];
871
872 switch (column)
873 {
874 case Column::Line: return std::to_string(iItem + 1ULL);
875 case Column::Date: return GetDateText(msg.systemTime);
876 case Column::Time: return m_clockTime ? GetTimeText(msg.systemTime) : GetTimeText(msg.time);
877 case Column::Pid: return std::to_string(msg.processId + 0ULL);
878 case Column::Process: return Str(msg.processName).str();
879 case Column::Message: return msg.text;
880 }
881 return std::string();
882}
883
884LRESULT CLogView::OnGetDispInfo(NMHDR* pnmh)
885{

Callers

nothing calls this directly

Calls 4

GetDateTextFunction · 0.85
GetTimeTextFunction · 0.85
StrClass · 0.85
strMethod · 0.45

Tested by

no test coverage detected