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

#include <callback_output.h>

Inheritance diagram for Datacratic::CallbackOutput:
Datacratic::LogOutput

List of all members.

Public Types

typedef boost::function< void(std::string,
std::string)> 
Callback

Public Member Functions

 CallbackOutput (const Callback &callback)
virtual void logMessage (const std::string &channel, const std::string &message)
virtual void close ()

Public Attributes

Callback callback

Detailed Description

Class that passes messages to a callback.

Definition at line 22 of file callback_output.h.


Constructor & Destructor Documentation

Datacratic::CallbackOutput::CallbackOutput ( const Callback &  callback)

Create a logger with its own zeromq context.

Definition at line 20 of file callback_output.cc.


Member Function Documentation

Should close whatever resources are being used by the output and join any threads that it's created.

Implements Datacratic::LogOutput.

Definition at line 41 of file callback_output.cc.

void Datacratic::CallbackOutput::logMessage ( const std::string &  channel,
const std::string &  message 
) [virtual]

This is the method that will be called whenever we need to log a message to something.

Implements Datacratic::LogOutput.

Definition at line 32 of file callback_output.cc.


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