From a94262289f8148799f8e319c216d5af2a6053c18 Mon Sep 17 00:00:00 2001 From: Diego Caceres Date: Tue, 24 Apr 2012 12:42:18 +0000 Subject: [PATCH] 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(); --- kernel/src/bbtkSystemTools.cxx | 38 ++++++++++++++++++++++++++++++++++ kernel/src/bbtkSystemTools.h | 37 +++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 kernel/src/bbtkSystemTools.cxx create mode 100644 kernel/src/bbtkSystemTools.h 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_ */ -- 2.45.1