| 1 | #ifndef COMMON_HH |
| 2 | #define COMMON_HH |
| 3 | |
| 4 | #include <vector> |
| 5 | #include <string> |
| 6 | |
| 7 | #include <sys/stat.h> |
| 8 | |
| 9 | class Common { |
| 10 | public: |
| 11 | static std::string getbasedir(bool trailing); |
| 12 | static std::string getlang(); |
| 13 | int mkdir_r(const std::string &path, mode_t mode); |
| 14 | void tmpcopy(const std::string &inpath, const std::string &outpath); |
| 15 | static std::vector<std::string> explode(const std::string &str, char delimiter); |
| 16 | }; |
| 17 | |
| 18 | #endif |