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

#include <UT_Interrupt.h>

Public Member Functions

 UT_AutoInterrupt (const char *operation_name, UT_Interrupt::Priority priority, UT_Interrupt *boss=UTgetInterrupt())
 
 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 419 of file UT_Interrupt.h.

Constructor & Destructor Documentation

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

Definition at line 422 of file UT_Interrupt.h.

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

Definition at line 433 of file UT_Interrupt.h.

UT_AutoInterrupt::~UT_AutoInterrupt ( )
inline

Definition at line 442 of file UT_Interrupt.h.

Member Function Documentation

UT_Interrupt* UT_AutoInterrupt::getInterrupt ( ) const
inline

Definition at line 462 of file UT_Interrupt.h.

bool UT_AutoInterrupt::wasInterrupted ( )
inline

Definition at line 448 of file UT_Interrupt.h.

bool UT_AutoInterrupt::wasInterrupted ( int  percent)
inline

Definition at line 455 of file UT_Interrupt.h.


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