tmpltarg.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include "tmpltarg.h"

Go to the source code of this file.

Classes

class  WizOpProbe
 Searches through the (local) registry returning entries in the WizOp category. More...
class  WizOpRegistryEntry
 When the WizOpProbe returns a ClassRegistryEntry it returns one of these which can then be used to extract WizOp specific bits from the registry. More...

Defines

#define new   CAM_DEBUG_NEW

Functions

WizOpsGetWizOps ()


Define Documentation

#define new   CAM_DEBUG_NEW
 

Definition at line 185 of file tmpltarg.cpp.


Function Documentation

WizOps& GetWizOps  ) 
 

Definition at line 287 of file tmpltarg.cpp.

00288 {
00289     // This static dummy object is used for returning in the ERROR2 case
00290     // The original used to return a ptr to a local variable, which is a tad dangerous.
00291     // This solution is not ideal, because there's a permanent instance of an object
00292     // that will probably never be used.
00293     static WizOps DummyOps;
00294 
00295     WizOps* const pWizOps = GetApplication()->GetWizOps();
00296     ERROR2IF(pWizOps == NULL, DummyOps, "No WizOps");
00297 
00298     return *pWizOps;
00299 }


Generated on Sat Nov 10 03:49:21 2007 for Camelot by  doxygen 1.4.4