std::getline(fileStream,word,'(');
std::vector<std::string> wordBits;
CDMUtilities::splitter::split(wordBits,word," \n",CDMUtilities::splitter::no_empties);
- if (wordBits[wordBits.size() - 1] == "main")
+ if (wordBits[wordBits.size() - 1] == "main" || wordBits[wordBits.size() - 1] == "IMPLEMENT_APP")
{
this->mainFile = dynamic_cast<modelCDMFile*>(children[i]);
}
std::getline(fileStream,word,'(');
std::vector<std::string> wordBits;
CDMUtilities::splitter::split(wordBits,word," \n",CDMUtilities::splitter::no_empties);
- if (wordBits[wordBits.size() - 1] == "main")
+ if (wordBits[wordBits.size() - 1] == "main" || wordBits[wordBits.size() - 1] == "IMPLEMENT_APP")
{
this->mainFile = file;
}