statusbarlog 1.0
This api is used for creating statusbars and for better logging alongside these statusbars.
|
Functions | |
void | FlushOutput () |
void | SaveCursorPosition () |
void | RestoreCursorPosition () |
void | ClearToEndOfLine () |
void | ClearFromStartOfLine () |
void | ClearLine () |
void | ClearCurrentLine () |
int | Log (const LogLevel log_level, const std::string &filename, const char *fmt,...) |
int | CreateStatusbarHandle (StatusbarHandle &statusbar_handle, const std::vector< unsigned int > _positions, const std::vector< unsigned int > _bar_sizes, const std::vector< std::string > _prefixes, const std::vector< std::string > _postfixes) |
int | DestroyStatusbarHandle (StatusbarHandle &statusbar_handle) |
int | UpdateStatusbar (StatusbarHandle &statusbar_handle, const std::size_t idx, const double percent) |
void statusbar_log::ClearCurrentLine | ( | ) |
Definition at line 409 of file statusbarlog.cpp.
void statusbar_log::ClearFromStartOfLine | ( | ) |
Definition at line 399 of file statusbarlog.cpp.
void statusbar_log::ClearLine | ( | ) |
Definition at line 404 of file statusbarlog.cpp.
void statusbar_log::ClearToEndOfLine | ( | ) |
Definition at line 394 of file statusbarlog.cpp.
int statusbar_log::CreateStatusbarHandle | ( | StatusbarHandle & | statusbar_handle, |
const std::vector< unsigned int > | _positions, | ||
const std::vector< unsigned int > | _bar_sizes, | ||
const std::vector< std::string > | _prefixes, | ||
const std::vector< std::string > | _postfixes | ||
) |
Definition at line 488 of file statusbarlog.cpp.
int statusbar_log::DestroyStatusbarHandle | ( | StatusbarHandle & | statusbar_handle | ) |
Definition at line 590 of file statusbarlog.cpp.
void statusbar_log::FlushOutput | ( | ) |
Definition at line 382 of file statusbarlog.cpp.
int statusbar_log::Log | ( | const LogLevel | log_level, |
const std::string & | filename, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 415 of file statusbarlog.cpp.
void statusbar_log::RestoreCursorPosition | ( | ) |
Definition at line 389 of file statusbarlog.cpp.
void statusbar_log::SaveCursorPosition | ( | ) |
Definition at line 384 of file statusbarlog.cpp.
int statusbar_log::UpdateStatusbar | ( | StatusbarHandle & | statusbar_handle, |
const std::size_t | idx, | ||
const double | percent | ||
) |
Definition at line 636 of file statusbarlog.cpp.