OnixS C++ CME MDP Premium Market Data Handler  5.8.9
API Documentation
ImpliedBook.h
Go to the documentation of this file.
1 // Copyright Onix Solutions Limited [OnixS]. All rights reserved.
2 //
3 // This software owned by Onix Solutions Limited [OnixS] and is
4 // protected by copyright law and international copyright treaties.
5 //
6 // Access to and use of the software is governed by the terms of the applicable
7 // OnixS Software Services Agreement (the Agreement) and Customer end user license
8 // agreements granting a non-assignable, non-transferable and non-exclusive license
9 // to use the software for it's own data processing purposes under the terms defined
10 // in the Agreement.
11 //
12 // Except as otherwise granted within the terms of the Agreement, copying or
13 // reproduction of any part of this source code or associated reference material
14 // to any other location for further reproduction or redistribution, and any
15 // amendments to this copyright notice, are expressly prohibited.
16 //
17 // Any reproduction or redistribution for sale or hiring of the Software not in
18 // accordance with the terms of the Agreement is a violation of copyright law.
19 //
20 
21 #pragma once
22 
23 #include <OnixS/CME/MDH/MbpBook.h>
26 
28 
29 /// Defines implied book.
31 
32 /// Factory for implied order books.
34 
35 /// Book brief info.
37 void brief(std::string&, const ImpliedBook&);
38 
39 /// Book brief info.
40 inline std::string brief(const ImpliedBook& book)
41 {
42  std::string str;
43 
44  brief(str, book);
45 
46  return str;
47 }
48 
49 /// Serializes book.
51 void toStr(std::string&, const ImpliedBook&);
52 
53 /// Serializes book.
54 inline std::string toStr(const ImpliedBook& book)
55 {
56  std::string str;
57 
58  toStr(str, book);
59 
60  return str;
61 }
62 
63 /// Serializes book in formatted form.
65 void toFormattedStr(std::string&, const ImpliedBook&);
66 
67 /// Serializes book in formatted form.
68 inline std::string toFormattedStr(const ImpliedBook& book)
69 {
70  std::string str;
71 
72  toFormattedStr(str, book);
73 
74  return str;
75 }
76 
Base attributes of order book.
Definition: MbpBook.h:59
MbpBookFactory< ImpliedPriceLevel, MbpBookDepth > ImpliedBookFactory
Factory for implied order books.
Definition: ImpliedBook.h:33
std::string brief(const ImpliedBook &book)
Book brief info.
Definition: ImpliedBook.h:40
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Definition: Bootstrap.h:67
#define ONIXS_CMEMDH_EXPORTED
Definition: Compiler.h:160
std::string toFormattedStr(const ImpliedBook &book)
Serializes book in formatted form.
Definition: ImpliedBook.h:68
MbpBook< ImpliedPriceLevel, MbpBookDepth > ImpliedBook
Defines implied book.
Definition: ImpliedBook.h:30
std::string toStr(const ImpliedBook &book)
Serializes book.
Definition: ImpliedBook.h:54
Serves as a factory for book of given type.
Definition: MbpBook.h:245
#define ONIXS_CMEMDH_NAMESPACE_END
Definition: Bootstrap.h:68