From d9090882cae78695765204a3e1b60c6a9bf27977 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 9 Dec 2017 02:43:02 +0100 Subject: Added ninja backend, very simple project works --- include/Conf.hpp | 10 ++++++++++ include/FileUtil.hpp | 1 + 2 files changed, 11 insertions(+) (limited to 'include') diff --git a/include/Conf.hpp b/include/Conf.hpp index c27046b..8b98189 100644 --- a/include/Conf.hpp +++ b/include/Conf.hpp @@ -6,6 +6,7 @@ #include "utils.hpp" #include #include +#include namespace sibs { @@ -55,6 +56,15 @@ namespace sibs class Parser; + class ParserException : public std::runtime_error + { + public: + ParserException(const std::string &errMsg) : runtime_error(errMsg) + { + + } + }; + class ConfigCallback { friend class Parser; diff --git a/include/FileUtil.hpp b/include/FileUtil.hpp index 345c72a..4083cb1 100644 --- a/include/FileUtil.hpp +++ b/include/FileUtil.hpp @@ -20,6 +20,7 @@ namespace sibs FileType getFileType(const char *path); void walkDirFiles(const char *directory, FileWalkCallbackFunc callbackFunc); Result getFileContent(const char *filepath); + bool fileOverwrite(const char *filepath, StringView data); } #endif //SIBS_FILEUTIL_HPP -- cgit v1.2.3