Public Member Functions | Private Member Functions | Private Attributes | List of all members
cartographer::io::ProtoStreamWriter Class Reference

#include <proto_stream.h>

Inheritance diagram for cartographer::io::ProtoStreamWriter:
Inheritance graph
[legend]

Public Member Functions

bool Close () override
 
ProtoStreamWriteroperator= (const ProtoStreamWriter &)=delete
 
 ProtoStreamWriter (const std::string &filename)
 
 ProtoStreamWriter (const ProtoStreamWriter &)=delete
 
void WriteProto (const google::protobuf::Message &proto) override
 
 ~ProtoStreamWriter ()=default
 
- Public Member Functions inherited from cartographer::io::ProtoStreamWriterInterface
virtual ~ProtoStreamWriterInterface ()
 

Private Member Functions

void Write (const std::string &uncompressed_data)
 

Private Attributes

std::ofstream out_
 

Detailed Description

Definition at line 35 of file proto_stream.h.

Constructor & Destructor Documentation

◆ ProtoStreamWriter() [1/2]

cartographer::io::ProtoStreamWriter::ProtoStreamWriter ( const std::string &  filename)

Definition at line 46 of file proto_stream.cc.

◆ ~ProtoStreamWriter()

cartographer::io::ProtoStreamWriter::~ProtoStreamWriter ( )
default

◆ ProtoStreamWriter() [2/2]

cartographer::io::ProtoStreamWriter::ProtoStreamWriter ( const ProtoStreamWriter )
delete

Member Function Documentation

◆ Close()

bool cartographer::io::ProtoStreamWriter::Close ( )
overridevirtual

Implements cartographer::io::ProtoStreamWriterInterface.

Definition at line 64 of file proto_stream.cc.

◆ operator=()

ProtoStreamWriter& cartographer::io::ProtoStreamWriter::operator= ( const ProtoStreamWriter )
delete

◆ Write()

void cartographer::io::ProtoStreamWriter::Write ( const std::string &  uncompressed_data)
private

Definition at line 51 of file proto_stream.cc.

◆ WriteProto()

void cartographer::io::ProtoStreamWriter::WriteProto ( const google::protobuf::Message &  proto)
overridevirtual

Implements cartographer::io::ProtoStreamWriterInterface.

Definition at line 58 of file proto_stream.cc.

Member Data Documentation

◆ out_

std::ofstream cartographer::io::ProtoStreamWriter::out_
private

Definition at line 49 of file proto_stream.h.


The documentation for this class was generated from the following files:


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:59