]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMCMakeListsFile.cpp
By Leonardo Florez
[crea.git] / lib / creaDevManagerLib / modelCDMCMakeListsFile.cpp
index dfbb99958af7655d8cfb22f3c34a8125dd205a00..2dc48b478d29cdaac5926dc1655e42bcad209e79 100644 (file)
@@ -45,8 +45,10 @@ modelCDMCMakeListsFile::modelCDMCMakeListsFile()
 {
 }
 
-modelCDMCMakeListsFile::modelCDMCMakeListsFile(const std::string& path, const std::string& name, const int& level)
+modelCDMCMakeListsFile::modelCDMCMakeListsFile(modelCDMIProjectTreeNode* parent, const std::string& path, const std::string& name, const int& level)
 {
+  std::cout << "creating cmakelist file: " + path + "\n";
+  this->parent = parent;
   this->children.clear();
   this->level = level;
   this->type = wxDIR_FILES;
@@ -77,6 +79,7 @@ bool modelCDMCMakeListsFile::OpenFile(std::string*& result)
 
 const bool modelCDMCMakeListsFile::Refresh(std::string*& result)
 {
+  //std::cout << "refreshing cmakelists" << std::endl;
   std::ifstream in((this->path).c_str());
   if(!in.is_open())
     {