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

Function PrintFCO

src/tw/dbexplore.cpp:147–172  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// PrintFCO //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

145// PrintFCO
146///////////////////////////////////////////////////////////////////////////////
147static void PrintFCO(const iFCO* pFCO, const iFCOPropDisplayer* pDisplayer)
148{
149 TCOUT.setf(std::ios::left);
150
151 TCOUT << _T("------- ") << iTWFactory::GetInstance()->GetNameTranslator()->ToStringDisplay(pFCO->GetName())
152 << _T(" -------") << std::endl;
153 //
154 // iterate over all of the properties
155 //
156 const iFCOPropSet* pPropSet = pFCO->GetPropSet();
157 cFCOPropVector v = pPropSet->GetValidVector();
158 for (int i = 0; i < pPropSet->GetNumProps(); i++)
159 {
160 if (v.ContainsItem(i))
161 {
162 TCOUT << _T("[");
163 TCOUT.width(2);
164 TCOUT << i << _T("]");
165 TCOUT.width(25);
166 TCOUT << pPropSet->GetPropName(i);
167 TCOUT.width(0);
168 TCOUT << pDisplayer->PropAsString(pFCO, i) << std::endl;
169 }
170 }
171 TCOUT << _T("--------------------------------------------") << std::endl;
172}
173
174static void SplitString(const TSTRING& str, TCHAR c, std::vector<TSTRING>& vStrings)
175{

Callers 1

ExecuteMethod · 0.85

Calls 8

ToStringDisplayMethod · 0.80
GetNameTranslatorMethod · 0.80
GetPropSetMethod · 0.80
GetNumPropsMethod · 0.80
ContainsItemMethod · 0.80
GetPropNameMethod · 0.80
PropAsStringMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected