this->header = NULL;
}
-modelCDMBlackBox::modelCDMBlackBox(const std::string& path, const std::string& name, const int& level)
+modelCDMBlackBox::modelCDMBlackBox(modelCDMIProjectTreeNode* parent, const std::string& path, const std::string& name, const int& level)
{
+ std::cout << "creating black box: " + name + " in " + path + "\n";
+ this->parent = parent;
this->name = name;
this->path = path;
this->level = level;
std::vector<std::string> words;
CDMUtilities::splitter::split(words, authors, "/\\\"\n", CDMUtilities::splitter::no_empties);
std::string authorsReal = words[0];
- for (int i = 1; i < words.size(); i++)
+ for (int i = 1; i < (int)(words.size()); i++)
{
authorsReal += "," + words[i];
}
std::vector<std::string> words;
CDMUtilities::splitter::split(words, categories, "\"\\/", CDMUtilities::splitter::no_empties);
std::string catsReal = words[0];
- for (int i = 1; i < words.size(); i++)
+ for (int i = 1; i < (int)(words.size()); i++)
{
catsReal += "," + words[i];
}
std::vector<std::string> words;
CDMUtilities::splitter::split(words, description, "\"\n\\/", CDMUtilities::splitter::no_empties);
std::string descReal = words[0];
- for (int i = 1; i < words.size(); i++)
+ for (int i = 1; i < (int)(words.size()); i++)
{
descReal += "-" + words[i];
}
const bool modelCDMBlackBox::Refresh(std::string*& result)
{
+ std::cout << "refreshing black box: " << this->nameBlackBox << std::endl;
std::string pathHeader = path + CDMUtilities::SLASH + "bb" + this->name + ".h";
std::ifstream confFile;