cMethodCallContextSwitcher Class Reference

API: cMethodCallContextSwitcher Class Reference
API
cMethodCallContextSwitcher Class Reference
Inheritance diagram for cMethodCallContextSwitcher:
[legend]

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 ()

Description

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

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.

References methodCall().

Referenced by methodCall().

◆ getDepth()

int getDepth ( )
inlinestatic

Returns the depth of Enter_Method[_Silent] calls

References getDepth().

Referenced by getDepth().