MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / HasProperty

Method HasProperty

utilities/olcUTIL_DataFile.h:123–126  ·  view source on GitHub ↗

Checks if a property exists - useful to avoid creating properties via reading them, though non-essential

Source from the content-addressed store, hash-verified

121 // Checks if a property exists - useful to avoid creating properties
122 // via reading them, though non-essential
123 inline bool HasProperty(const std::string& sName) const
124 {
125 return m_mapObjects.count(sName) > 0;
126 }
127
128 // Access a datafile via a convenient name - "root.node.something.property"
129 inline datafile& GetProperty(const std::string& name)

Callers

nothing calls this directly

Calls 1

countMethod · 0.80

Tested by

no test coverage detected