Commit ca9344d2 authored by Pascal Noisette's avatar Pascal Noisette

debugage du main : fixe erreur à la fin de l'export en ligne de commande

parent bd2ce44d
......@@ -26,7 +26,7 @@ using namespace std;
Interface_console::Interface_console(int argc, char ** argv){
int state;
bool useGUI;/* if window interface can be displayed */
QString current_path;
......@@ -58,9 +58,9 @@ Interface_console::Interface_console(int argc, char ** argv){
_time_start = 0;
_time_end = 0;
state = get_state(argc, argv);
_state = get_state(argc, argv);
launch_action(state);
launch_action(_state);
......@@ -548,3 +548,7 @@ void Interface_console::set_path_to_export(const string& path){
const QString* Interface_console::get_runenv() const{
return _run_env;
}
int Interface_console::get_status(){
return _state;
}
......@@ -174,6 +174,11 @@ protected:
*/
int _time_end;
/*!
*\brief The interface_console state is specified by a command line arguments combinaison which influence the launch. _state is computed by get_state() and retireved by int get_status()
*/
int _state;
/*!
*\brief The parser thread.
*/
......@@ -187,8 +192,9 @@ protected:
* \return an integer corresponding to a command which will be processed by ViTE.
*/
int get_state(int argc, char** argv);
/*!
* \brief Extracts the times of start and end in the string.
* \arg name : the string where we extract times.
......@@ -304,7 +310,11 @@ protected:
*/
void selection_information(const std::string) const{
}
/*!
* \brief Return the computed state of ViTE
* \return an integer
*/
int get_status();
};
......
......@@ -22,6 +22,9 @@
Q_INIT_RESOURCE(vite);
Interface_console console(argc, argv);
if (console.get_status() & console._STATE_EXPORT_FILE)
return 0;
return console.run();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment