TRF Language Model
wb::Title Class Reference

title class - output to the title More...

#include <wb-win.h>

Static Public Member Functions

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...
 

Static Public Attributes

static string m_global_title = ""
 the global title. All the other information are follow the global title More...
 
static long long m_precent_max = 0
 for Precent function, the maxiumn value More...
 
static long long m_precent_cur = 0
 for Precent function, the current value More...
 
static int m_precent_last = 0
 record the last output precent value (from 0 to 100) More...
 
static string m_precent_label = ""
 the precent output label More...
 

Detailed Description

title class - output to the title

Author
WangBin
Date
2016-04-28

Definition at line 65 of file wb-win.h.

Member Function Documentation

§ Fraction()

void wb::Title::Fraction ( long long  n = m_precent_cur + 1,
bool  bNew = false,
long long  nTotal = 100,
const char *  label = "" 
)
static

output rate to title

Definition at line 104 of file wb-win.cpp.

§ 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.

Member Data Documentation

§ 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: