include/relpipe/reader/RelationalReader.h
branchv_0
changeset 14 e8de089f95dd
child 17 ec750c536705
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/relpipe/reader/RelationalReader.h	Sat Aug 25 18:16:53 2018 +0200
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <iostream>
+
+#include "typedefs.h"
+#include "TypeId.h"
+
+namespace relpipe {
+namespace reader {
+
+class RelationalReader {
+public:
+
+	virtual ~RelationalReader() = default;
+
+	/**
+	 * @param typeId numeric type id as defined in Specification
+	 * @return string code of given type
+	 * @throws RelpipeReaderException on unsupported typeId
+	 */
+	virtual string_t toTypeCode(const TypeId typeId) = 0;
+
+};
+
+}
+}