OpClearCache Class Reference

To allow comparitive timing of window redraws Notes: In the OIL. More...

#include <speedtst.h>

Inheritance diagram for OpClearCache:

Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 OpClearCache ()
 Constructor for OpTimeDraw operation. It is not undoable.
void Do (OpDescriptor *)
 Toggles bitmap cache enabled pref also Clears the bitmap cache for performance testing.

Static Public Member Functions

static BOOL Init ()
 Declares a preference that allows you to clear memory in delete().
static OpState GetState (String_256 *, OpDescriptor *)
 This item is always available, so long as a document is visible.

Detailed Description

To allow comparitive timing of window redraws Notes: In the OIL.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/06/2004

Definition at line 145 of file speedtst.h.


Constructor & Destructor Documentation

OpClearCache::OpClearCache  ) 
 

Constructor for OpTimeDraw operation. It is not undoable.

Author:
Andy_Pennell (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/1/94
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: None

Definition at line 399 of file speedtst.cpp.

00400 {
00401 }


Member Function Documentation

void OpClearCache::Do OpDescriptor  )  [virtual]
 

Toggles bitmap cache enabled pref also Clears the bitmap cache for performance testing.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/06/2004
Parameters:
None [INPUTS]
None [OUTPUTS]
Returns:
None

Errors: None

Reimplemented from Operation.

Definition at line 367 of file speedtst.cpp.

00368 {
00369     if (NodeRenderableBounded::bEnableCacheing)
00370     {
00371         InformWarning(_R(IDS_WARN_DISABLECACHEING), _R(IDS_OK));
00372     }
00373 
00374     NodeRenderableBounded::bEnableCacheing = ! NodeRenderableBounded::bEnableCacheing;
00375 
00376     CBitmapCache* pBitmapCache = Camelot.GetBitmapCache();
00377     if (pBitmapCache)
00378     {
00379         pBitmapCache->DeInitialise();
00380     }
00381 
00382     End();                                                              // cleanup memory   
00383 }

OpState OpClearCache::GetState String_256 ,
OpDescriptor
[static]
 

This item is always available, so long as a document is visible.

Author:
Andy_Pennell (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/1/94
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: None

Definition at line 418 of file speedtst.cpp.

00419 {
00420     OpState OpSt;
00421 
00422     OpSt.Ticked = NodeRenderableBounded::bEnableCacheing;
00423 
00424     return OpSt;
00425 }

static BOOL OpClearCache::Init void   )  [static]
 

Declares a preference that allows you to clear memory in delete().

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
19/4/94
Returns:
TRUE if it worked OK, FALSE if not

Reimplemented from SimpleCCObject.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:57:42 2007 for Camelot by  doxygen 1.4.4