Aline Gondim Santos | 607635b | 2022-08-22 15:40:59 -0300 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (C) 2022 Savoir-faire Linux Inc. |
| 3 | * |
| 4 | * Author: Aline Gondim Santos <aline.gondimsantos@savoirfairelinux.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 3 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 19 | */ |
| 20 | |
| 21 | #ifndef COMMON_H |
| 22 | #define COMMON_H |
| 23 | |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 24 | #include <fstream> |
| 25 | |
Aline Gondim Santos | 607635b | 2022-08-22 15:40:59 -0300 | [diff] [blame] | 26 | #ifdef WIN32 |
| 27 | |
| 28 | #include <string> |
| 29 | |
| 30 | namespace string_utils { |
| 31 | std::wstring to_wstring(const std::string& str); |
| 32 | } // namespace string_utils |
| 33 | #endif // WIN32 |
Aline Gondim Santos | 9bd153e | 2022-08-25 10:49:23 -0300 | [diff] [blame] | 34 | |
| 35 | namespace file_utils { |
| 36 | void openStream(std::ifstream& file, const std::string& path); |
| 37 | } |
Aline Gondim Santos | 607635b | 2022-08-22 15:40:59 -0300 | [diff] [blame] | 38 | #endif // COMMON_H |