-
Notifications
You must be signed in to change notification settings - Fork 0
/
codeData.h
66 lines (57 loc) · 971 Bytes
/
codeData.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#pragma once
#ifndef _CODEDATA
#define _CODEDATA
#include "ofMain.h"
class codeMainDatas {
public:
static int depolananInt;
};
union memoryData {
int *intData;
float *floatData;
double *doubleData;
bool *boolData;
char *charData;
string *dataString;
};
class codeAddVar
{
public:
codeAddVar();
};
// type degeri : 0;
class codeAddIntWithData : public codeAddVar
{
public:
int data;
codeAddIntWithData( int d);
void islemYap();
};
// type degeri 1;
class codeAddIntWithUserAdress : public codeAddVar
{
public:
int data;
codeAddIntWithUserAdress(int d);
void islemYap();
};
// type degeri 2;
class codeChangeIntWithData : public codeAddVar
{
public:
int data;
codeChangeIntWithData(int d);
void islemYap();
};
union processData {
codeAddIntWithData* addIntWithData;
codeAddIntWithUserAdress * codeAddIntWithUserAdress;
codeChangeIntWithData* changeIntWithData;
};
class codeClass {
public:
codeClass();
int type;
processData data;
};
#endif