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

Method GetCaps

src/fs/fsobject.cpp:110–121  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// GetCaps //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

108// GetCaps
109///////////////////////////////////////////////////////////////////////////////
110uint32 cFSObject::GetCaps() const
111{
112 uint32 cap = mName.GetSize() > 1 ? CAP_CAN_HAVE_PARENT : 0;
113
114 ASSERT(GetFSPropSet().GetValidVector().ContainsItem(cFSPropSet::PROP_FILETYPE));
115 if (GetFSPropSet().GetFileType() == cFSPropSet::FT_DIR)
116 {
117 cap |= CAP_CAN_HAVE_CHILDREN;
118 }
119
120 return cap;
121}
122
123
124///////////////////////////////////////////////////////////////////////////////

Callers 2

CanDescendMethod · 0.80
CompareFCOsMethod · 0.80

Calls 2

ContainsItemMethod · 0.80
GetSizeMethod · 0.45

Tested by

no test coverage detected