RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
00001 /* banker_js.h -*- C++ -*- 00002 Jeremy Barnes, 13 January 2012 00003 Copyright (c) 2012 Datacratic. All rights reserved. 00004 00005 JS interface to the Banker class. 00006 */ 00007 00008 #ifndef __rtb__banker_js_h__ 00009 #define __rtb__banker_js_h__ 00010 00011 #include "rtb_js.h" 00012 #include "rtbkit/core/banker/banker.h" 00013 00014 namespace Datacratic { 00015 namespace JS { 00016 00017 std::shared_ptr<RTBKIT::Banker> 00018 from_js(const JSValue & value, std::shared_ptr<RTBKIT::Banker> *); 00019 00020 RTBKIT::Banker * 00021 from_js(const JSValue & value, RTBKIT::Banker **); 00022 00023 void to_js(JSValue & value, const std::shared_ptr<RTBKIT::Banker> & banker); 00024 00025 00026 } // namespace JS 00027 } // namespace Datacratic 00028 00029 00030 #endif /* __rtb__banker_js_h__ */