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

Function PrintFCOShort

src/tw/textdbviewer.cpp:240–257  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// PrintFCOShort //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

238// PrintFCOShort
239///////////////////////////////////////////////////////////////////////////////
240static void
241PrintFCOShort(const iFCO* pFCO, const iFCOPropDisplayer* pPD, const iFCONameTranslator* pNT, TOSTREAM* pOut, int margin)
242{
243 ASSERT(pOut != 0);
244
245 TSTRING strDetails;
246
247 //
248 // output "<name of FCO>"\n\t<details of FCO>"
249 //
250 (*pOut) << _T(" ");
251 (*pOut) << pNT->ToStringDisplay(pFCO->GetName()).c_str();
252 (*pOut) << endl;
253 (*pOut) << setw(margin) << _T("");
254 pPD->GetDetails(pFCO, strDetails);
255 (*pOut) << strDetails;
256 (*pOut) << _T("\n");
257}
258
259
260static void OutputIterChildren(cDbDataSourceIter dbIter,

Callers 1

OutputFCOMethod · 0.85

Calls 3

c_strMethod · 0.80
ToStringDisplayMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected