MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getModule

Method getModule

radiantcore/modulesystem/ModuleRegistry.cpp:228–248  ·  view source on GitHub ↗

Get the module

Source from the content-addressed store, hash-verified

226
227// Get the module
228RegisterableModulePtr ModuleRegistry::getModule(const std::string& name) const {
229
230 // The return value (NULL) by default
231 RegisterableModulePtr returnValue;
232
233 // Try to find the module
234 ModulesMap::const_iterator found = _initialisedModules.find(name);
235
236 if (found != _initialisedModules.end())
237 {
238 returnValue = found->second;
239 }
240
241 if (!returnValue)
242 {
243 rConsoleError() << "ModuleRegistry: Warning! Module with name "
244 << name << " requested but not found!" << std::endl;
245 }
246
247 return returnValue;
248}
249
250const IApplicationContext& ModuleRegistry::getApplicationContext() const
251{

Callers 12

GlobalXYWnd.cppFile · 0.80
acquireReferenceMethod · 0.80
installRendererMethod · 0.80
CameraManager.cppFile · 0.80
GetShaderSystemFunction · 0.80
BrushModule.cppFile · 0.80
assignRenderSystemMethod · 0.80
MapModules.cppFile · 0.80

Calls 3

rConsoleErrorFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected