-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCColorset.h
48 lines (42 loc) · 1.53 KB
/
CColorset.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
#ifdef WIN32
#pragma warning (disable: 4514 4786)
#endif
#include <string>
#include <vector>
#include <iostream>
using namespace std;
class string_wrapper
{
public:
string str;
string_wrapper(string a_str) {str = a_str;}
};
#define STR(str) new string_wrapper(str)
class CColorset
{
public:
string name;
string type;//"int" | "index" | "item" | "enum"
int int_min;
int int_max;
string nickname;
vector<CColorset*> itemColorsets;
vector<string> enumValues;
public:
CColorset(string a_name, string a_type, int a_int_min, int a_int_max);
CColorset(string a_name, string a_type);
CColorset(string a_name, string a_type, string a_nickname, int a_int_min, int a_int_max);
CColorset(string a_name, string a_type, vector<CColorset*> a_itemColorsets);
CColorset(string a_name, string a_type, CColorset *itemColorset1);
CColorset(string a_name, string a_type, CColorset *itemColorset1, CColorset *itemColorset2);
CColorset(string a_name, string a_type, CColorset *itemColorset1, CColorset *itemColorset2, CColorset *itemColorset3);
CColorset(string a_name, string a_type, vector<string> a_enumValues);
CColorset(string a_name, string a_type, string enumValue1);
CColorset(string a_name, string a_type, string enumValue1, string enumValue2);
CColorset(string a_name, string a_type, string enumValue1, string enumValue2, string enumValue3);
CColorset(string a_name, string a_type, int argCount, ...);
static CColorset* int_colorset();
static CColorset* uint_colorset();
static CColorset* bool_colorset();
static CColorset* string_colorset();
};