move create() method to a factory v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sun, 22 Jul 2018 00:08:24 +0200
branchv_0
changeset 6 4585c212a767
parent 5 83dd71fe5cfd
child 7 9ac885dd8037
move create() method to a factory
relpipe-in-cli.cpp
--- a/relpipe-in-cli.cpp	Sat Jul 21 23:47:09 2018 +0200
+++ b/relpipe-in-cli.cpp	Sun Jul 22 00:08:24 2018 +0200
@@ -2,11 +2,12 @@
 #include <memory>
 
 #include <RelationalWriter.h>
+#include <Factory.h>
 #include <TypeId.h>
 
 int main(int argc, char** argv) {
 	using namespace relpipe::writer;
-	std::shared_ptr<RelationalWriter> writer(RelationalWriter::create(std::cout));
+	std::shared_ptr<RelationalWriter> writer(Factory::create(std::cout));
 
 	writer->startRelation(L"my_first_table",{
 		{L"a1", TypeId::STRING},