]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMBlackBox.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMBlackBox.cpp
index db8b11cae0ec81145b5a42b023e3b3d0c3be818e..5ea4a26cbfae621fd360a674a0044f096b5b17f5 100644 (file)
 
 #include "modelCDMBlackBox.h"
 
+#include<creaWx.h>
+#include"wx/dir.h"
+
 modelCDMBlackBox::modelCDMBlackBox()
 {
 }
 
+modelCDMBlackBox::modelCDMBlackBox(const std::string& hName, const std::string& path, const int& level)
+{
+  this->name = this->nameBlackBox = hName.substr(2, hName.size()-4);
+  this->path = path;
+  this->level = level;
+  this->type = wxDIR_DIRS;
+}
+
 modelCDMBlackBox::~modelCDMBlackBox()
 {
 }
@@ -67,6 +78,11 @@ const std::string& modelCDMBlackBox::GetDescription() const
   return this->description;
 }
 
+const std::string& modelCDMBlackBox::GetVersion() const
+{
+  return this->version;
+}
+
 bool modelCDMBlackBox::SetAuthors(const std::string& authors, std::string*& result)
 {
   //TODO: implement method
@@ -100,6 +116,12 @@ bool modelCDMBlackBox::SetDescription(
   return true;
 }
 
+bool modelCDMBlackBox::SetVersion(const std::string& version, std::string*& result)
+{
+  //TODO: implement method
+    return true;
+}
+
 bool modelCDMBlackBox::OpenCxx(std::string*& result)
 {
   //TODO: implement method