add table name to startRelation() v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 21 Jul 2018 22:37:25 +0200
branchv_0
changeset 11 27bc67e7c80f
parent 10 40ab091e5dfa
child 12 640e88aedf8f
add table name to startRelation()
include/RelationalWriter.h
src/StreamRelationalWriter.h
--- a/include/RelationalWriter.h	Sat Jul 21 19:04:37 2018 +0200
+++ b/include/RelationalWriter.h	Sat Jul 21 22:37:25 2018 +0200
@@ -18,7 +18,7 @@
 
 	virtual string_t toTypeCode(const integer_t typeId) = 0;
 
-	virtual void startRelation(std::vector<std::pair<string_t, string_t>> attributes, boolean_t writeHeader) = 0;
+	virtual void startRelation(string_t name, std::vector<std::pair<string_t, string_t>> attributes, boolean_t writeHeader) = 0;
 
 	virtual void writeRecord(std::vector<string_t> attributes) = 0;
 
--- a/src/StreamRelationalWriter.h	Sat Jul 21 19:04:37 2018 +0200
+++ b/src/StreamRelationalWriter.h	Sat Jul 21 22:37:25 2018 +0200
@@ -43,7 +43,7 @@
 		throw RelpipeWriterException(L"Unsupported data type: " + typeId);
 	}
 
-	void startRelation(std::vector<std::pair<string_t, string_t> > attributes, boolean_t writeHeader) override {
+	void startRelation(string_t name, std::vector<std::pair<string_t, string_t> > attributes, boolean_t writeHeader) override {
 		output << "startRelation(…)" << std::endl;
 	}