![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <file_output.h>
Public Member Functions | |
| FileSink (const std::string &filename="", bool append=true, bool disambiguate=true) | |
| void | open (const std::string &filename, bool append, bool disambiguate) |
| virtual void | close () |
| virtual size_t | write (const char *data, size_t size) |
| virtual size_t | flush (FileFlushLevel flushLevel) |
Public Attributes | |
| std::string | currentFilename |
| Filename of file we're writing to. | |
| int | fd |
| File descriptor we're writing to. | |
Class that writes to a file.
Definition at line 77 of file file_output.h.
| void Datacratic::FileSink::close | ( | ) | [virtual] |
Function that closes the given sink.
Implements Datacratic::CompressingOutput::Sink.
Definition at line 191 of file file_output.cc.
| size_t Datacratic::FileSink::flush | ( | FileFlushLevel | flushLevel | ) | [virtual] |
Function that should be overwritten when the stream needs to be flushed to make sure that the data gets to disk.
Implements Datacratic::CompressingOutput::Sink.
Definition at line 228 of file file_output.cc.
| size_t Datacratic::FileSink::write | ( | const char * | data, |
| size_t | size | ||
| ) | [virtual] |
Function that should be overwritten to write data when it's output by the compressor.
Implements Datacratic::CompressingOutput::Sink.
Definition at line 211 of file file_output.cc.
1.7.6.1