fix class name v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Fri, 14 Dec 2018 02:24:33 +0100
branchv_0
changeset 15 60a17d8fc223
parent 14 9ed7c3b6ad7a
child 16 c71600851b01
fix class name
src/PythonHandler.h
src/relpipe-tr-python.cpp
--- a/src/PythonHandler.h	Fri Dec 14 02:03:24 2018 +0100
+++ b/src/PythonHandler.h	Fri Dec 14 02:24:33 2018 +0100
@@ -46,7 +46,7 @@
 using namespace relpipe::reader;
 using namespace relpipe::reader::handlers;
 
-class GrepHandler : public RelationalReaderStringHadler {
+class PythonHandler : public RelationalReaderStringHadler {
 private:
 	shared_ptr<writer::RelationalWriter> relationalWriter;
 
@@ -63,7 +63,7 @@
 
 public:
 
-	GrepHandler(ostream& output, const vector<string_t>& arguments) {
+	PythonHandler(ostream& output, const vector<string_t>& arguments) {
 		relationalWriter.reset(writer::Factory::create(output));
 
 		pythonProgramName = Py_DecodeLocale("relpipe-tr-python", NULL);
@@ -79,7 +79,7 @@
 		}
 	}
 
-	virtual ~GrepHandler() {
+	virtual ~PythonHandler() {
 		Py_FinalizeEx();
 		PyMem_RawFree(pythonProgramName);
 	}
--- a/src/relpipe-tr-python.cpp	Fri Dec 14 02:03:24 2018 +0100
+++ b/src/relpipe-tr-python.cpp	Fri Dec 14 02:24:33 2018 +0100
@@ -47,7 +47,7 @@
 
 	try {
 		std::shared_ptr<RelationalReader> reader(Factory::create(std::cin));
-		GrepHandler handler(std::cout, cli.arguments());
+		PythonHandler handler(std::cout, cli.arguments());
 		reader->addHandler(&handler);
 		reader->process();