RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
00001 /* slot_js.h -*- C++ -*- 00002 Jeremy Barnes, 26 November 2010 00003 Copyright (c) 2010 Datacratic. All rights reserved. 00004 00005 JS wrapper for the slot class. 00006 */ 00007 00008 #pragma once 00009 00010 #include "soa/sigslot/slot.h" 00011 #include "soa/js/js_value.h" 00012 00013 namespace Datacratic { 00014 namespace JS { 00015 00016 extern const char * const sigslotModule; 00017 00018 Slot * from_js(const JSValue & val, Slot ** = 0); 00019 std::shared_ptr<Slot> 00020 from_js(const JSValue & val, std::shared_ptr<Slot>* = 0); 00021 00022 void to_js(JS::JSValue & value, const std::shared_ptr<Slot> &); 00023 void to_js(JS::JSValue & value, const Slot &); 00024 00025 00026 } // namespace JS 00027 } // namespace Datacratic