#include <fake_file_writer.h>
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_ |
Definition at line 30 of file fake_file_writer.h.
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.
cartographer::io::FakeFileWriter::~FakeFileWriter | ( | ) | [override] |
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.
std::shared_ptr<std::vector<char> > cartographer::io::FakeFileWriter::content_ [private] |
Definition at line 43 of file fake_file_writer.h.
std::string cartographer::io::FakeFileWriter::filename_ [private] |
Definition at line 44 of file fake_file_writer.h.
bool cartographer::io::FakeFileWriter::is_closed_ [private] |
Definition at line 42 of file fake_file_writer.h.