HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_AutoInterrupt Class Reference

#include <UT_Interrupt.h>

Public Member Functions

 UT_AutoInterrupt (const char *operation_name, UT_Interrupt *boss=UTgetInterrupt())
 
 ~UT_AutoInterrupt ()
 
bool wasInterrupted ()
 
bool wasInterrupted (int percent)
 
UT_InterruptgetInterrupt () const
 

Detailed Description

Helper class to ensure that opEnd() is always called, even if you return early from a function. It's similar to UT_AutoUndoBlock.

Examples:
SOP/SOP_DualStar.C, SOP/SOP_Flatten.C, and SOP/SOP_PrimVOP.C.

Definition at line 431 of file UT_Interrupt.h.

Constructor & Destructor Documentation

UT_AutoInterrupt::UT_AutoInterrupt ( const char *  operation_name,
UT_Interrupt boss = UTgetInterrupt() 
)
inline

Definition at line 434 of file UT_Interrupt.h.

UT_AutoInterrupt::~UT_AutoInterrupt ( )
inline

Definition at line 443 of file UT_Interrupt.h.

Member Function Documentation

UT_Interrupt* UT_AutoInterrupt::getInterrupt ( ) const
inline

Definition at line 463 of file UT_Interrupt.h.

bool UT_AutoInterrupt::wasInterrupted ( )
inline

Definition at line 449 of file UT_Interrupt.h.

bool UT_AutoInterrupt::wasInterrupted ( int  percent)
inline

Definition at line 456 of file UT_Interrupt.h.


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