ParaView
Public Member Functions | Protected Attributes | List of all members
pqDebugType Class Reference

pqDebugType provides a mechanism for application to define categories for debugging various components of the UI. More...

#include <pqDebug.h>

Public Member Functions

 pqDebugType (const QString &envVariable=QString())
 
virtual ~pqDebugType ()
 
virtual operator bool () const
 

Protected Attributes

bool Enabled
 

Detailed Description

pqDebugType provides a mechanism for application to define categories for debugging various components of the UI.

By passing an appropriate name for the envVariable in the constructor, the debug output will only be generated when that variable is set. For example, if you want to put out debug messages when an environment variable MY_DEBUG_FOO is defined, you can do the following:

pqDebug("MY_DEBUG_FOO") << "This will be printed when MY_DEBUG_FOO "
<< "is defined.";

Definition at line 48 of file pqDebug.h.

Constructor & Destructor Documentation

§ pqDebugType()

pqDebugType::pqDebugType ( const QString &  envVariable = QString())

§ ~pqDebugType()

virtual pqDebugType::~pqDebugType ( )
virtual

Member Function Documentation

§ operator bool()

virtual pqDebugType::operator bool ( ) const
inlinevirtual

Definition at line 60 of file pqDebug.h.

Member Data Documentation

§ Enabled

bool pqDebugType::Enabled
protected

Definition at line 51 of file pqDebug.h.


The documentation for this class was generated from the following file: