X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fcore%2Ffunctions.hpp;h=78fe13bed02376b3181098c63e167ecadd8a675c;hp=58b8cd882bcc84380996007b12661273b4ceae82;hb=415985b3f67878c2e3cee785a0b1cb36f4eff901;hpb=227446df961ead723c8f2b04ea53d99c770a438f diff --git a/include/anna/core/functions.hpp b/include/anna/core/functions.hpp index 58b8cd8..78fe13b 100644 --- a/include/anna/core/functions.hpp +++ b/include/anna/core/functions.hpp @@ -1119,6 +1119,17 @@ struct functions { * @return Returns decoded representation */ static std::string decodeBase64(const std::string & encodedString); + + + /* + * Reads a file into passed string + * + * @param pathfile Path file to read + * @param content String where file content is dump + * + * @return success for read operation + */ + static bool getContentFromFile(const std::string &pathfile, std::string &content) throw(anna::RuntimeException); }; }