|
void | wb::Pause () |
| pause More...
|
|
void | wb::outPrecent (long long n, bool bNew=false, long long nTotal=100, const char *title="Process") |
| print precent in the cmd window More...
|
|
void | wb::outPrecent (ifstream &ifile, bool bNew=false, const char *title="Process") |
| print precent in the cmd window More...
|
|
void | wb::outPrecent (FILE *fp, bool bNew=false, const char *title="Process") |
| print precent in the cmd window More...
|
|
template<typename T > |
Log & | wb::Log::output (T *pArray, int n, const char *pgap=" ") |
| output an array More...
|
|
This is the module of tools for system, which includes:
command line parameter parsing
file management
log reading/writing
...
§ lout_array
§ lout_assert
#define lout_assert |
( |
|
p | ) |
{if(!(p)) lout_error("! ("#p")"); } |
§ lout_error
#define lout_error |
( |
|
x | ) |
{wb::lout.bOutputCmd()=true; wb::lout<<"[ERROR] "<<x<<endl; exit(0);} |
§ lout_variable
#define lout_variable |
( |
|
x | ) |
{wb::lout<<#x" = "<<x<<endl;} |
§ lout_variable_precent
#define lout_variable_precent |
( |
|
x, |
|
|
|
y |
|
) |
| {wb::lout<<#x" = "<<x<<" ("<<100.0*(x)/(y)<<"%) /"#y<<"="<<y<<endl;} |
§ lout_variable_rate
#define lout_variable_rate |
( |
|
x, |
|
|
|
y |
|
) |
| {wb::lout<<100.0*(x)/(y)<<"%("<<x<<"/"<<y<<")";} |
§ lout_warning
#define lout_warning |
( |
|
x | ) |
{wb::lout<<"[WARNING] "<<x<<endl;} |
§ MAX_PATH_LEN
§ precent
#define precent |
( |
|
x, |
|
|
|
n |
|
) |
| (x)<<"("<<100.0*(x)/(n)<<"%)" |
§ wbLog_LevelSpace
#define wbLog_LevelSpace "\t" |
§ wbLog_Output
#define wbLog_Output |
( |
|
x | ) |
|
Value: return *this;
#define wbLog_OutputSpace(io)
Definition at line 58 of file wb-log.h.
§ wbLog_OutputSpace
§ outPrecent() [1/3]
void wb::outPrecent |
( |
long long |
n, |
|
|
bool |
bNew, |
|
|
long long |
nTotal, |
|
|
const char * |
title |
|
) |
| |
print precent in the cmd window
Definition at line 251 of file wb-win.cpp.
§ outPrecent() [2/3]
void wb::outPrecent |
( |
ifstream & |
ifile, |
|
|
bool |
bNew, |
|
|
const char * |
title |
|
) |
| |
print precent in the cmd window
Definition at line 294 of file wb-win.cpp.
§ outPrecent() [3/3]
void wb::outPrecent |
( |
FILE * |
fp, |
|
|
bool |
bNew, |
|
|
const char * |
title |
|
) |
| |
print precent in the cmd window
Definition at line 308 of file wb-win.cpp.
§ output()
template<typename T >
Log & wb::Log::output |
( |
T * |
pArray, |
|
|
int |
n, |
|
|
const char * |
pgap = " " |
|
) |
| |
output an array
Definition at line 170 of file wb-log.h.
§ Pause()
§ cn_title_max_len
const int wb::cn_title_max_len = 500 |
§ lout