MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetString

Method GetString

engine/Poseidon/Core/Config/Configuration.cpp:247–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247std::string ConfigurationSystem::GetString(const char* key, const std::string& defaultValue) const
248{
249 auto it = m_config.find(key);
250 if (it == m_config.end())
251 {
252 return defaultValue;
253 }
254 return it->second.value;
255}
256
257float ConfigurationSystem::GetFloat(const char* key, float defaultValue) const
258{

Callers 3

GetMethod · 0.45
SerializeScriptValueFunction · 0.45
StrFormatFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected