]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMLibrary.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMLibrary.h
index 4c7fdad33c8ac0de95fbe89b0de83497b7b7bb97..728b5c93970703cccb7b833a1e85924dc5943914 100644 (file)
 #include<iostream>
 #include<vector>
 
-#include "modelCDMIProjectTreeNode.h"
+#include "modelCDMFolder.h"
 
-class modelCDMLibrary : public modelCDMIProjectTreeNode
+class modelCDMLibrary : public modelCDMFolder
 {
 public:
   modelCDMLibrary();
+  modelCDMLibrary(const std::string& path, const std::string& name, const int& level = 2);
   ~modelCDMLibrary();
 
-  const std::string& GetName() const;
+  const std::string& GetNameLibrary() const;
+  bool SetNameLibrary(const std::string& fileName, std::string*& result);
+
+  modelCDMFolder* CreateFolder(const std::string& name, std::string*& result);
 
-  bool CreateFolder(
-      const std::string& name,
-      std::string*& result,
-      const std::string& path = "/"
-  );
-  bool OpenCMakeListsFile(std::string*& result);
   virtual const bool Refresh(std::string*& result);
 
 private:
-  std::string name;
-  std::vector<modelCDMLibrary*> libraries;
+  std::string nameLibrary;
+  std::vector<modelCDMFolder*> folders;
 };
 
 #endif /* MODELCDMLIBRARY_H_ */