Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
local_io.hh
Go to the documentation of this file.
1 #pragma once
2 #include <string>
3 #include <cstdint>
4 
5 namespace eclipse {
6 
11 class Local_io {
12  public:
13  void write(const std::string&, const std::string&);
14  void update(const std::string&, const std::string&, uint32_t, uint32_t);
15  std::string read(const std::string&);
16  std::string read(const std::string&, uint32_t, uint32_t);
17  std::string read(const std::string&, uint32_t, uint32_t, bool);
18  std::string read_metadata();
19  void remove(const std::string&);
20  bool format();
21 
22  Local_io();
23 
24  private:
25  std::string disk_path;
26 };
27 
28 }
Local_io()
Definition: local_io.cc:14
Represents the local disk.
Definition: local_io.hh:11
std::string read_metadata()
Definition: local_io.cc:96
void write(const std::string &, const std::string &)
Unbuffered write to disk.
Definition: local_io.cc:20
void update(const std::string &, const std::string &, uint32_t, uint32_t)
Definition: local_io.cc:60
bool format()
Definition: local_io.cc:106
std::string read(const std::string &)