]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMPackage.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMPackage.h
index 5af92109b50611d289ab2c1f78c324c75633565a..471dbb35f6836e5d0f9e06a276d47375b8aeb813 100644 (file)
 
 #include<iostream>
 #include<vector>
+#include<map>
 
-#include"modelCDMIProjectTreeNode.h"
-#include"modelCDMBlackBox.h"
+#include"modelCDMFolder.h"
+#include"modelCDMPackageSrc.h"
 
-class modelCDMPackage : public modelCDMIProjectTreeNode
+class modelCDMPackage : public modelCDMFolder
 {
 public:
   modelCDMPackage();
+  modelCDMPackage(modelCDMIProjectTreeNode* parent, const std::string& path, const std::string& name, const int& level = 1);
   ~modelCDMPackage();
 
-  const std::string& GetName() const;
+  const std::string& GetNamePackage() const;
   const std::string& GetAuthors() const;
   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);
@@ -59,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 name;
+  std::string namePackage;
   std::string authors;
   std::string authorsEmail;
   std::string version;
   std::string description;
-  std::vector<modelCDMBlackBox*> applications;
+  modelCDMPackageSrc* src;
 
 };