]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMBlackBox.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMBlackBox.h
index 6755448723716dc7d2d9aee73f0b944db256ce74..c58b16739dbbe887fea211dc7ffcc1a22393d4c7 100644 (file)
 
 #include<iostream>
 
-class modelCDMBlackBox
+#include"modelCDMFolder.h"
+
+class modelCDMBlackBox : public modelCDMFolder
 {
 public:
   modelCDMBlackBox();
+  modelCDMBlackBox(const std::string& path, const std::string& name, const int& level = 1);
   ~modelCDMBlackBox();
 
-  const std::string& GetName() const;
+  const std::string& GetNameBlackBox() const;
   const std::string& GetAuthors() const;
-  const std::string& GetAuthorsEmail() const;
   const std::string& GetCategories() const;
   const std::string& GetDescription() const;
 
+  modelCDMFile* GetHeaderFile() const;
+  modelCDMFile* GetSourceFile() const;
+
+  bool SetNameBlackBox(const std::string& name, std::string*& result);
   bool SetAuthors(const std::string& authors, std::string*& result);
-  bool SetAuthorsEmail(const std::string& email, std::string*& result);
   bool SetCategories(const std::string& version, std::string*& result);
   bool SetDescription(const std::string& description, std::string*& result);
 
+  void SetHeaderFile(modelCDMFile* file);
+  void SetSourceFile(modelCDMFile* file);
+
 
   bool OpenCxx(std::string*& result);
   bool OpenHxx(std::string*& result);
-  bool Refresh(std::string*& result);
+  const bool Refresh(std::string*& result);
 
 private:
-  std::string name;
+  std::string nameBlackBox;
   std::string authors;
-  std::string authorsEmail;
   std::string categories;
   std::string description;
+
+  modelCDMFile* header;
+  modelCDMFile* source;
 };
 
 #endif /* MODELCDMBLACKBOX_H_ */