#include "ModuleAccess.h"
Functions | |
cModule * | findModuleWherever (const char *name, const char *classname, cModule *from) |
|
Find a module with given name and type "closest" to module "from". Operation: gradually rises in the module hierarchy, and searches recursively among all submodules at every level. 00037 { 00038 cModule *mod = NULL; 00039 for (cModule *curmod=from; !mod && curmod; curmod=curmod->parentModule()) 00040 mod = findSubmodRecursive(curmod, name, classname); 00041 return mod; 00042 }
|