EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OmmTime.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_OmmTime_h
10 #define __thomsonreuters_ema_access_OmmTime_h
11 
59 #include "Access/Include/Data.h"
60 
61 namespace thomsonreuters {
62 
63 namespace ema {
64 
65 namespace access {
66 
67 class OmmTimeDecoder;
68 
69 class EMA_ACCESS_API OmmTime : public Data
70 {
71 public :
72 
74 
75 
78  DataType::DataTypeEnum getDataType() const;
79 
83  Data::DataCode getCode() const;
84 
88  const EmaBuffer& getAsHex() const;
89 
93  const EmaString& toString() const;
94 
98  UInt8 getHour() const;
99 
103  UInt8 getMinute() const;
104 
108  UInt8 getSecond() const;
109 
113  UInt16 getMillisecond() const;
114 
118  UInt16 getMicrosecond() const;
119 
123  UInt16 getNanosecond() const;
125 
126 private :
127 
128  friend class Decoder;
129  friend class StaticDecoder;
130  friend class DateTimeStringFormat;
131 
132  Decoder& getDecoder();
133  bool hasDecoder() const;
134 
135  const EmaString& toString( UInt64 ) const;
136 
137  const Encoder& getEncoder() const;
138  bool hasEncoder() const;
139 
140  OmmTime();
141  virtual ~OmmTime();
142  OmmTime( const OmmTime& );
143  OmmTime& operator=( const OmmTime& );
144 
145  OmmTimeDecoder* _pDecoder;
146  UInt64 _space[13];
147 };
148 
149 }
150 
151 }
152 
153 }
154 
155 #endif // __thomsonreuters_ema_access_OmmTime_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
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
OmmTime represents Time info in Omm.
Definition: OmmTime.h:69
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