MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / OutputObjectSummary

Function OutputObjectSummary

src/tw/textdbviewer.cpp:423–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423void OutputObjectSummary(cFCODatabaseFile& rd, TOSTREAM* pOut, int margin)
424{
425 OutputSectionDelimiter(tw::STR_OBJECT_SUMMARY, pOut);
426
427 cFCODatabaseFileIter genreIter(rd);
428 for (genreIter.SeekBegin(); !genreIter.Done(); genreIter.Next())
429 {
430 cGenreSwitcher::GetInstance()->SelectGenre((cGenre::Genre)genreIter.GetGenre());
431
432 iFCONameTranslator* pNT = iTWFactory::GetInstance()->GetNameTranslator();
433
434 OutputGenreDelimiter((cGenre::Genre)genreIter.GetGenre(), pOut);
435
436 // Currently we don't have a rule summary. See function definition below
437 //OutputRulesSummary( genreIter, pNT, pOut);
438
439 OutputObjectSummary(genreIter, pNT, pOut, margin);
440 }
441}
442
443void OutputObjectSummary(cFCODatabaseFileIter& genreIter, const iFCONameTranslator* pNT, TOSTREAM* pOut, int margin)
444{

Callers 3

PrintDBMethod · 0.85
OutputTextReportMethod · 0.85
OutputObjectSummaryMethod · 0.85

Calls 12

OutputSectionDelimiterFunction · 0.85
OutputGenreDelimiterFunction · 0.85
OutputIterPeersFunction · 0.85
SelectGenreMethod · 0.80
GetNameTranslatorMethod · 0.80
c_strMethod · 0.80
GetPropDisplayerMethod · 0.80
SeekBeginMethod · 0.45
DoneMethod · 0.45
NextMethod · 0.45
GetGenreMethod · 0.45
AtRootMethod · 0.45

Tested by

no test coverage detected