X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FCDMUtilities.h;h=e245450c831aaed17ad39616d0ffdab7881b8e4e;hb=38fb78e3930c8ba01021536630624e4b0b03dd87;hp=f807d3262b59df22e837f09a8d71834e28655a02;hpb=9877d27eb9a1339d97bc8e13ec5f1f75a5dc9e3f;p=crea.git diff --git a/lib/creaDevManagerLib/CDMUtilities.h b/lib/creaDevManagerLib/CDMUtilities.h index f807d32..e245450 100644 --- a/lib/creaDevManagerLib/CDMUtilities.h +++ b/lib/creaDevManagerLib/CDMUtilities.h @@ -198,6 +198,13 @@ namespace CDMUtilities */ typedef std::vector CMLFile; + /** + * Reads a file as string and returns the read data. + * @param file_path Full path of the CMakeLists file. + * @return A string with the contents of the given file. + */ + std::string readFile(const std::string& file_path); + /** * Reads a CMakeLists file and returns the read data. * @param file_path Full path of the CMakeLists file. @@ -213,6 +220,11 @@ namespace CDMUtilities */ bool writeCMLFile(const std::string& file_path, const CMLFile& data); + /** + * @param st Strips all space character at the beginning and at the end of the string. + */ + void normalizeStr(std::string& st); + }; #endif /* CDMUTILITIES_H_ */