-
Notifications
You must be signed in to change notification settings - Fork 16
/
debug.h
45 lines (38 loc) · 1.12 KB
/
debug.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
/** debugging class
*/
#ifndef _DEBUG_H_
#define _DEBUG_H_
#include <iostream>
#include <array>
namespace vbit
{
class Debug
{
public:
enum LogLevels
{
logNONE,
logERROR,
logWARN,
logINFO,
logDEBUG
};
/** Default constructor */
Debug();
/** Default destructor */
virtual ~Debug();
void Log(LogLevels level, std::string str);
void SetDebugLevel(LogLevels level){ _debugLevel = level; };
LogLevels GetDebugLevel(){ return _debugLevel; };
void SetMagCycleDuration(int mag, int duration);
std::array<int,8> GetMagCycleDurations(){ return _magDurations; };
void SetMagazineSize(int mag, int size);
std::array<int,8> GetMagSizes(){ return _magSizes; };
protected:
private:
LogLevels _debugLevel;
std::array<int, 8> _magDurations;
std::array<int, 8> _magSizes;
};
}
#endif // _DEBUG_H_