X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FCDMUtilities.h;h=92fe3d0cbd409b2cb531711fefd252da8a77b1da;hb=96c6ccdac4c0db2047e0a7302dcb14fbfb091e3c;hp=e245450c831aaed17ad39616d0ffdab7881b8e4e;hpb=38fb78e3930c8ba01021536630624e4b0b03dd87;p=crea.git diff --git a/lib/creaDevManagerLib/CDMUtilities.h b/lib/creaDevManagerLib/CDMUtilities.h index e245450..92fe3d0 100644 --- a/lib/creaDevManagerLib/CDMUtilities.h +++ b/lib/creaDevManagerLib/CDMUtilities.h @@ -204,6 +204,13 @@ namespace CDMUtilities * @return A string with the contents of the given file. */ std::string readFile(const std::string& file_path); + /** + * Writes the given string into a file and returns whether the operation is successful. + * @param file_path Full path of the CMakeLists file. + * @param st string to write. + * @return True if the operation was successful. + */ + bool writeFile(const std::string& file_path, const std::string& st); /** * Reads a CMakeLists file and returns the read data.