]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMPackage.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMPackage.h
index e18031a44d21775a4a592f58bfb812261843673a..471dbb35f6836e5d0f9e06a276d47375b8aeb813 100644 (file)
 
 #include<iostream>
 #include<vector>
+#include<map>
 
 #include"modelCDMFolder.h"
-#include"modelCDMBlackBox.h"
+#include"modelCDMPackageSrc.h"
 
 class modelCDMPackage : public modelCDMFolder
 {
 public:
   modelCDMPackage();
-  modelCDMPackage(const std::string& path, const int& level = 1);
+  modelCDMPackage(modelCDMIProjectTreeNode* parent, const std::string& path, const std::string& name, const int& level = 1);
   ~modelCDMPackage();
 
   const std::string& GetNamePackage() const;
@@ -53,6 +54,7 @@ public:
   const std::string& GetAuthorsEmail() const;
   const std::string& GetVersion() const;
   const std::string& GetDescription() const;
+  modelCDMPackageSrc* GetSrc() const;
 
   bool SetAuthors(const std::string& authors, std::string*& result);
   bool SetAuthorsEmail(const std::string& email, std::string*& result);
@@ -60,23 +62,27 @@ public:
   bool SetDescription(const std::string& description, std::string*& result);
 
 
-  bool CreateBlackBox(
+  modelCDMBlackBox* CreateBlackBox(
+      std::string*& result,
       const std::string& name,
+      const std::string& type = "std",
+      const std::string& format = "C++",
+      const std::string& categories = "empty",
       const std::string& authors = "unknown",
       const std::string& authorsEmail = "",
-      const std::string& categories = "empty",
       const std::string& description = "no description"
   );
-  bool OpenCMakeListsFile(std::string*& result);
   virtual const bool Refresh(std::string*& result);
 
+  void CheckStructure(std::map<std::string, bool>& properties);
+
 private:
   std::string namePackage;
   std::string authors;
   std::string authorsEmail;
   std::string version;
   std::string description;
-  std::vector<modelCDMBlackBox*> blackBoxes;
+  modelCDMPackageSrc* src;
 
 };