Public Member Functions | Private Attributes
cartographer::io::FakeFileWriter Class Reference

#include <fake_file_writer.h>

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

List of all members.

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

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

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.


Member Function Documentation

bool cartographer::io::FakeFileWriter::Close ( ) [override, virtual]

Implements cartographer::io::FileWriter.

Definition at line 37 of file fake_file_writer.cc.

std::string cartographer::io::FakeFileWriter::GetFilename ( ) [override, virtual]

Implements cartographer::io::FileWriter.

Definition at line 52 of file fake_file_writer.cc.

bool cartographer::io::FakeFileWriter::Write ( const char *  data,
size_t  len 
) [override, virtual]

Implements cartographer::io::FileWriter.

Definition at line 31 of file fake_file_writer.cc.

bool cartographer::io::FakeFileWriter::WriteHeader ( const char *  data,
size_t  len 
) [override, virtual]

Implements cartographer::io::FileWriter.

Definition at line 43 of file fake_file_writer.cc.


Member Data Documentation

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

Definition at line 43 of file fake_file_writer.h.

Definition at line 44 of file fake_file_writer.h.

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 Thu May 9 2019 02:27:36