#include <file_writer.h>
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 | |
Private Attributes | |
const std::string | filename_ |
std::ofstream | out_ |
Definition at line 49 of file file_writer.h.
cartographer::io::StreamFileWriter::~StreamFileWriter | ( | ) | [override] |
Definition at line 25 of file file_writer.cc.
cartographer::io::StreamFileWriter::StreamFileWriter | ( | const std::string & | filename | ) |
Definition at line 22 of file file_writer.cc.
bool cartographer::io::StreamFileWriter::Close | ( | ) | [override, virtual] |
Implements cartographer::io::FileWriter.
Definition at line 35 of file file_writer.cc.
std::string cartographer::io::StreamFileWriter::GetFilename | ( | ) | [override, virtual] |
Implements cartographer::io::FileWriter.
Definition at line 52 of file file_writer.cc.
bool cartographer::io::StreamFileWriter::Write | ( | const char * | data, |
size_t | len | ||
) | [override, virtual] |
Implements cartographer::io::FileWriter.
Definition at line 27 of file file_writer.cc.
bool cartographer::io::StreamFileWriter::WriteHeader | ( | const char * | data, |
size_t | len | ||
) | [override, virtual] |
Implements cartographer::io::FileWriter.
Definition at line 43 of file file_writer.cc.
const std::string cartographer::io::StreamFileWriter::filename_ [private] |
Definition at line 61 of file file_writer.h.
std::ofstream cartographer::io::StreamFileWriter::out_ [private] |
Definition at line 62 of file file_writer.h.