The constructor switches the context to the given component, and the destructor restores the original context.
Public Member Functions | |
| cContextSwitcher (const cComponent *newContext) | |
| ~cContextSwitcher () | |
| cComponent * | getCallerContext () const | 
| cContextSwitcher | ( | const cComponent * | newContext | ) | 
Switches context to the given module
| ~cContextSwitcher | ( | ) | 
Restores the original context
      
  | 
  inline | 
Returns the original context