17 #ifndef CARTOGRAPHER_IO_PROTO_STREAM_H_ 18 #define CARTOGRAPHER_IO_PROTO_STREAM_H_ 24 #include "google/protobuf/message.h" 43 void WriteProto(
const google::protobuf::Message& proto)
override;
44 bool Close()
override;
47 void Write(
const std::string& uncompressed_data);
61 bool ReadProto(google::protobuf::Message* proto)
override;
62 bool eof()
const override;
65 bool Read(std::string* decompressed_data);
73 #endif // CARTOGRAPHER_IO_PROTO_STREAM_H_ ProtoStreamWriter & operator=(const ProtoStreamWriter &)=delete
ProtoStreamWriter(const std::string &filename)
void Write(const std::string &uncompressed_data)
~ProtoStreamWriter()=default
void WriteProto(const google::protobuf::Message &proto) override