#ifndef IFS_PRELOAD_CTX_HPP #define IFS_PRELOAD_CTX_HPP #include #include #include class PreloadContext { private: PreloadContext() = default; std::shared_ptr log_; std::string mountdir_; public: static PreloadContext* getInstance() { static PreloadContext instance; return &instance; } PreloadContext(PreloadContext const&) = delete; void operator=(PreloadContext const&) = delete; void log(std::shared_ptr logger); std::shared_ptr log() const; void mountdir(const std::string& path); std::string mountdir() const; }; #endif //IFS_PRELOAD_CTX_HPP