| 143 | } |
| 144 | |
| 145 | bool fillFileStemsList(const std::string& path, |
| 146 | std::vector<std::string>& listFiles, |
| 147 | const std::string& fileExtension) |
| 148 | { |
| 149 | const boost::filesystem::path dir_path(path); |
| 150 | if (!boost::filesystem::exists(dir_path)) |
| 151 | return false; |
| 152 | boost::filesystem::directory_iterator end_itr; |
| 153 | for (boost::filesystem::directory_iterator itr(dir_path); itr != end_itr; ++itr ) |
| 154 | { |
| 155 | if(!boost::filesystem::is_directory(itr->status())) |
| 156 | { |
| 157 | if(itr->path().filename().extension().string() == fileExtension) |
| 158 | listFiles.push_back(itr->path().filename().stem().string()); |
| 159 | } |
| 160 | } |
| 161 | return true; |
| 162 | } |
| 163 | |
| 164 | bool readFileWithoutComments(const std::string& fileName, std::stringstream& stream) |
| 165 | { |