EMA C++ Edition
OmmDateTime.h
Go to the documentation of this file.
1/*|-----------------------------------------------------------------------------
2 *| This source code is provided under the Apache 2.0 license
3 *| and is provided AS IS with no warranty or guarantee of fit for purpose.
4 *| See the project's LICENSE.md for details.
5 *| Copyright (C) 2019, 2024 LSEG. All rights reserved. --
6 *|-----------------------------------------------------------------------------
7 */
8
9#ifndef __refinitiv_ema_access_OmmDateTime_h
10#define __refinitiv_ema_access_OmmDateTime_h
11
53#include "Access/Include/Data.h"
54
55namespace refinitiv {
56
57namespace ema {
58
59namespace access {
60
61class OmmDateTimeDecoder;
62
64{
65public :
66
68
69
73
78
82 const EmaBuffer& getAsHex() const;
83
87 const EmaString& toString() const;
88
92 UInt16 getYear() const;
93
97 UInt8 getMonth() const;
98
102 UInt8 getDay() const;
103
107 UInt8 getHour() const;
108
113
118
123
128
134
135private :
136
137 friend class Decoder;
138 friend class StaticDecoder;
140
141 Decoder& getDecoder();
142 bool hasDecoder() const;
143
144 const EmaString& toString( UInt64 ) const;
145
146 const Encoder& getEncoder() const;
147 bool hasEncoder() const;
148
149 OmmDateTime();
150 virtual ~~OmmDateTime();
151 OmmDateTime( const OmmDateTime& );
152 OmmDateTime& operator=( const OmmDateTime& );
153
154 OmmDateTimeDecoder* _pDecoder;
155 UInt64 _space[17];
156};
157
158}
159
160}
161
162}
163
164#endif // __refinitiv_ema_access_OmmDateTime_h
#define EMA_ACCESS_API
Definition: Common.h:95
*|--------------------------------------------------------------------------—
Definition: AckMsg.h:62
unsigned char UInt8
represents 8-bit unsigned integer
Definition: Common.h:32
unsigned short UInt16
represents 16-bit unsigned integer
Definition: Common.h:44
unsigned long long UInt64
represents 64-bit unsigned integer
Definition: Common.h:68
The access namespace contains all interfaces and definitions specified for use with the EMA Access pa...
The ema namespace contains all interfaces and definitions specified for use with EMA.
Data class is a parent abstract class defining common interfaces for all Data type classes.
Definition: Data.h:39
DateTimeStringFormat is an interface to string conversion methods for OmmDate, OmmTime & OmmDateTime.
EmaBuffer represents a general use binary buffer.
Definition: EmaBuffer.h:33
EmaString class is a container of a null terminated Ascii character string.
Definition: EmaString.h:57
OmmDateTime represents DateTime info in Omm.
Definition: OmmDateTime.h:64
Data::DataCode getCode() const
const EmaString & toString() const
DataType::DataTypeEnum getDataType() const
const EmaBuffer & getAsHex() const