<p>Am 21.11.2016 11:40 schrieb "Alfred" <<a href="mailto:alfred@consulab.nl">alfred@consulab.nl</a>>:<br>
> c++ code.</p>
<p>Comments added inline.</p>
<p>><br>
> findFile(path):<br>
> Options::FileInfo Options::findFile(const std::string &path) const<br>
> calls:</p>
<p>You should check before this call whether the file exists. "tbdInfo.checkFileExists(*this, path.c_str());" should do it and then you need to fill the result and return it.</p>
<p>> if ( findFile(path, {".tbd"}, result) )<br>
> return result;<br>
><br>
> findFile(path,{...},result):<br>
> bool Options::findFile(const std::string &path, const std::vector<std::string> &tbdExtensions, FileInfo& result) const<br>
> calls<br>
> for ( const auto &ext : tbdExtensions ) {<br>
> auto newPath = replace_extension(path, ext);<br>
> bool found = tbdInfo.checkFileExists(*this, newPath.c_str());<br>
> }<br>
></p>
<p>Regards,<br>
Sven</p>