OnixS C++ MTS Bond Vision SDP Handler 1.3.0
API documentation
Loading...
Searching...
No Matches
Handler.h
Go to the documentation of this file.
1#pragma once
2/*
3* Copyright Onix Solutions Limited [OnixS]. All rights reserved.
4*
5* This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
6* and international copyright treaties.
7*
8* Access to and use of the software is governed by the terms of the applicable ONIXS Software
9* Services Agreement (the Agreement) and Customer end user license agreements granting
10* a non-assignable, non-transferable and non-exclusive license to use the software
11* for it's own data processing purposes under the terms defined in the Agreement.
12*
13* Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
14* of this source code or associated reference material to any other location for further reproduction
15* or redistribution, and any amendments to this copyright notice, are expressly prohibited.
16*
17* Any reproduction or redistribution for sale or hiring of the Software not in accordance with
18* the terms of the Agreement is a violation of copyright law.
19*/
20
27
28namespace OnixS {
29namespace Mts {
30namespace BondVision {
31namespace SDP {
32
33class Class;
34struct ReplayOptions;
35
38class ONIXS_MTS_BONDVISION_SDP_API Handler
39{
40public:
45 Handler (const HandlerSettings& settings);
46
47 virtual ~Handler();
48
68 void connect (const ConnectionSettings& connectionSettings, const LogonSettings& logonSettings, const std::string& hostName, UInt16 port, const std::string& localNetworkInterface = "");
69
73 void disconnect ();
74
78
80 void replay(const ReplayOptions& options);
81
89
99
102
110
117 UInt32 act(ActionType::Enum actionType, Class* msg, bool dataInResponse = false);
118
121 UInt32 addFilter(UInt32 filterId, const std::string& value);
122
128
134
140
146
152
158
164
170
176
180
183 void log (LogLevel::Enum logLevel, const char* logMessage, size_t length);
184
187 void log (LogLevel::Enum logLevel, const char* logMessage);
188
191 void log (LogLevel::Enum logLevel, const std::string& str);
192
195 const std::string& licenseExpirationDate () const;
196
199 static const std::string version ();
200
201private:
202 Handler (const Handler&); // no implementation
203 Handler& operator = (const Handler&); // no implementation
204
205private:
206 struct Impl;
207 Impl* impl_;
208};
209}
210}
211}
212}
void registerWarningListener(WarningListener *listener)
void registerClassListener(ClassListener *listener)
void registerHandlerStateListener(HandlerStateListener *listener)
void unsubscribe(ClassId::Enum classId)
void registerAdminMessageListener(AdminMessageListener *listener)
void registerErrorListener(ErrorListener *listener)
UInt32 act(ActionType::Enum actionType, Class *msg, bool dataInResponse=false)
void log(LogLevel::Enum logLevel, const std::string &str)
void replay(const ReplayOptions &options)
Replays previously logged data.
void connect(const ConnectionSettings &connectionSettings, const LogonSettings &logonSettings, const std::string &hostName, UInt16 port, const std::string &localNetworkInterface="")
void registerSessionListener(SessionListener *listener)
void registerServiceAddressInformationListener(ServiceAddressInformationListener *listener)
void log(LogLevel::Enum logLevel, const char *logMessage, size_t length)
void registerActResultListener(ActResultListener *listener)
Handler(const HandlerSettings &settings)
void registerSubscriptionListener(SubscriptionListener *listener)
UInt32 addFilter(UInt32 filterId, const std::string &value)
void subscribeFiltered(ClassId::Enum classId, UInt32 filterKey, SubscribeType::Enum subscribeType=SubscribeType::All)
subscribe to market information with filter
const std::string & licenseExpirationDate() const
static const std::string version()
HandlerState::Enum state() const
void log(LogLevel::Enum logLevel, const char *logMessage)
void subscribe(ClassId::Enum classId, SubscribeType::Enum subscribeType=SubscribeType::All)
unsigned short UInt16
Definition Defines.h:45
Defines ONIXS_CBOECFE_PITCH_API which affect logs replay.
Definition Replay.h:57