OnixS C++ CME MDP Premium Market Data Handler 5.10.2
Users' manual and API documentation
Loading...
Searching...
No Matches
Watch.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
25
26#include <OnixS/CME/MDH/Auxiliary/DeprecatedHeaderWarnings.Disable.h>
28#include <OnixS/CME/MDH/Time.h>
29#include <OnixS/CME/MDH/Auxiliary/DeprecatedHeaderWarnings.Restore.h>
30
32
35{
37 virtual const Messaging::Char* id() const = 0;
38
41};
42
44class LocalWatch
45{
46public:
48 static Messaging::Timestamp now() noexcept
49 {
51 }
52
55
56private:
57 LocalWatch(const LocalWatch&);
58 LocalWatch& operator=(const LocalWatch&);
59};
60
62class UtcWatch
63{
64public:
66 static Messaging::Timestamp now() noexcept
67 {
69 }
70
73
74private:
75 UtcWatch(const UtcWatch&);
76 UtcWatch& operator=(const UtcWatch&);
77};
78
86class NicWatch
87{
88public:
91
92private:
93 NicWatch(const NicWatch&);
94 NicWatch& operator=(const NicWatch&);
95};
96
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Definition Bootstrap.h:54
#define ONIXS_CMEMDH_NAMESPACE_END
Definition Bootstrap.h:55
#define ONIXS_CMEMDH_EXPORTED
Definition Compiler.h:148
static Messaging::Timestamp now() noexcept
Returns current local time.
Definition Watch.h:48
static WatchService & service()
Returns watch service implementing local watch.
The time point without the time-zone information.
Definition Time.h:425
static Timestamp now() noexcept
Current local time.
static Timestamp utcNow() noexcept
Current utc time.
static WatchService & service()
Returns the watch service instance reference.
static Messaging::Timestamp now() noexcept
Returns current UTC time.
Definition Watch.h:66
static WatchService & service()
Returns watch service implementing UTC watch.
char Char
Character type alias.
Definition String.h:30
Abstract watch service.
Definition Watch.h:35
virtual const Messaging::Char * id() const =0
Identifies watch service.
virtual Messaging::Timestamp now()=0
Returns current time.