ScopedFlagSetter Class Reference

For counting "rendered" objects without actually rendering them. More...

#include <view.h>

List of all members.

Public Member Functions

 ScopedFlagSetter (BOOL &bTarget, BOOL bNewVal)
 ~ScopedFlagSetter ()

Public Attributes

BOOL m_bOldVal
BOOL * m_pbTarget


Detailed Description

For counting "rendered" objects without actually rendering them.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/06/2004
See also:
View

Definition at line 443 of file view.h.


Constructor & Destructor Documentation

ScopedFlagSetter::ScopedFlagSetter BOOL &  bTarget,
BOOL  bNewVal
[inline]
 

Definition at line 446 of file view.h.

00447     {
00448         // Remeber a pointer to the target and the original value
00449         m_pbTarget = &bTarget;
00450         m_bOldVal = bTarget;
00451         // And set the target to the new value
00452         bTarget = bNewVal;
00453     }

ScopedFlagSetter::~ScopedFlagSetter  )  [inline]
 

Definition at line 455 of file view.h.

00456     {
00457         // Reset the target to the original value
00458         *m_pbTarget = m_bOldVal;
00459     }


Member Data Documentation

BOOL ScopedFlagSetter::m_bOldVal
 

Definition at line 460 of file view.h.

BOOL* ScopedFlagSetter::m_pbTarget
 

Definition at line 461 of file view.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 04:00:40 2007 for Camelot by  doxygen 1.4.4