Public Member Functions | Private Attributes
CancelListener Class Reference
Inheritance diagram for CancelListener:

List of all members.

Public Member Functions

 CancelListener (size_t cancelIndex)
virtual Status update (const UpdateMessage &updateMessage)
- Public Member Functions inherited from pwiz::util::IterationListener
virtual ~IterationListener ()

Private Attributes

size_t cancelIndex_

Additional Inherited Members

- Public Types inherited from pwiz::util::IterationListener
enum  Status { Status_Ok, Status_Cancel }

Detailed Description

Definition at line 61 of file IterationListenerTest.cpp.

Constructor & Destructor Documentation

CancelListener::CancelListener ( size_t  cancelIndex)

Definition at line 65 of file IterationListenerTest.cpp.

: cancelIndex_(cancelIndex)

Member Function Documentation

virtual Status CancelListener::update ( const UpdateMessage updateMessage)

Reimplemented from pwiz::util::IterationListener.

Definition at line 69 of file IterationListenerTest.cpp.

References pwiz::util::IterationListener::UpdateMessage::iterationCount, pwiz::util::IterationListener::UpdateMessage::iterationIndex, os_, and Status_Ok.

if (os_) *os_ << "[cancel] " << updateMessage.iterationIndex << "/"
<< updateMessage.iterationCount << endl;
return updateMessage.iterationIndex==cancelIndex_ ? Status_Cancel : Status_Ok;

Member Data Documentation

size_t CancelListener::cancelIndex_

Definition at line 78 of file IterationListenerTest.cpp.

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