diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-06-02 16:10:02 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-06-02 16:10:02 +0100 |
commit | cdf7ec3c2db385f2beb6e564220e9ade7dec8fba (patch) | |
tree | 777e88e82494d7c162f78bb7bc2504bdb3abd088 /yage/core/iomanager.cpp | |
parent | 74b12b499b399507ac0236a2d5f432a8f5d8d52f (diff) | |
download | YAGE-cdf7ec3c2db385f2beb6e564220e9ade7dec8fba.tar.gz YAGE-cdf7ec3c2db385f2beb6e564220e9ade7dec8fba.zip |
Adding modeline
Diffstat (limited to 'yage/core/iomanager.cpp')
-rw-r--r-- | yage/core/iomanager.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/yage/core/iomanager.cpp b/yage/core/iomanager.cpp index b4e6847e..ff920f97 100644 --- a/yage/core/iomanager.cpp +++ b/yage/core/iomanager.cpp @@ -1,4 +1,5 @@ /** --------------------------------------------------------------------------- + * -*- c++ -*- * @file: iomanager.cpp * * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> @@ -9,16 +10,17 @@ #include <yage/core/iomanager.h> #include <fstream> -#include <stdexcept> #include <regex> +#include <stdexcept> namespace yage { -namespace IoManager { +namespace IoManager +{ bool readFileToBuffer(const std::string &file_path, - std::vector<unsigned char> &buffer) + std::vector<unsigned char> &buffer) { std::ifstream file(file_path, std::ios::binary); if (!file.is_open()) { @@ -42,6 +44,6 @@ bool readFileToBuffer(const std::string &file_path, return true; } -} +} // namespace IoManager } // namespace yage |