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

#include <fake_file_writer.h>

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

Public Member Functions

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

Private Attributes

std::shared_ptr< std::vector< char > > content_
 
std::string filename_
 
bool is_closed_
 

Detailed Description

Definition at line 30 of file fake_file_writer.h.

Constructor & Destructor Documentation

◆ FakeFileWriter()

cartographer::io::FakeFileWriter::FakeFileWriter ( const std::string &  filename,
std::shared_ptr< std::vector< char >>  content 
)

Definition at line 25 of file fake_file_writer.cc.

◆ ~FakeFileWriter()

cartographer::io::FakeFileWriter::~FakeFileWriter ( )
overridedefault

Member Function Documentation

◆ Close()

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

Implements cartographer::io::FileWriter.

Definition at line 37 of file fake_file_writer.cc.

◆ GetFilename()

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

Implements cartographer::io::FileWriter.

Definition at line 52 of file fake_file_writer.cc.

◆ Write()

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

Implements cartographer::io::FileWriter.

Definition at line 31 of file fake_file_writer.cc.

◆ WriteHeader()

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

Implements cartographer::io::FileWriter.

Definition at line 43 of file fake_file_writer.cc.

Member Data Documentation

◆ content_

std::shared_ptr<std::vector<char> > cartographer::io::FakeFileWriter::content_
private

Definition at line 43 of file fake_file_writer.h.

◆ filename_

std::string cartographer::io::FakeFileWriter::filename_
private

Definition at line 44 of file fake_file_writer.h.

◆ is_closed_

bool cartographer::io::FakeFileWriter::is_closed_
private

Definition at line 42 of file fake_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