1 #include "mussa_gui_conn_window.hh"
4 parse_args(int argc, char **argv, string *a_file_path, int *window,
14 // minimal arg reading structure, not very robust to errors
26 *a_file_path = * ++argv;
30 else if (an_arg == "-n")
32 *a_file_path = * ++argv;
36 else if (an_arg == "-w")
38 *window = atoi(* ++argv);
41 else if (an_arg == "-t")
43 *threshold = atoi(* ++argv);
48 *a_file_path = an_arg;
56 int main(int argc, char **argv)
61 int window, threshold;
69 // yeah, its horrible to be passing these by reference, but I just don't see
70 // any other way without making parse_args part of MussaClass, which just
71 // seems wrong (args are after all, an io type thing, and the gui only mode
72 // will have it own way as well...
73 run_mode = parse_args(argc, argv, &a_file_path, &window, &threshold);
75 if ((run_mode == 'f') || (run_mode == 'n'))
76 err_msg = an_analysis.analyze(a_file_path, window, threshold);
77 //an_overlord.do_analysis();
80 err_msg = an_analysis.load(a_file_path);
81 //an_overlord.get_analysis();
83 // no longer needed, but still semi-useful reality check...
86 cout << "GTV - All Gui, All the Time\n";
91 if ((run_mode == 'f') || (run_mode == 'v') || (run_mode == 'g'))
93 //an_overlord.spawnConnView(1000,500);
94 ConnWindow *a_conn_win = new ConnWindow(x_max, y_max, "Mussa");
96 // we have an analysis already if in these 2 modes
97 if ((run_mode == 'f') || (run_mode == 'v'))
98 a_conn_win->add_ana(&an_analysis);
104 cout << err_msg << endl;