From: Diego Caceres Date: Tue, 24 Apr 2012 12:42:18 +0000 (+0000) Subject: DFCH: bbtkSystemTools class has been created and implemented X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a94262289f8148799f8e319c216d5af2a6053c18;p=bbtk.git DFCH: bbtkSystemTools class has been created and implemented new static methods in class: static void CreateBlackBox(); static void CreatePackage(); static void ExecuteBbi(); static void ExecuteNewProject(); --- diff --git a/kernel/src/bbtkSystemTools.cxx b/kernel/src/bbtkSystemTools.cxx new file mode 100644 index 0000000..86e8929 --- /dev/null +++ b/kernel/src/bbtkSystemTools.cxx @@ -0,0 +1,38 @@ +/* + * bbtkSystemTools.cxx + * + * Created on: Apr 23, 2012 + * Author: Diego Caceres + */ + +#include "bbtkSystemTools.h" + +bbtkSystemTools::bbtkSystemTools() +{ + // TODO Auto-generated constructor stub + +} + +bbtkSystemTools::~bbtkSystemTools() +{ + // TODO Auto-generated destructor stub +} + +void bbtkSystemTools::CreatePackage() +{ + system("bbi toolsbbtk/appli/GUICreateBlackBox.bbs &"); +} + +void bbtkSystemTools::CreateBlackBox() +{ + system("bbi toolsbbtk/appli/GUICreateBlackBox.bbs &"); +} +void bbtkSystemTools::ExecuteBbi() +{ + system("bbi &"); +} +void bbtkSystemTools::ExecuteCreaNewProject() +{ + system("creaNewProject &"); +} + diff --git a/kernel/src/bbtkSystemTools.h b/kernel/src/bbtkSystemTools.h new file mode 100644 index 0000000..c66db1e --- /dev/null +++ b/kernel/src/bbtkSystemTools.h @@ -0,0 +1,37 @@ +/* + * bbtkSystemTools.h + * + * Created on: Apr 23, 2012 + * Author: pechan + */ + +#ifndef BBTKSYSTEMTOOLS_H_ +#define BBTKSYSTEMTOOLS_H_ + +#include + +class bbtkSystemTools +{ +public: + bbtkSystemTools(); + virtual ~bbtkSystemTools(); +public: + /** + * This method executes CreatePackage + */ + static void CreatePackage(); + /** + * This method executes CreateBlackBox + */ + static void CreateBlackBox(); + /** + * This method executes bbi + */ + static void ExecuteBbi(); + /** + * This method executes creaNewProject + */ + static void ExecuteCreaNewProject(); +}; + +#endif /* BBTKSYSTEMTOOLS_H_ */