]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMFile.cpp
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / modelCDMFile.cpp
index 039de4784d1e55e029e84429a73f7b6ea8a0d98b..dcafc8e1c8e0995babff83ef93376d0e6d294f69 100644 (file)
@@ -44,8 +44,10 @@ modelCDMFile::modelCDMFile()
 {
 }
 
-modelCDMFile::modelCDMFile(const std::string& path, const std::string& name, const int& level)
+modelCDMFile::modelCDMFile(modelCDMIProjectTreeNode* parent, const std::string& path, const std::string& name, const int& level)
 {
+  std::cout << "creating file: " + path + "\n";
+  this->parent = parent;
   this->children.clear();
   this->level = level;
   this->name = name;
@@ -76,6 +78,7 @@ bool modelCDMFile::OpenFile(std::string*& result, const std::string& command)
 
 const bool modelCDMFile::Refresh(std::string*& result)
 {
+  //std::cout << "refreshing file " << this->name << std::endl;
   std::ifstream in((this->path).c_str());
   if(!in.is_open())
     {