28 lines
619 B
C++
28 lines
619 B
C++
#ifndef PROCESS_FILESYSTEM_HPP
|
|
#define PROCESS_FILESYSTEM_HPP
|
|
|
|
#include <fstream>
|
|
#include <memory>
|
|
|
|
namespace process {
|
|
class Filesystem {
|
|
public:
|
|
Filesystem() = default;
|
|
|
|
Filesystem(const Filesystem&) = default;
|
|
|
|
virtual ~Filesystem() noexcept = default;
|
|
|
|
Filesystem& operator=(const Filesystem&) & = default;
|
|
|
|
Filesystem& operator=(Filesystem&&) & = default;
|
|
|
|
Filesystem(Filesystem&&) = default;
|
|
|
|
[[nodiscard]] virtual std::shared_ptr<std::istream> open_read(const std::string& path) const;
|
|
|
|
[[nodiscard]] virtual uint32_t get_folder_size(const std::string& path) const;
|
|
};
|
|
}
|
|
|
|
#endif
|