TRF Language Model
wb-win.h File Reference

Provide the toolkits for cmd window of window platform. More...

#include <iostream>
#include <iomanip>
#include <fstream>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <cmath>
#include <omp.h>
#include <conio.h>
#include "wb-vector.h"

Go to the source code of this file.

Classes

class  wb::Title
 title class - output to the title More...
 
class  wb::Clock
 clock - used to record the time More...
 
class  wb::Path
 Analize the path including "*" and "?" and "+" symbols. More...
 

Namespaces

 wb
 define all the code written by Bin Wang.
 

Macros

#define F_RETURN(b)   {if(!(b)) {cout<<"<F_RETURN>Error = "<<__FILE__<<" (line "<<__LINE__<<")"<<endl; return 0;} }
 Debug. More...
 
#define MAX_PATH_LEN   256
 

Functions

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

Variables

const int wb::cn_title_max_len = 500
 

Detailed Description

Provide the toolkits for cmd window of window platform.

Author
WangBin
Date
2016-04-28 the tools include: +# title toolkits, output info to the title of cmd window (such as precent(%) information)

Definition in file wb-win.h.

Macro Definition Documentation

§ F_RETURN

#define F_RETURN (   b)    {if(!(b)) {cout<<"<F_RETURN>Error = "<<__FILE__<<" (line "<<__LINE__<<")"<<endl; return 0;} }

Debug.

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