Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
swri_console_util::ProgressBar Class Reference

#include <progress_bar.h>

List of all members.

Public Member Functions

void CheckForPause ()
void PrintTime ()
 ProgressBar ()
char ReadCharFromStdin ()
void SetProgress (double percent_complete)
void SetStartTime (const ros::WallTime &start_time)
 ~ProgressBar ()

Static Public Member Functions

static std::string GetTimeString (double seconds)
static std::string IntToString (int64_t i, int width=0)

Private Member Functions

void RestoreTerminal ()
void SetupTerminal ()

Private Attributes

int maxfd_
termios orig_flags_
bool paused_
ros::WallDuration paused_time_
double percent_complete_
ros::WallTime start_time_
fd_set stdin_fdset_

Detailed Description

Definition at line 40 of file progress_bar.h.


Constructor & Destructor Documentation

Definition at line 37 of file progress_bar.cpp.

Definition at line 46 of file progress_bar.cpp.


Member Function Documentation

Definition at line 105 of file progress_bar.cpp.

std::string swri_console_util::ProgressBar::GetTimeString ( double  seconds) [static]

Definition at line 173 of file progress_bar.cpp.

std::string swri_console_util::ProgressBar::IntToString ( int64_t  i,
int  width = 0 
) [static]

Definition at line 222 of file progress_bar.cpp.

Definition at line 61 of file progress_bar.cpp.

Definition at line 134 of file progress_bar.cpp.

Definition at line 167 of file progress_bar.cpp.

void swri_console_util::ProgressBar::SetProgress ( double  percent_complete)

Definition at line 56 of file progress_bar.cpp.

Definition at line 51 of file progress_bar.cpp.

Definition at line 150 of file progress_bar.cpp.


Member Data Documentation

Definition at line 68 of file progress_bar.h.

Definition at line 66 of file progress_bar.h.

Definition at line 59 of file progress_bar.h.

Definition at line 64 of file progress_bar.h.

Definition at line 61 of file progress_bar.h.

Definition at line 63 of file progress_bar.h.

Definition at line 67 of file progress_bar.h.


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


swri_console_util
Author(s): Marc Alban
autogenerated on Thu Jun 6 2019 20:34:43