@@ -15,8 +15,8 @@ void GraphConverter::preactions() const
1515
1616void GraphConverter::postactions ()
1717{
18- // reader.set_context(std::make_unique<GroundReader>());
19- // writer.set_context(std::make_unique<GroundWriter>());
18+ reader.set_context (std::make_unique<GroundReader>());
19+ writer.set_context (std::make_unique<GroundWriter>());
2020
2121 GroundFile* ground;
2222
@@ -46,10 +46,10 @@ void GraphConverter::postactions()
4646
4747void GraphConverter::convert ()
4848{
49- // reader.set_context(std::make_unique<GraphReader>());
50- // writer.set_context(std::make_unique<GraphWriter>());
51- GraphReader* greader = new GraphReader ();
52- GraphWriter* gwriter = new GraphWriter ();
49+ reader.set_context (std::make_unique<GraphReader>());
50+ writer.set_context (std::make_unique<GraphWriter>());
51+ // GraphReader* greader = new GraphReader();
52+ // GraphWriter* gwriter = new GraphWriter();
5353 // reader.set_context(greader);
5454 // writer.set_context(gwriter);
5555
@@ -60,7 +60,7 @@ void GraphConverter::convert()
6060 if (std::filesystem::is_regular_file (entry.path ())) {
6161 graph = new VGraphFile (entry.path ());
6262 try {
63- graph = dynamic_cast <VGraphFile*>(greader-> read (*graph));
63+ graph = dynamic_cast <VGraphFile*>(reader. read (*graph));
6464 graph->build_target_absolute (this ->resource );
6565 } catch (std::exception ex) {
6666 BOOST_LOG_TRIVIAL (error) << " An error occured during reading graph file" ;
@@ -69,7 +69,7 @@ void GraphConverter::convert()
6969
7070 try {
7171 // this->writer.write(*graph);
72- gwriter-> write (*graph);
72+ writer. write (*graph);
7373 BOOST_LOG_TRIVIAL (info) << " Graph was processed (" << processed << " /" << 145600 << " )" ;
7474 } catch (std::exception ex) {
7575 BOOST_LOG_TRIVIAL (error) << " An error occured during writing graph file" ;
@@ -80,8 +80,8 @@ void GraphConverter::convert()
8080 }
8181 }
8282 delete graph;
83- delete greader;
84- delete gwriter;
83+ // delete greader;
84+ // delete gwriter;
8585 BOOST_LOG_TRIVIAL (info) << " Database was processed" ;
8686}
8787
0 commit comments