summaryrefslogtreecommitdiff
path: root/include/type.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-08-25 17:40:03 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-08-25 17:40:03 +0200
commite14055694478d70e58b5fc653b08a9a514bbc455 (patch)
treeab47d723699a7fe86f47f68c182ab695bf9b3bab /include/type.h
parente838e180f5bbcf19e7235f30311645e942ff92d2 (diff)
{more work in progress: the function that was defined with c++ now gets calls, but it does not yet call the actual implementation
Diffstat (limited to 'include/type.h')
-rw-r--r--include/type.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/type.h b/include/type.h
new file mode 100644
index 0000000..f3e357f
--- /dev/null
+++ b/include/type.h
@@ -0,0 +1,38 @@
+/**
+ * Type.h
+ *
+ * In this file an enumeration type is defined with all supporteded variable
+ * types.
+ *
+ * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
+ * @copyright 2013 Copernica BV
+ */
+
+/**
+ * Set up namespace
+ */
+namespace PhpCpp {
+
+/**
+ * Supported types for variables
+ * The values are the same as the ones used internally in Zend
+ */
+typedef enum _Type {
+ nullType = 0,
+ intType = 1,
+ decimalType = 2,
+ boolType = 3,
+ arrayType = 4,
+ objectType = 5,
+ stringType = 6,
+ resourceType = 7,
+ constantType = 8,
+ constantArrayType = 9,
+ callableType = 10
+} Type;
+
+/**
+ * End of namespace
+ */
+}
+