From a5e2adedf38f84a8be5e8d844e02991d3bbfecca Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 29 Oct 2018 22:07:17 +0100 Subject: Move files, expose include dir --- include/FileUtil.hpp | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 include/FileUtil.hpp (limited to 'include/FileUtil.hpp') diff --git a/include/FileUtil.hpp b/include/FileUtil.hpp deleted file mode 100644 index cb4e308..0000000 --- a/include/FileUtil.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include "dchat/StringView.hpp" -#include -#include - -namespace dchat -{ - class FileException : public std::runtime_error - { - public: - FileException(const std::string &errMsg) : std::runtime_error(errMsg) {} - }; - - // Throws FileException on error. - // Returned value is allocated with malloc and should be free'd by caller. - StringView getFileContent(const boost::filesystem::path &filepath); - - // Throws FileException on error - void fileReplace(const boost::filesystem::path &filepath, const StringView data); -} -- cgit v1.2.3