17 #ifndef CARTOGRAPHER_IO_FAKE_FILE_WRITER_H_ 18 #define CARTOGRAPHER_IO_FAKE_FILE_WRITER_H_ 33 std::shared_ptr<std::vector<char>> content);
36 bool WriteHeader(
const char* data,
size_t len)
override;
37 bool Write(
const char* data,
size_t len)
override;
38 bool Close()
override;
50 #endif // CARTOGRAPHER_IO_FAKE_FILE_WRITER_H_
FakeFileWriter(const std::string &filename, std::shared_ptr< std::vector< char >> content)
std::shared_ptr< std::vector< char > > content_
bool Write(const char *data, size_t len) override
bool WriteHeader(const char *data, size_t len) override
~FakeFileWriter() override=default
std::string GetFilename() override