OnixS C++ MTS Cash SDP Handler 1.9.3
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
28
29namespace OnixS {
30namespace Mts {
31namespace Cash {
32namespace SDP {
33
34class Class;
35struct ReplayOptions;
36
37template <typename TResultEnum>
39{
41 TResultEnum result;
42
45};
46
49
52
55
57class ONIXS_MTS_CASH_SDP_API Handler
58{
59public:
64 Handler (const HandlerSettings& settings);
65
66 virtual ~Handler();
67
87 void connect (const ConnectionSettings& connectionSettings, const LogonSettings& logonSettings, const std::string& hostName, UInt16 port, const std::string& localNetworkInterface = "");
88
92 void disconnect ();
93
97
99 void replay(const ReplayOptions& options);
100
108
118
121
129
136 UInt32 act(ActionType::Enum actionType, Class* msg, bool dataInResponse = false);
137
140 UInt32 addFilter(UInt32 filterId, const std::string& value);
141
144 CreateFilterResponse createFilter(FilterId::Enum filterId, const std::string& value);
145
148 SetFilterResponse setFilter(UInt32 filterKey, const std::string& value);
149
153
159
165
171
177
183
189
195
201
207
211
214 void log (LogLevel::Enum logLevel, const char* logMessage, size_t length);
215
218 void log (LogLevel::Enum logLevel, const char* logMessage);
219
222 void log (LogLevel::Enum logLevel, const std::string& str);
223
226 const std::string& licenseExpirationDate () const;
227
230 static const std::string version ();
231
232private:
233 Handler (const Handler&); // no implementation
234 Handler& operator = (const Handler&); // no implementation
235
236private:
237 struct Impl;
238 Impl* impl_;
239};
240}
241}
242}
243}
void registerWarningListener(WarningListener *listener)
SetFilterResponse setFilter(UInt32 filterKey, const std::string &value)
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
DestroyFilterResponse destroyFilter(UInt32 filterKey)
void log(LogLevel::Enum logLevel, const char *logMessage)
CreateFilterResponse createFilter(FilterId::Enum filterId, const std::string &value)
void subscribe(ClassId::Enum classId, SubscribeType::Enum subscribeType=SubscribeType::All)
FilterResponse< SetFilterResult::Enum > SetFilterResponse
Definition Handler.h:51
unsigned int UInt32
Definition Defines.h:46
FilterResponse< CreateFilterResult::Enum > CreateFilterResponse
Definition Handler.h:48
FilterResponse< DestroyFilterResult::Enum > DestroyFilterResponse
Definition Handler.h:54
unsigned short UInt16
Definition Defines.h:45
Defines ONIXS_CBOECFE_PITCH_API which affect logs replay.
Definition Replay.h:57