ProteoWizard
Public Member Functions | Private Attributes | List of all members
TestListener Class Reference
Inheritance diagram for TestListener:
pwiz::util::IterationListener

Public Member Functions

 TestListener (const string &name)
 
virtual Status update (const UpdateMessage &updateMessage)
 
size_t count () const
 
- Public Member Functions inherited from pwiz::util::IterationListener
virtual ~IterationListener ()
 

Private Attributes

string name_
 
size_t count_
 

Additional Inherited Members

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

Detailed Description

Definition at line 37 of file IterationListenerTest.cpp.

Constructor & Destructor Documentation

§ TestListener()

TestListener::TestListener ( const string &  name)
inline

Definition at line 41 of file IterationListenerTest.cpp.

42  : name_(name), count_(0)
43  {}

Member Function Documentation

§ update()

virtual Status TestListener::update ( const UpdateMessage updateMessage)
inlinevirtual

Reimplemented from pwiz::util::IterationListener.

Definition at line 45 of file IterationListenerTest.cpp.

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

46  {
47  if (os_) *os_ << "[" << name_ << "] " << updateMessage.iterationIndex << "/"
48  << updateMessage.iterationCount << endl;
49  count_++;
50  return Status_Ok;
51  }
ostream * os_

§ count()

size_t TestListener::count ( ) const
inline

Definition at line 53 of file IterationListenerTest.cpp.

Referenced by test(), and testCancel().

53 {return count_;}

Member Data Documentation

§ name_

string TestListener::name_
private

Definition at line 56 of file IterationListenerTest.cpp.

§ count_

size_t TestListener::count_
private

Definition at line 57 of file IterationListenerTest.cpp.


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