this->children.clear();
}
+bool modelCDMFolder::CreateClass(const std::string& name)
+{
+ if (!CDMUtilities::createEmptyClass(name, this->path))
+ {
+ return false;
+ }
+ else
+ {
+ this->children.push_back(new modelCDMFile(this->path + CDMUtilities::SLASH + name + ".h", name + ".h", this->level + 1));
+ this->children.push_back(new modelCDMFile(this->path + CDMUtilities::SLASH + name + ".cpp", name + ".cpp", this->level + 1));
+ this->SortChildren();
+ return true;
+ }
+}
+
modelCDMFolder* modelCDMFolder::CreateFolder(const std::string& name, std::string*& result)
{
//TODO:: mkdir depending on OS