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

Function PrintProps

src/twtest/fcocompare_t.cpp:47–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45///////////////////////////////////////////////////////////////////////////////
46
47static void PrintProps(const iFCO* pFCO)
48{
49 cDebug d("PrintProps");
50 const iFCOPropSet* pSet = pFCO->GetPropSet();
51 const cFCOPropVector& v = pSet->GetValidVector();
52
53 for (int i = 0; i < pSet->GetNumProps(); i++)
54 {
55 if (v.ContainsItem(i))
56 {
57 d.TraceDebug(_T("[%d] %s\t%s\n"), i, pSet->GetPropName(i).c_str(), pSet->GetPropAt(i)->AsString().c_str());
58 }
59 }
60}
61
62
63void TestFCOCompare()

Callers 1

TestFCOCompareFunction · 0.70

Calls 8

GetPropSetMethod · 0.80
GetNumPropsMethod · 0.80
ContainsItemMethod · 0.80
c_strMethod · 0.80
GetPropNameMethod · 0.80
GetPropAtMethod · 0.80
TraceDebugMethod · 0.60
AsStringMethod · 0.45

Tested by 1

TestFCOCompareFunction · 0.56