- std::string fileContent = "";
- char ch = fileStream.get();
- while(!fileStream.eof())
- {
- fileContent.push_back(ch);
- ch = fileStream.get();
- }
- fileStream.close();
-
- boost::regex expression("^\\h*IMPLEMENT_APP[#\\s\\(]");
- std::string::const_iterator start, end;
- start = fileContent.begin();
- end = fileContent.end();
- boost::match_results<std::string::const_iterator> what;
- boost::match_flag_type flags = boost::match_default;
- if(boost::regex_search(start, end, what, expression, flags))
- {
- std::cout << "found main wxwidgets file: " << stdfileName << std::endl;
- this->mainFile = file;
- }
- else
+ std::ifstream fileStream((this->path + CDMUtilities::SLASH + stdfileName).c_str());
+
+ if (fileStream.is_open())