#include <progress_bar.h>
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_ |
Definition at line 40 of file progress_bar.h.
Definition at line 37 of file progress_bar.cpp.
Definition at line 46 of file progress_bar.cpp.
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.
void swri_console_util::ProgressBar::RestoreTerminal | ( | ) | [private] |
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.
void swri_console_util::ProgressBar::SetStartTime | ( | const ros::WallTime & | start_time | ) |
Definition at line 51 of file progress_bar.cpp.
void swri_console_util::ProgressBar::SetupTerminal | ( | ) | [private] |
Definition at line 150 of file progress_bar.cpp.
int swri_console_util::ProgressBar::maxfd_ [private] |
Definition at line 68 of file progress_bar.h.
termios swri_console_util::ProgressBar::orig_flags_ [private] |
Definition at line 66 of file progress_bar.h.
bool swri_console_util::ProgressBar::paused_ [private] |
Definition at line 59 of file progress_bar.h.
Definition at line 64 of file progress_bar.h.
double swri_console_util::ProgressBar::percent_complete_ [private] |
Definition at line 61 of file progress_bar.h.
Definition at line 63 of file progress_bar.h.
fd_set swri_console_util::ProgressBar::stdin_fdset_ [private] |
Definition at line 67 of file progress_bar.h.