forked from flrnull/http-logs-analyzer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathResult.h
executable file
·36 lines (31 loc) · 1003 Bytes
/
Result.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
#ifndef RESULT_H
#define RESULT_H
#include <map>
#include <string>
#include "Config.h"
namespace Result
{
// Result values
extern unsigned int views;
extern unsigned int visitors;
extern unsigned int urls;
extern unsigned long traffic;
extern unsigned int lines;
extern unsigned int fails;
extern unsigned int google;
extern unsigned int bing;
extern unsigned int baidu;
extern unsigned int yandex;
extern std::map<std::string,int> topUrlMap;
extern std::map<std::string,int> topRefsMap;
extern std::map<std::string,int> codesMap;
// Temp values
extern std::map<std::string,int> ipAgentMap;
extern std::map<std::string,int> urlMap;
extern std::map<std::string,int> refsMap;
// Actions
void display();
void topUrlTryToAdd(std::string urlMapKey, int count, Config * config);
void topRefsTryToAdd(std::string refsMapKey, int count, Config * config);
};
#endif /* RESULT_H */