nod/lib/FileIOFILE.cpp

22 lines
341 B
C++
Raw Normal View History

2015-06-28 05:43:53 +00:00
#include <sys/stat.h>
#include <stdexcept>
#include "IFileIO.hpp"
namespace NOD
{
class FileIOFILE : public IFileIO
{
const char* filepath;
public:
FileIOFILE(const char* path)
: filepath(path)
{
struct stat theStat;
if (stat(path, &theStat))
throw std::runtime_error("unable to ");
}
};
}