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

Method OutputFCO

src/tw/textdbviewer.cpp:199–224  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// OutputFCO //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

197// OutputFCO
198///////////////////////////////////////////////////////////////////////////////
199void cTextDBViewer::OutputFCO(cDbDataSourceIter& dbIter,
200 const iFCOPropDisplayer* pPD,
201 const iFCONameTranslator* pNT,
202 TOSTREAM* pOut,
203 bool fDetails)
204{
205 InitOStream(pOut);
206
207 if (dbIter.HasFCOData())
208 {
209 iFCO* pFCO = dbIter.CreateFCO();
210
211 if (fDetails)
212 {
213 (*pOut) << TSS_GetString(cTW, tw::STR_OBJECT_NAME) << _T(" ")
214 << pNT->ToStringDisplay(pFCO->GetName()).c_str() << endl
215 << endl;
216 DisplayFCOProps(pFCO, pPD, pOut);
217 (*pOut) << endl << endl;
218 }
219 else
220 PrintFCOShort(pFCO, pPD, pNT, pOut, DETAILS_MARGIN);
221
222 pFCO->Release();
223 }
224}
225
226
227//=========================================================================

Callers

nothing calls this directly

Calls 9

InitOStreamFunction · 0.85
DisplayFCOPropsFunction · 0.85
PrintFCOShortFunction · 0.85
HasFCODataMethod · 0.80
c_strMethod · 0.80
ToStringDisplayMethod · 0.80
CreateFCOMethod · 0.45
GetNameMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected