summaryrefslogtreecommitdiff
path: root/src/variable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/variable.h')
-rw-r--r--src/variable.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/variable.h b/src/variable.h
new file mode 100644
index 0000000..3df9255
--- /dev/null
+++ b/src/variable.h
@@ -0,0 +1,37 @@
1#ifndef VARIABLE_H
2#define VARIABLE_H
3
4#include <stdint.h>
5
6#include <bu/string.h>
7
8class Variable
9{
10public:
11 enum Type
12 {
13 Undef,
14 Int,
15 Float,
16 Bool,
17 String
18 };
19
20public:
21 Variable();
22 virtual ~Variable();
23
24private:
25 Type eType;
26 bool bNull;
27
28 union
29 {
30 int64_t iValue;
31 double fValue;
32 bool bValue;
33 Bu::String *sValue;
34 };
35};
36
37#endif