25 #include "../system/eptexception.h"
26 #include "../system/log.h"
72 const std::string &absolute,
73 std::ios_base::openmode mode)
75 stream.open(absolute, mode);
78 LogW(
"Stream at '%s' could not be opened.", absolute.c_str());
83 LogI(
"Stream at '%s' is open.", absolute.c_str());
107 const std::string &absolute,
108 std::ios_base::openmode mode)
110 stream.open(absolute, mode);
113 LogW(
"Stream at '%s' could not be opened.", absolute.c_str());
118 LogI(
"Stream at '%s' is open.", absolute.c_str());
static FileManager & getSingleton()
FileManager::getSingleton: Get a reference to the singleton.
static std::unique_ptr< FileManager > mSingleton
Singleton unique pointer.
virtual bool open(std::ifstream &stream, const std::string &absolute, std::ios_base::openmode mode=std::ios_base::in)
Open an input stream.
Abstract singleton adapter for opening files.