INTRODUCTION Overview Download and Install Documentation Publications REPOSITORY Libraries DEVELOPER Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
gbxutilacfr::Stoppable Class Referenceabstract An abstract interface class representing an stoppable activity. More...
Inheritance diagram for gbxutilacfr::Stoppable:
![]() Detailed DescriptionAn abstract interface class representing an stoppable activity. Inherit from this and other classes will know how to ask if your class was stopped (interrupted). function doBigJob( gbxutilacfr::Stoppable* parent ) { // check periodically that the parent activity is not stopping while( !parent->isStopping() ) { // perform many steps } } class MyActivity : public gbxutilacfr::Stoppable { public: virtual bool isStopping() { // return TRUE if we are interrupted }; void run() { doBigJob( this ); }; }; The documentation for this class was generated from the following file: |