16 std::remove(path.c_str());
28 if (access(path.c_str(), 0) == 0)
37 m_file = _fsopen(path.c_str(), fmode.c_str(), shflag);
38 return (
m_file != NULL ? 0 : 1);
43 return fwrite(data, element_size, nelement,
m_file);
48 return fread(data, element_size, nelement,
m_file);
64 return fseek(
m_file, offset, whence);
69 return _chsize(fileno(
m_file), 0);
size_t read(void *data, size_t element_size, size_t nelement)
int open(const std::string &path, Mode mode, int shflag)
size_t write(const void *data, size_t element_size, size_t nelement)
static void removeFile(const std::string &path)
int seek(int64_t offset, int whence)
void setLoggerName(const std::string &logger_name)