17 #ifndef CARTOGRAPHER_IO_FILE_WRITER_H_ 18 #define CARTOGRAPHER_IO_FILE_WRITER_H_ 41 virtual bool WriteHeader(
const char* data,
size_t len) = 0;
43 virtual bool Write(
const char* data,
size_t len) = 0;
44 virtual bool Close() = 0;
54 bool Write(
const char* data,
size_t len)
override;
55 bool WriteHeader(
const char* data,
size_t len)
override;
56 bool Close()
override;
63 std::function<std::unique_ptr<FileWriter>(
const string& filename)>;
68 #endif // CARTOGRAPHER_IO_FILE_WRITER_H_
std::function< std::unique_ptr< FileWriter >(const string &filename)> FileWriterFactory
FileWriter & operator=(const FileWriter &)=delete
virtual bool WriteHeader(const char *data, size_t len)=0
virtual bool Write(const char *data, size_t len)=0