#include "leveldb/env.h"
#include <cstdarg>
#if defined(_WIN32) && defined(LEVELDB_DELETEFILE_UNDEFINED)
#undef DeleteFile
#endif
namespace leveldb {
Env::Env() = default;
Env::~Env() = default;
Status Env::NewAppendableFile(const std::string& fname, WritableFile** result) { … }
Status Env::RemoveDir(const std::string& dirname) { … }
Status Env::DeleteDir(const std::string& dirname) { … }
Status Env::RemoveFile(const std::string& fname) { … }
Status Env::DeleteFile(const std::string& fname) { … }
SequentialFile::~SequentialFile() = default;
RandomAccessFile::~RandomAccessFile() = default;
WritableFile::~WritableFile() = default;
Logger::~Logger() = default;
FileLock::~FileLock() = default;
void Log(Logger* info_log, const char* format, ...) { … }
static Status DoWriteStringToFile(Env* env, const Slice& data,
const std::string& fname, bool should_sync) { … }
Status WriteStringToFile(Env* env, const Slice& data,
const std::string& fname) { … }
Status WriteStringToFileSync(Env* env, const Slice& data,
const std::string& fname) { … }
Status ReadFileToString(Env* env, const std::string& fname, std::string* data) { … }
EnvWrapper::~EnvWrapper() { … }
}