CGR Localization
 All Classes Namespaces Files Functions Variables Macros Pages
proghelp.h
1 // helpers for writing the main programs for small size
2 
3 #ifndef __PROG_HELP_H__
4 #define __PROG_HELP_H__
5 
6 #include "sstring.h"
7 
8 void InitHandleStop(bool *_enable_run=NULL,int _grace_time=0);
9 bool Renice(int nice,bool verbose=true);
10 
11 const char *GetProjectRoot();
12 void Usage(const char *program_path);
13 
14 // get a string for the current date
15 void GetDateStr(CharString &date);
16 
17 bool StrToInt(int &val,const char *str,int base=10);
18 bool UpdateSideAndTeam(int &side,int &team,const char *opt);
19 
26 bool SetTimerInterrupt(unsigned int interval, void (*callback)(int));
27 
31 void CancelTimerInterrupts();
32 
33 #endif