PLaSK library
Loading...
Searching...
No Matches
system.hpp
Go to the documentation of this file.
1/*
2 * This file is part of PLaSK (https://plask.app) by Photonics Group at TUL
3 * Copyright (c) 2022 Lodz University of Technology
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14#ifndef PLASK__SYSTEM_H
15#define PLASK__SYSTEM_H
16
21#include <string>
22#include <plask/config.hpp> //for PLASK_API
23
24namespace plask {
25
26#if defined(_MSC_VER) || defined(__MINGW32__)
27constexpr char FILE_PATH_SEPARATOR = '\\';
28#else
29constexpr char FILE_PATH_SEPARATOR = '/';
30#endif
31
36PLASK_API std::string exePathAndName();
37
42PLASK_API std::string exePath();
43
48PLASK_API std::string prefixPath();
49
56PLASK_API std::string plaskLibPath();
57
63PLASK_API std::string plaskSolversPath(const std::string &category);
64
69PLASK_API std::string plaskMaterialsPath();
70
71}
72
73#endif // SYSTEM_H