title class - output to the title
More...
#include <wb-win.h>
|
static void | SetGlobalTitle (const char *pstr) |
| set the global title More...
|
|
static const char * | GetGlobalTitle () |
| get the global title More...
|
|
static void | Puts (const char *pStr) |
| output string to title More...
|
|
static void | Precent (long long n=m_precent_cur+1, bool bNew=false, long long nTotal=100, const char *label="") |
| output precent to title More...
|
|
static void | Precent (ifstream &ifile, bool bNew=false, const char *label="") |
| output precent when reading files More...
|
|
static void | Precent (FILE *fp, bool bNew=false, const char *label="") |
| output precent when reading files More...
|
|
static void | Fraction (long long n=m_precent_cur+1, bool bNew=false, long long nTotal=100, const char *label="") |
| output rate to title More...
|
|
title class - output to the title
- Author
- WangBin
- Date
- 2016-04-28
Definition at line 65 of file wb-win.h.
§ Fraction()
void wb::Title::Fraction |
( |
long long |
n = m_precent_cur + 1 , |
|
|
bool |
bNew = false , |
|
|
long long |
nTotal = 100 , |
|
|
const char * |
label = "" |
|
) |
| |
|
static |
§ GetGlobalTitle()
const char * wb::Title::GetGlobalTitle |
( |
| ) |
|
|
static |
get the global title
Definition at line 37 of file wb-win.cpp.
§ Precent() [1/3]
void wb::Title::Precent |
( |
long long |
n = m_precent_cur+1 , |
|
|
bool |
bNew = false , |
|
|
long long |
nTotal = 100 , |
|
|
const char * |
label = "" |
|
) |
| |
|
static |
output precent to title
Definition at line 47 of file wb-win.cpp.
§ Precent() [2/3]
void wb::Title::Precent |
( |
ifstream & |
ifile, |
|
|
bool |
bNew = false , |
|
|
const char * |
label = "" |
|
) |
| |
|
static |
output precent when reading files
Definition at line 76 of file wb-win.cpp.
§ Precent() [3/3]
void wb::Title::Precent |
( |
FILE * |
fp, |
|
|
bool |
bNew = false , |
|
|
const char * |
label = "" |
|
) |
| |
|
static |
output precent when reading files
Definition at line 90 of file wb-win.cpp.
§ Puts()
void wb::Title::Puts |
( |
const char * |
pStr | ) |
|
|
static |
output string to title
Definition at line 41 of file wb-win.cpp.
§ SetGlobalTitle()
void wb::Title::SetGlobalTitle |
( |
const char * |
pstr | ) |
|
|
static |
set the global title
Definition at line 33 of file wb-win.cpp.
§ m_global_title
string wb::Title::m_global_title = "" |
|
static |
the global title. All the other information are follow the global title
Definition at line 68 of file wb-win.h.
§ m_precent_cur
long long wb::Title::m_precent_cur = 0 |
|
static |
for Precent function, the current value
Definition at line 70 of file wb-win.h.
§ m_precent_label
string wb::Title::m_precent_label = "" |
|
static |
the precent output label
Definition at line 72 of file wb-win.h.
§ m_precent_last
int wb::Title::m_precent_last = 0 |
|
static |
record the last output precent value (from 0 to 100)
Definition at line 71 of file wb-win.h.
§ m_precent_max
long long wb::Title::m_precent_max = 0 |
|
static |
for Precent function, the maxiumn value
Definition at line 69 of file wb-win.h.
The documentation for this class was generated from the following files:
- C:/Users/zhang/spmi/SPMILM/tools/trf/src/base/wb-win.h
- C:/Users/zhang/spmi/SPMILM/tools/trf/src/base/wb-win.cpp