-
Notifications
You must be signed in to change notification settings - Fork 0
/
ActionType.h
52 lines (41 loc) · 689 Bytes
/
ActionType.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
#ifndef __ActionType_H
#define __ActionType_H
#include <string.h>
/**
* Author: fco.ja.ac@gmail.com
* Date: 21/07/14
* Time: 16:34
*/
typedef enum Actions Actions;
enum Actions
{
SET=0,
ADD=1,
REMOVE=2,
ADD_ALL=3,
REMOVE_ALL=4,
RENEW_INDEX=5
};
// convert enum ActionType to String improve later
/*static std::string ActionType(actions e)*/
static char* ActionType(Actions e)
{
switch(e)
{
case SET:
return "SET";
case ADD:
return "ADD";
case REMOVE:
return "REMOVE";
case ADD_ALL:
return "ADD_ALL";
case REMOVE_ALL:
return "REMOVE_ALL";
case RENEW_INDEX:
return "RENEW_INDEX";
default:
return "ERROR";
}
}
#endif