Stimfit  0.13.15
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions
stfio::ProgressInfo Class Reference

ProgressInfo class. More...

#include <stfio.h>

Inheritance diagram for stfio::ProgressInfo:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ProgressInfo (const std::string &title, const std::string &message, int maximum, bool verbose)
 Constructor.
virtual bool Update (int value, const std::string &newmsg="", bool *skip=NULL)=0
 Updates the progress info.

Detailed Description

ProgressInfo class.

Abstract class to be used as an interface for the file io read/write functions Can be a GUI Dialog or stdout messages

Definition at line 104 of file stfio.h.


Constructor & Destructor Documentation

stfio::ProgressInfo::ProgressInfo ( const std::string &  title,
const std::string &  message,
int  maximum,
bool  verbose 
) [inline]

Constructor.

Parameters:
titleDialog title
messageMessage displayed
maximumMaximum value for the progress meter
verboseWhether or not to emit a lot of noise

Definition at line 112 of file stfio.h.


Member Function Documentation

virtual bool stfio::ProgressInfo::Update ( int  value,
const std::string &  newmsg = "",
bool *  skip = NULL 
) [pure virtual]

Updates the progress info.

Parameters:
valueNew value of the progress meter
newmsgNew message for the info text
skipThis is set to true if the user has chosen to skip the operation
Returns:
True unless the operation was cancelled.

Implemented in stfio::StdoutProgressInfo, and stf::wxProgressInfo.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines