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

Method AddLogSource

DebugView++/MainFrame.cpp:1280–1296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1278}
1279
1280void CMainFrame::AddLogSource(const SourceInfo& info)
1281{
1282 switch (info.type)
1283 {
1284 case SourceType::DebugViewAgent:
1285 m_logSources.AddDbgviewReader(Str(info.address));
1286 break;
1287 case SourceType::Udp:
1288 m_logSources.AddUDPReader(info.port);
1289 break;
1290 case SourceType::Tcp:
1291 throw std::exception("SourceType::Tcp not implememted");
1292 default:
1293 // do nothing
1294 throw std::exception("SourceType not implememted");
1295 }
1296}
1297
1298void CMainFrame::CloseView(int i)
1299{

Callers

nothing calls this directly

Calls 3

StrClass · 0.85
AddDbgviewReaderMethod · 0.80
AddUDPReaderMethod · 0.80

Tested by

no test coverage detected