forked from rpuig2001/CDM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConstant.hpp
34 lines (31 loc) · 998 Bytes
/
Constant.hpp
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
#pragma once
#include "stdafx.h"
const int TAG_ITEM_EOBT = 1;
const int TAG_ITEM_TSAT = 2;
const int TAG_ITEM_TTOT = 3;
const int TAG_ITEM_TOBT = 4;
const int TAG_ITEM_TSAC = 5;
const int TAG_ITEM_ASAT = 6;
const int TAG_ITEM_ASRT = 7;
const int TAG_ITEM_A = 8;
const int TAG_ITEM_E = 9;
const int TAG_ITEM_CTOT = 10;
const int TAG_FUNC_EDITEOBT = 100;
const int TAG_FUNC_NEWEOBT = 101;
const int TAG_FUNC_ON_OFF = 102;
const int TAG_FUNC_ADDTSAC = 103;
const int TAG_FUNC_EDITTSAC = 104;
const int TAG_FUNC_NEWTSAC = 105;
const int TAG_FUNC_TOGGLEA = 106;
const int TAG_FUNC_TOGGLEASRT = 107;
const int TAG_FUNC_CTOTOPTIONS = 108;
const int TAG_FUNC_REMOVECTOT = 109;
const int TAG_FUNC_ADDCTOTSELECTED = 110;
const int TAG_FUNC_ADDCTOT = 111;
const int TAG_FUNC_REAASRT = 112;
const int TAG_FUNC_REA = 113;
inline static bool startsWith(const char* pre, const char* str)
{
size_t lenpre = strlen(pre), lenstr = strlen(str);
return lenstr < lenpre ? false : strncmp(pre, str, lenpre) == 0;
};