-
class
CallGate
: Callable
-
Something that acts as a middle-man while invoking an operation.
The main purpose of a call gate is to change the call environment
before and after a function is executed. In C++, this allows
to wrap a try-catch-block around the invocation of a method.
Public Members:
-
CallGate (Callable* target, bool release = true) ;
-
Create a new call gate.
If release is true, the target callable is deleted when the
call gate is destroyed.
-
CallGate () ;
-
Default constructor.
Leaves the target uninitialized (NULL).
-
virtual ~CallGate () ;
-
Destrcutor
If release is true, the target is deleted as well.
-
virtual void call () ;
-
Do the call.
The targets call function is called.
-
virtual Callable* getTarget () const ;
-
Rerurn the actual call target.
Reader method.
-
virtual void setTarget ( Callable* target, bool release = true ) ;
-
Set a new call target.
As in the constructor, the release status could be set as well.
The Scrunitizer C++ Unit Test Framework
by Bernd Linowski
[Scrunitizer]
[Overview]
[Cookbook]
[Download]
[Index]
[Linosphere]
Page generated: 1 Nov 2000
(C) by Bernd Linowski
scrunitizer@linosphere.de
|