RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes
Datacratic::FileSink Struct Reference

#include <file_output.h>

Inheritance diagram for Datacratic::FileSink:
Datacratic::CompressingOutput::Sink

List of all members.

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.

Detailed Description

Class that writes to a file.

Definition at line 77 of file file_output.h.


Member Function Documentation

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.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator