Get the module
| 226 | |
| 227 | // Get the module |
| 228 | RegisterableModulePtr 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 | |
| 250 | const IApplicationContext& ModuleRegistry::getApplicationContext() const |
| 251 | { |
no test coverage detected