Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
Loading...
Searching...
No Matches
filesystemCommon.hpp
Go to the documentation of this file.
1
10#include <iostream>
11#include <vector>
12#include <random>
13#include <bitset>
14#include <cstring>
15#include <fstream>
16#include <cstdio>
17#include <filesystem>
18#include <string>
19
20#ifndef FILESYSTEM_COMMON_LIBRARY
21#define FILESYSTEM_COMMON_LIBRARY
22
30{
31public:
39 static std::string getLastDirectoryName(const std::string &path);
40
48 static std::string getProgramFolderPath(std::string programName);
49
56 static void createDirectoryIfNotExists(const std::string &path);
57};
58
59#endif // FILESYSTEM_COMMON_LIBRARY
A utility class providing functions to handle files and directories.
Definition filesystemCommon.hpp:30
static std::string getProgramFolderPath(std::string programName)
Get the program folder path.
Definition filesystemCommon.cpp:18
static std::string getLastDirectoryName(const std::string &path)
Get the last directory name from a given path.
Definition filesystemCommon.cpp:12
static void createDirectoryIfNotExists(const std::string &path)
Create a directory at the given path if it does not already exist.
Definition filesystemCommon.cpp:23