OMNeT++ Simulation Library  5.6.1
cContextSwitcher Class Reference

#include <simutil.h>

Description

The constructor switches the context to the given component, and the destructor restores the original context.

See also
cSimulation::getContextModule(), cSimulation::setContextModule()
Inheritance diagram for cContextSwitcher:
cMethodCallContextSwitcher

Public Member Functions

 cContextSwitcher (const cComponent *newContext)
 
 ~cContextSwitcher ()
 

Constructor & Destructor Documentation

◆ cContextSwitcher()

cContextSwitcher ( const cComponent newContext)

Switches context to the given module

◆ ~cContextSwitcher()

Restores the original context


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