]> Creatis software - bbtk.git/commitdiff
DFCH: bbtkSystemTools class has been created and implemented
authorDiego Caceres <Diego.Caceres@creatis.insa-lyon.fr>
Tue, 24 Apr 2012 12:42:18 +0000 (12:42 +0000)
committerDiego Caceres <Diego.Caceres@creatis.insa-lyon.fr>
Tue, 24 Apr 2012 12:42:18 +0000 (12:42 +0000)
new static methods in class:
static void CreateBlackBox();
static void CreatePackage();
static void ExecuteBbi();
static void ExecuteNewProject();

kernel/src/bbtkSystemTools.cxx [new file with mode: 0644]
kernel/src/bbtkSystemTools.h [new file with mode: 0644]

diff --git a/kernel/src/bbtkSystemTools.cxx b/kernel/src/bbtkSystemTools.cxx
new file mode 100644 (file)
index 0000000..86e8929
--- /dev/null
@@ -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 (file)
index 0000000..c66db1e
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * bbtkSystemTools.h
+ *
+ *  Created on: Apr 23, 2012
+ *      Author: pechan
+ */
+
+#ifndef BBTKSYSTEMTOOLS_H_
+#define BBTKSYSTEMTOOLS_H_
+
+#include <cstdlib>
+
+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_ */