+ else if (command == "r")
+ {
+ cout << "closing the connection" << endl;
+ parser->Close();
+ flush_log(parser);
+
+ cout << "opening a new connection" << endl;
+ parser->Open(strPort.c_str());
+ flush_log(parser);
+
+ cout << "setting active view" << endl;
+ parser->SetActiveView();
+ }