Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mantid::DataHandling::ANSTO::ProgressTracker Class Reference

helper class to keep track of progress More...

#include <LoadANSTOHelper.h>

Public Member Functions

void complete ()
 
 ProgressTracker (API::Progress &progBar, const char *msg, int64_t target, size_t count)
 
void update (int64_t position)
 
 ~ProgressTracker ()
 

Private Attributes

size_t m_count
 
const std::string m_msg
 
int64_t m_next
 
API::Progressm_progBar
 
int64_t m_step
 

Detailed Description

helper class to keep track of progress

Definition at line 35 of file LoadANSTOHelper.h.

Constructor & Destructor Documentation

◆ ProgressTracker()

Mantid::DataHandling::ANSTO::ProgressTracker::ProgressTracker ( API::Progress progBar,
const char *  msg,
int64_t  target,
size_t  count 
)

Definition at line 22 of file LoadANSTOHelper.cpp.

References Mantid::API::Progress::doReport(), m_msg, and m_progBar.

◆ ~ProgressTracker()

Mantid::DataHandling::ANSTO::ProgressTracker::~ProgressTracker ( )

Definition at line 27 of file LoadANSTOHelper.cpp.

References complete().

Member Function Documentation

◆ complete()

void Mantid::DataHandling::ANSTO::ProgressTracker::complete ( )

◆ update()

void Mantid::DataHandling::ANSTO::ProgressTracker::update ( int64_t  position)

Member Data Documentation

◆ m_count

size_t Mantid::DataHandling::ANSTO::ProgressTracker::m_count
private

Definition at line 39 of file LoadANSTOHelper.h.

Referenced by complete(), and update().

◆ m_msg

const std::string Mantid::DataHandling::ANSTO::ProgressTracker::m_msg
private

Definition at line 38 of file LoadANSTOHelper.h.

Referenced by complete(), ProgressTracker(), and update().

◆ m_next

int64_t Mantid::DataHandling::ANSTO::ProgressTracker::m_next
private

Definition at line 41 of file LoadANSTOHelper.h.

Referenced by update().

◆ m_progBar

API::Progress& Mantid::DataHandling::ANSTO::ProgressTracker::m_progBar
private

Definition at line 43 of file LoadANSTOHelper.h.

Referenced by complete(), ProgressTracker(), and update().

◆ m_step

int64_t Mantid::DataHandling::ANSTO::ProgressTracker::m_step
private

Definition at line 40 of file LoadANSTOHelper.h.

Referenced by update().


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