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

#include <file_writer.h>

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

Public Member Functions

bool Close () override
 
std::string GetFilename () override
 
 StreamFileWriter (const std::string &filename)
 
bool Write (const char *data, size_t len) override
 
bool WriteHeader (const char *data, size_t len) override
 
 ~StreamFileWriter () override
 
- Public Member Functions inherited from cartographer::io::FileWriter
 FileWriter ()
 
 FileWriter (const FileWriter &)=delete
 
FileWriteroperator= (const FileWriter &)=delete
 
virtual ~FileWriter ()
 

Private Attributes

const std::string filename_
 
std::ofstream out_
 

Detailed Description

Definition at line 49 of file file_writer.h.

Constructor & Destructor Documentation

◆ ~StreamFileWriter()

cartographer::io::StreamFileWriter::~StreamFileWriter ( )
override

Definition at line 25 of file file_writer.cc.

◆ StreamFileWriter()

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

Definition at line 22 of file file_writer.cc.

Member Function Documentation

◆ Close()

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

Implements cartographer::io::FileWriter.

Definition at line 35 of file file_writer.cc.

◆ GetFilename()

std::string cartographer::io::StreamFileWriter::GetFilename ( )
overridevirtual

Implements cartographer::io::FileWriter.

Definition at line 52 of file file_writer.cc.

◆ Write()

bool cartographer::io::StreamFileWriter::Write ( const char *  data,
size_t  len 
)
overridevirtual

Implements cartographer::io::FileWriter.

Definition at line 27 of file file_writer.cc.

◆ WriteHeader()

bool cartographer::io::StreamFileWriter::WriteHeader ( const char *  data,
size_t  len 
)
overridevirtual

Implements cartographer::io::FileWriter.

Definition at line 43 of file file_writer.cc.

Member Data Documentation

◆ filename_

const std::string cartographer::io::StreamFileWriter::filename_
private

Definition at line 61 of file file_writer.h.

◆ out_

std::ofstream cartographer::io::StreamFileWriter::out_
private

Definition at line 62 of file file_writer.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