#include "modelCDMFile.h"
+#include <creaWx.h>
+#include <wx/dir.h>
+
+#include "CDMUtilities.h"
+
modelCDMFile::modelCDMFile()
{
}
modelCDMFile::modelCDMFile(const std::string& path, const int& level)
{
+ this->children.clear();
+ this->level = level;
+
+ std::vector<std::string> words;
+ std::string delimiters;
+ //TODO::fix for windows
+ delimiters = "/";
+ CDMUtilities::splitter::split(words, path, delimiters, CDMUtilities::splitter::no_empties);
+ this->name = words[words.size()-1];
+
+ this->path = path;
+ this->type = wxDIR_FILES;
}
modelCDMFile::~modelCDMFile()