include/relpipe/protocol/constants.h
branchv_0
changeset 0 0f855036489e
child 3 64049055fc1d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/relpipe/protocol/constants.h	Sun Aug 19 20:34:11 2018 +0200
@@ -0,0 +1,33 @@
+#pragma once
+
+#include <cstdint>
+#include <string>
+
+#include "typedefs.h"
+
+namespace relpipe {
+namespace protocol {
+
+const integer_t DATA_TYPE_ID_BOOLEAN = 1;
+const integer_t DATA_TYPE_ID_INTEGER = 2;
+const integer_t DATA_TYPE_ID_STRING = 3;
+
+const string_t DATA_TYPE_CODE_BOOLEAN = L"boolean";
+const string_t DATA_TYPE_CODE_INTEGER = L"integer";
+const string_t DATA_TYPE_CODE_STRING = L"string";
+
+
+/**
+ * With respect for the tradition and computer pioneers, we use same numbers as in ASCII texts:
+ * 
+ * 1C    FS  ␜  File Separator
+ * 1D    GS  ␝  Group Separator
+ * 1E    RS  ␞  Record Separator
+ * 1F    US  ␟  Unit Separator
+ * 
+ */
+const integer_t DATA_PART_START = 0x1D;
+const integer_t DATA_PART_ROW = 0x1E;
+
+}
+}
\ No newline at end of file