#include "creaWx.h"
#include "wx/dir.h"
+#include "CDMUtilities.h"
modelCDMPackage::modelCDMPackage()
{
modelCDMPackage::modelCDMPackage(const std::string& path, const int& level)
{
this->type = wxDIR_DIRS;
- //TODO: Get Package Name
- this->name = "Package";
+ //Get Package Name
+ 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].substr(5, words[words.size()-1].size()-9);
this->namePackage = this->name;
this->level = level;
this->path = path;