Gives access to the overlay.  
 More...
#include <OverlayAccess.h>
Detailed Description
Gives access to the overlay. 
Definition at line 36 of file OverlayAccess.h.
Member Function Documentation
Definition at line 41 of file OverlayAccess.h.
Referenced by CryptoModule::initialize(), BaseApp::initialize(), and BaseRpc::initRpcs().
    {
        
        cModule *tmpMod = refMod;
        cModule *tmpParent = NULL; 
        
        
        while (true) {
            tmpParent = tmpMod->getParentModule(); 
            
            cModule *notBoard = tmpParent->getSubmodule("notificationBoard"); 
            
            if (dynamic_cast<NotificationBoard*>(notBoard) != NULL) break; 
            tmpMod = tmpParent; 
            if (!tmpParent) throw cRuntimeError("OverlayAccess::get(): Overlay module not found!");
        }
        
        cModule *overlayContainer = tmpParent->getSubmodule("overlay", tmpMod->getIndex()); 
                (overlayContainer->gate("appIn")->getNextGate()->getOwnerModule()); 
        
        if (!overlay) throw cRuntimeError("OverlayAccess::get(): Overlay module not found!");
        
        return overlay;
    }
 
 
 
The documentation for this class was generated from the following file: