INET Framework for OMNeT++/OMNEST
inet::LifecycleController::Callback Class Reference

#include <LifecycleController.h>

Inheritance diagram for inet::LifecycleController::Callback:
inet::IDoneCallback

Public Member Functions

void init (LifecycleController *controller, LifecycleOperation *operation, cModule *module)
 
virtual void invoke () override
 
- Public Member Functions inherited from inet::IDoneCallback
virtual ~IDoneCallback ()
 

Public Attributes

LifecycleControllercontroller
 
LifecycleOperationoperation
 
cModule * module
 

Member Function Documentation

void inet::LifecycleController::Callback::init ( LifecycleController controller,
LifecycleOperation operation,
cModule *  module 
)

Referenced by inet::LifecycleController::doOneStage().

30 {
31  this->controller = controller;
32  this->operation = operation;
33  this->module = module;
34 }
LifecycleController * controller
Definition: LifecycleController.h:69
cModule * module
Definition: LifecycleController.h:71
LifecycleOperation * operation
Definition: LifecycleController.h:70
void inet::LifecycleController::Callback::invoke ( )
overridevirtual

Implements inet::IDoneCallback.

37 {
38  if (!controller)
39  throw cRuntimeError("Usage error: callback may only be invoked if (and after) you returned 'false' from initiateStateChange()");
41 }
LifecycleController * controller
Definition: LifecycleController.h:69
virtual void moduleOperationStageCompleted(Callback *callback)
Definition: LifecycleController.cc:137

Member Data Documentation

LifecycleController* inet::LifecycleController::Callback::controller

Referenced by init(), and invoke().

cModule* inet::LifecycleController::Callback::module

The documentation for this class was generated from the following files: