Mercurial Hosting > traffic-intelligence
diff include/utils.hpp @ 1002:6c5ce3ec497e
improved handling of path for feature based tracking
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 01 Jun 2018 17:19:24 -0400 |
parents | bee0e7407af7 |
children |
line wrap: on
line diff
--- a/include/utils.hpp Wed May 30 14:44:08 2018 -0400 +++ b/include/utils.hpp Fri Jun 01 17:19:24 2018 -0400 @@ -18,6 +18,9 @@ * Warning: returns an empty string if all the lines to the end of the file are comments. */ std::string getlineComment(std::ifstream& f); +/** Get relative filename if not absolute */ +std::string getRelativeFilename(const std::string& parentDirname, const std::string& filename); + /** Converts a string to an integer. */ int toInt(const std::string& s);