OnixS C++ MTS Bond Vision SDP Handler 1.5.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
70 void connect (const ConnectionSettings& connectionSettings, const LogonSettings& logonSettings, const std::string& hostName, UInt16 port, const std::string& localNetworkInterface = "");
71
75 void disconnect ();
76
80
82 void replay(const ReplayOptions& options);
83
91
103
106
114
125 UInt32 act(ActionType::Enum actionType, Class* msg, bool dataInResponse = false);
126
129 UInt32 addFilter(UInt32 filterId, const std::string& value);
130
136
142
148
154
160
166
172
178
184
188
191 void log (LogLevel::Enum logLevel, const char* logMessage, size_t length);
192
195 void log (LogLevel::Enum logLevel, const char* logMessage);
196
199 void log (LogLevel::Enum logLevel, const std::string& str);
200
203 const std::string& licenseExpirationDate () const;
204
207 static const std::string version ();
208
209private:
210 Handler (const Handler&); // no implementation
211 Handler& operator = (const Handler&); // no implementation
212
213private:
214 struct Impl;
215 Impl* impl_;
216};
217}
218}
219}
220}
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