RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
js/bid_request_js.h
00001 /* request_js.h                                                    -*- C++ -*-
00002    Jeremy Barnes, 6 April 2011
00003    Copyright (c) 2011 Datacratic.  All rights reserved.
00004 
00005    Javascript bindings for the Bid Request.
00006 */
00007 
00008 #pragma once
00009 
00010 #include "rtb_js.h"
00011 #include "rtbkit/common/bid_request.h"
00012 
00013 namespace Datacratic {
00014 namespace JS {
00015 
00016 using namespace RTBKIT;
00017 
00018 extern const char * const bidRequestModule;
00019 
00020 void to_js(JS::JSValue & value, const std::shared_ptr<BidRequest> & br);
00021 
00022 std::shared_ptr<BidRequest>
00023 getBidRequestSharedPointer(const JS::JSValue &);
00024 
00025 std::shared_ptr<BidRequest>
00026 from_js(const JSValue & value, std::shared_ptr<BidRequest> *);
00027 
00028 std::shared_ptr<BidRequest>
00029 from_js_ref(const JSValue & value, std::shared_ptr<BidRequest> *);
00030 
00031 BidRequest *
00032 from_js(const JSValue & value, BidRequest **);
00033 
00034 std::shared_ptr<AdSpot>
00035 from_js(const JSValue & value, std::shared_ptr<AdSpot> *);
00036 
00037 AdSpot *
00038 from_js(const JSValue & value, AdSpot **);
00039 
00040 
00041 void to_js(JS::JSValue & value, const std::shared_ptr<SegmentList> & br);
00042 
00043 std::shared_ptr<SegmentList>
00044 from_js(const JSValue & value, std::shared_ptr<SegmentList> *);
00045 
00046 std::shared_ptr<SegmentList>
00047 from_js_ref(const JSValue & value, std::shared_ptr<SegmentList> *);
00048 
00049 SegmentList *
00050 from_js(const JSValue & value, SegmentList **);
00051 
00052 SegmentList
00053 from_js(const JSValue & value, SegmentList *);
00054 
00055 
00056 void to_js(JS::JSValue & value, const UserIds & uids);
00057 
00058 UserIds 
00059 from_js(const JSValue & value, UserIds *);
00060 
00061 void to_js(JS::JSValue & value, const Format & f);
00062 
00063 } // namespace JS
00064 } // namespace Datacratic
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator