//TODO: implement method
//if appli exist create Appli
this->appli = NULL;
+ wxDir dir(crea::std2wx((pathFixed + "/appli").c_str()));
+ if (dir.IsOpened())
+ {
+ this->appli = new modelCDMAppli(pathFixed + "/appli", this->level + 1);
+ this->children.push_back(this->appli);
+ }
+
//if lib exist create Lib
this->lib = NULL;
+ dir.Open(crea::std2wx((pathFixed + "/lib").c_str()));
+ if (dir.IsOpened())
+ {
+ this->lib = new modelCDMLib(pathFixed + "/lib", this->level + 1);
+ this->children.push_back(this->lib);
+ }
+
//if bbtk_* exist create Packages
+ this->packages.clear();
+ dir.Open(crea::std2wx((pathFixed).c_str()));
+ if (dir.IsOpened())
+ {
+ wxString fileName;
+ bool cont = dir.GetFirst(&fileName, wxEmptyString, wxDIR_DIRS);
+ while (cont)
+ {
+ std::string stdfileName = crea::wx2std(fileName);
+
+ if(stdfileName.size() > 9 && stdfileName.substr(0,5) == "bbtk_" && stdfileName.substr(stdfileName.size()-4,4) == "_PKG")
+ {
+ modelCDMPackage* package = new modelCDMPackage(pathFixed + "/" + stdfileName, this->level + 1);
+ this->packages.push_back(package);
+ this->children.push_back(package);
+ }
+ cont = dir.GetNext(&fileName);
+ }
+
+ }
+ this->SortChildren();
}