OnixS C++ LSE GTP Market Data Handler 1.0.6
API documentation
Loading...
Searching...
No Matches
WatchService.h
Go to the documentation of this file.
1/*
2* Copyright Onix Solutions Limited [OnixS]. All rights reserved.
3*
4* This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
5* and international copyright treaties.
6*
7* Access to and use of the software is governed by the terms of the applicable ONIXS Software
8* Services Agreement (the Agreement) and Customer end user license agreements granting
9* a non-assignable, non-transferable and non-exclusive license to use the software
10* for it's own data processing purposes under the terms defined in the Agreement.
11*
12* Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
13* of this source code or associated reference material to any other location for further reproduction
14* or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15*
16* Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17* the terms of the Agreement is a violation of copyright law.
18 */
19
20#pragma once
21
25#include <OnixS/LSE/MarketData/GTP/CompilerDetection.h>
26
27#include <string>
28
29namespace OnixS
30{
31 namespace LSE
32 {
33 namespace MarketData
34 {
35 namespace GTP
36 {
38 class ONIXS_LSE_GTP_API WatchService
39 {
40 public:
43
45 const char* id() const;
46
48 virtual ~WatchService();
49
50 protected:
52
53 private:
54 void* const impl_;
55 friend struct FeHelper;
56 };
57
59 class ONIXS_LSE_GTP_API UtcWatch : public WatchService
60 {
61 public:
63 static UtcWatch& service();
64
67
68 private:
69 UtcWatch();
70 };
71
79 class ONIXS_LSE_GTP_API NicWatch : public WatchService
80 {
81 public:
83 static NicWatch& service();
84
87
88 private:
89 NicWatch();
90 };
91 }
92 }
93 }
94}
95
#define ONIXS_LSE_GTP_OVERRIDE
Definition Compiler.h:123
#define ONIXS_LSE_GTP_NOTHROW
Definition Compiler.h:118
static NicWatch & service()
Returns watch service.
~NicWatch() ONIXS_LSE_GTP_OVERRIDE
Represents time point without time-zone information.
Definition Time.h:482
static UtcWatch & service()
Returns watch service.
~UtcWatch() ONIXS_LSE_GTP_OVERRIDE
WatchService(void *impl) ONIXS_LSE_GTP_NOTHROW
Timestamp now()
Returns current UTC time.
const char * id() const
Identifies watch service.