OMNeT++ Simulation Library  6.0.3
cMethodCallContextSwitcher Class Reference

#include <ccontextswitcher.h>

Description

Internal class. May only be used via the Enter_Method() and Enter_Method_Silent() macros!

Inheritance diagram for cMethodCallContextSwitcher:
cContextSwitcher

Public Member Functions

 cMethodCallContextSwitcher (const cComponent *newContext)
 
 ~cMethodCallContextSwitcher ()
 
void methodCall (const char *methodFmt,...)
 
- Public Member Functions inherited from cContextSwitcher
 cContextSwitcher (const cComponent *newContext)
 
 ~cContextSwitcher ()
 
cComponentgetCallerContext () const
 

Static Public Member Functions

static int getDepth ()
 

Constructor & Destructor Documentation

◆ cMethodCallContextSwitcher()

cMethodCallContextSwitcher ( const cComponent newContext)

Switches context to the given module

◆ ~cMethodCallContextSwitcher()

Restores the original context

Member Function Documentation

◆ methodCall()

void methodCall ( const char *  methodFmt,
  ... 
)

Various ways to tell the user interface about the method call so that the call can be animated, recorded into the event log, etc.

◆ getDepth()

static int getDepth ( )
inlinestatic

Returns the depth of Enter_Method[_Silent] calls


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