CppUnit project page FAQ CppUnit home page

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ProtectorGuard Class Reference

Scoped protector push to TestResult. More...

#include <Protector.h>

Collaboration diagram for ProtectorGuard:

Collaboration graph
[legend]
List of all members.

Public Methods

 ProtectorGuard (TestResult *result, Protector *protector)
 Pushes the specified protector. More...

 ~ProtectorGuard ()
 Pops the protector. More...


Private Attributes

TestResultm_result

Detailed Description

Scoped protector push to TestResult.

Adds the specified Protector to the specified TestResult for the object life-time.


Constructor & Destructor Documentation

ProtectorGuard::ProtectorGuard TestResult   result,
Protector   protector
 

Pushes the specified protector.

ProtectorGuard::~ProtectorGuard  
 

Pops the protector.


Member Data Documentation

TestResult* ProtectorGuard::m_result [private]
 


The documentation for this class was generated from the following files:
SourceForge Logo hosts this site. Send comments to:
CppUnit Developers