24 #ifndef __OVERLAY_ACCESS_H__
25 #define __OVERLAY_ACCESS_H__
31 #include <NotificationBoard.h>
45 cModule *tmpMod = refMod;
46 cModule *tmpParent = NULL;
51 tmpParent = tmpMod->getParentModule();
53 cModule *notBoard = tmpParent->getSubmodule(
"notificationBoard");
55 if (dynamic_cast<NotificationBoard*>(notBoard) != NULL)
break;
57 if (!tmpParent)
throw cRuntimeError(
"OverlayAccess::get(): Overlay module not found!");
60 cModule *overlayContainer = tmpParent->getSubmodule(
"overlay", tmpMod->getIndex());
62 (overlayContainer->gate(
"appIn")->getNextGate()->getOwnerModule());
64 if (!overlay)
throw cRuntimeError(
"OverlayAccess::get(): Overlay module not found!");