-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.H
56 lines (39 loc) · 1.01 KB
/
common.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef _FREC_COMMON_
#define _FREC_COMMON_
#define FREC_VERSION "0.1.0"
#include <stdio.h>
#include <stdarg.h>
#include <iostream>
#include <fstream>
#include <map>
#include <vector>
#include <list>
#include <sys/stat.h>
#include <sys/types.h>
#include <math.h>
#include <string>
#include <time.h>
#include <signal.h>
#include <cv.h>
#include <highgui.h>
#include <cxcore.h>
#include <cvaux.h>
#include "Logger.H"
////////////////////////////////////////////////////////////////////////////////////////
// macros
#define QUIT(expr, txt, status)\
if(!expr)\
{\
fprintf(stderr, txt);\
exit(status);\
}while(0)
#define LOG(i, ...)\
Logger::GetLogger()->Log(i, __VA_ARGS__)
#define LOGGER() Logger::GetLogger()
////////////////////////////////////////////////////////////////////////////////////////
// defs
#define MAX_IMG_DIR 200
#define FILE_DATA_LEN 500
#define FILE_NAME_LEN 300
////////////////////////////////////////////////////////////////////////////////////////
#endif //_FREC_COMMON_