EMA C++ Edition
OmmDate.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_OmmDate_h
10#define __refinitiv_ema_access_OmmDate_h
11
59#include "Access/Include/Data.h"
60
61namespace refinitiv {
62
63namespace ema {
64
65namespace access {
66
67class OmmDateDecoder;
68
70{
71public :
72
74
75
79
84
88 const EmaBuffer& getAsHex() const;
89
93 const EmaString& toString() const;
94
98 UInt16 getYear() const;
99
104
108 UInt8 getDay() const;
110
111private :
112
113 friend class Decoder;
114 friend class StaticDecoder;
116
117 Decoder& getDecoder();
118 bool hasDecoder() const;
119
120 const EmaString& toString( UInt64 indent ) const;
121
122 const Encoder& getEncoder() const;
123 bool hasEncoder() const;
124
125 OmmDate();
126 virtual ~~OmmDate();
127 OmmDate( const OmmDate& );
128 OmmDate& operator=( const OmmDate& );
129
130 OmmDateDecoder* _pDecoder;
131 UInt64 _space[16];
132};
133
134}
135
136}
137
138}
139
140#endif // __refinitiv_ema_access_OmmDate_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
OmmDate represents Date info in Omm.
Definition: OmmDate.h:70
const EmaString & toString() const
DataType::DataTypeEnum getDataType() const
Data::DataCode getCode() const
const EmaBuffer & getAsHex() const