modelCDMPackageSrc::~modelCDMPackageSrc()
{
- for (int i = 0; i < this->blackBoxes.size(); i++)
+ for (int i = 0; i < (int)(this->blackBoxes.size()); i++)
{
if(this->blackBoxes[i] != NULL)
{
std::vector<std::string> words;
CDMUtilities::splitter::split(words, name, " \n\",/\\'", CDMUtilities::splitter::no_empties);
std::string bbName;
- for (int i = 0; i < words.size(); i++)
+ for (int i = 0; i < (int)(words.size()); i++)
{
bbName += words[i];
}
if(words.size() > 0)
{
bbCategories = words[0];
- for (int i = 1; i < words.size(); i++)
+ for (int i = 1; i < (int)(words.size()); i++)
{
bbCategories += "," + words[i];
}
if(words.size() > 0)
{
bbAuthors = words[0];
- for (int i = 1; i < words.size(); i++)
+ for (int i = 1; i < (int)(words.size()); i++)
{
bbAuthors += "," + words[i];
}
if(words.size() > 0)
{
bbDescription = words[0];
- for (int i = 1; i < words.size(); i++)
+ for (int i = 1; i < (int)(words.size()); i++)
{
bbDescription += "," + words[i];
}
if(words.size() > 0)
{
bbDescription += words[0];
- for (int i = 1; i < words.size(); i++)
+ for (int i = 1; i < (int)(words.size()); i++)
{
bbDescription += words[i];
}
//create command
std::string command = "bbCreateBlackBox";
command += " \"" + this->path + "\"";
+#ifdef _WIN32
+ command += " " + package;
+ command += " " + bbName;
+ command += " " + type;
+ command += " " + format;
+#else
command += " \"" + package + "\"";
command += " \"" + bbName + "\"";
command += " \"" + type + "\"";
command += " \"" + format + "\"";
+#endif
command += " \"" + bbAuthors + "\"";
command += " \"" + bbDescription + "\"";
command += " \"" + bbCategories + "\"";
//excecute command
+ //wxMessageBox(crea::std2wx("Command: ->" + command + "<-"),_T("Creating Black Box"),wxOK | wxICON_INFORMATION);
if(system(command.c_str()))
{
result = new std::string("Error executing command '" + command + "'");
if (cont)
{
std::string stdfileName = crea::wx2std(fileName);
- header = new modelCDMFile(this, this->path + stdfileName, stdfileName, this->level+1);
+ header = new modelCDMFile(this, this->path + CDMUtilities::SLASH + stdfileName, stdfileName, this->level+1);
}
cont = dir.GetFirst(&fileName, crea::std2wx("bb"+package+bbName+".cxx"), wxDIR_FILES);
if (cont)
{
std::string stdfileName = crea::wx2std(fileName);
- source = new modelCDMFile(this, this->path + stdfileName, stdfileName, this->level+1);
+ source = new modelCDMFile(this, this->path + CDMUtilities::SLASH + stdfileName, stdfileName, this->level+1);
}
}
//if source and header exist
std::string folderName = stdfileName;
//check if they already exist
bool found = false;
- for (int i = 0; !found && i < this->children.size(); i++)
+ for (int i = 0; !found && i < (int)(this->children.size()); i++)
{
if (this->children[i]->GetName() == folderName)
{
else
{
bool found = false;
- for (int i = 0; !found && i < this->children.size(); i++)
+ for (int i = 0; !found && i < (int)(this->children.size()); i++)
{
if (this->children[i]->GetName() == stdfileName)
{
if(stdfileName.substr(stdfileName.size() - 2, 2) == ".h" && stdfileName.substr(0,2) == "bb")
{
bool found = false;
- for (int i = 0; i < this->blackBoxes.size(); i++)
+ for (int i = 0; i < (int)(this->blackBoxes.size()); i++)
{
if(this->blackBoxes[i]->GetHeaderFile()->GetName() == stdfileName)
{
}
}
- for (int i = 0; i < checkedBoxes.size(); i++)
+ for (int i = 0; i < (int)(checkedBoxes.size()); i++)
{
if(!checkedBoxes[i])
{
}
}
- for (int i = 0; i < checked.size(); i++)
+ for (int i = 0; i < (int)(checked.size()); i++)
{
if(!checked[i])
{