EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 Refinitiv. All rights reserved. --
6  *|-----------------------------------------------------------------------------
7  */
8 
9 #ifndef __thomsonreuters_ema_access_OmmDateTime_h
10 #define __thomsonreuters_ema_access_OmmDateTime_h
11 
53 #include "Access/Include/Data.h"
54 
55 namespace thomsonreuters {
56 
57 namespace ema {
58 
59 namespace access {
60 
61 class OmmDateTimeDecoder;
62 
64 {
65 public :
66 
68 
69 
72  DataType::DataTypeEnum getDataType() const;
73 
77  Data::DataCode getCode() const;
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 
112  UInt8 getMinute() const;
113 
117  UInt8 getSecond() const;
118 
122  UInt16 getMillisecond() const;
123 
127  UInt16 getMicrosecond() const;
128 
132  UInt16 getNanosecond() const;
134 
135 private :
136 
137  friend class Decoder;
138  friend class StaticDecoder;
139  friend class DateTimeStringFormat;
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[13];
156 };
157 
158 }
159 
160 }
161 
162 }
163 
164 #endif // __thomsonreuters_ema_access_OmmDateTime_h
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
OmmDateTime represents DateTime info in Omm.
Definition: OmmDateTime.h:63
EmaString class is a container of a null terminated Ascii character string.
Definition: EmaString.h:56
EmaBuffer represents a general use binary buffer.
Definition: EmaBuffer.h:32
DateTimeStringFormat is an interface to string conversion methods for OmmDate, OmmTime & OmmDateTime...
#define EMA_ACCESS_API
Definition: Common.h:95
Data class is a parent abstract class defining common interfaces for all Data type classes...
Definition: Data.h:38
unsigned char UInt8
represents 8-bit unsigned integer
Definition: Common.h:32