aboutsummaryrefslogtreecommitdiff
path: root/include/FileUtil.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-29 22:07:17 +0100
committerdec05eba <dec05eba@protonmail.com>2018-10-29 22:07:20 +0100
commita5e2adedf38f84a8be5e8d844e02991d3bbfecca (patch)
tree0663747e2b28defc2249a56ecbe194a7c8fa089b /include/FileUtil.hpp
parentb1296f2c97c6fdc1c6a9922dc09c951b5cafdc12 (diff)
Move files, expose include dir
Diffstat (limited to 'include/FileUtil.hpp')
-rw-r--r--include/FileUtil.hpp21
1 files changed, 0 insertions, 21 deletions
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 <boost/filesystem/path.hpp>
-#include <stdexcept>
-
-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);
-}