RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
00001 /* callback_output.cc 00002 Jeremy Barnes, 29 May 2011 00003 Copyright (c) 2011 Datacratic. All rights reserved. 00004 00005 */ 00006 00007 #include "callback_output.h" 00008 00009 00010 using namespace std; 00011 00012 00013 namespace Datacratic { 00014 00015 /*****************************************************************************/ 00016 /* CALLBACK OUTPUT */ 00017 /*****************************************************************************/ 00018 00019 CallbackOutput:: 00020 CallbackOutput(const Callback & callback) 00021 : callback(callback) 00022 { 00023 } 00024 00025 CallbackOutput:: 00026 ~CallbackOutput() 00027 { 00028 } 00029 00030 void 00031 CallbackOutput:: 00032 logMessage(const std::string & channel, 00033 const std::string & message) 00034 { 00035 if (callback) 00036 callback(channel, message); 00037 } 00038 00039 void 00040 CallbackOutput:: 00041 close() 00042 { 00043 } 00044 00045 } // namespace Datacratic