imports, namespaces v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 25 Aug 2018 18:21:09 +0200
branchv_0
changeset 25 135ef93a4ac2
parent 24 00fe696500c5
child 26 8ae93a43fed2
imports, namespaces
src/DataTypeWriterBase.h
src/Factory.cpp
src/StreamRelationalWriter.h
--- a/src/DataTypeWriterBase.h	Sat Aug 25 17:45:53 2018 +0200
+++ b/src/DataTypeWriterBase.h	Sat Aug 25 18:21:09 2018 +0200
@@ -1,6 +1,7 @@
 #pragma once
 
 #include <string>
+#include "../include/relpipe/writer/TypeId.h"
 #include "../include/relpipe/writer/typedefs.h"
 
 namespace relpipe {
--- a/src/Factory.cpp	Sat Aug 25 17:45:53 2018 +0200
+++ b/src/Factory.cpp	Sat Aug 25 18:21:09 2018 +0200
@@ -1,5 +1,6 @@
 #include <relpipe/protocol/constants.h>
 
+#include "../include/relpipe/writer/TypeId.h"
 #include "../include/relpipe/writer/RelationalWriter.h"
 #include "../include/relpipe/writer/Factory.h"
 #include "StreamRelationalWriter.h"
--- a/src/StreamRelationalWriter.h	Sat Aug 25 17:45:53 2018 +0200
+++ b/src/StreamRelationalWriter.h	Sat Aug 25 18:21:09 2018 +0200
@@ -25,7 +25,7 @@
 	types::BooleanDataTypeWriter booleanWriter;
 	types::IntegerDataTypeWriter integerWriter;
 	types::StringDataTypeWriter stringWriter;
-	vector<DataTypeWriterBase*> writers = {&booleanWriter, &integerWriter, &stringWriter};
+	std::vector<DataTypeWriterBase*> writers = {&booleanWriter, &integerWriter, &stringWriter};
 
 	/**
 	 * count of columns in the current table
@@ -39,7 +39,7 @@
 	/**
 	 * types of columns in the current table
 	 */
-	vector<TypeId> columnTypes;
+	std::vector<TypeId> columnTypes;
 
 	void writeString(const string_t &stringValue, const TypeId typeId) {
 		for (DataTypeWriterBase* writer : writers) if (writer->supports(typeId)) return writer->writeString(output, stringValue);