EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OmmArrayEntry.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_OmmArrayEntry_h
10 #define __thomsonreuters_ema_access_OmmArrayEntry_h
11 
58 #include "Access/Include/Data.h"
59 
60 namespace thomsonreuters {
61 
62 namespace ema {
63 
64 namespace access {
65 
66 class OmmReal;
67 class OmmDate;
68 class OmmTime;
69 class OmmDateTime;
70 class OmmQos;
71 class OmmState;
72 class OmmError;
73 class RmtesBuffer;
74 
75 class OmmArrayDecoder;
76 
78 {
79 public :
80 
82 
83 
87  DataType::DataTypeEnum getLoadType() const;
88 
93  Data::DataCode getCode() const;
94 
98  const EmaString& toString() const;
99 
103  const Data& getLoad() const;
104 
110  Int64 getInt() const;
111 
117  UInt64 getUInt() const;
118 
124  const OmmReal& getReal() const;
125 
131  float getFloat() const;
132 
138  double getDouble() const;
139 
145  const OmmDate& getDate() const;
146 
152  const OmmTime& getTime() const;
153 
159  const OmmDateTime& getDateTime() const;
160 
166  const OmmQos& getQos() const;
167 
173  const OmmState& getState() const;
174 
180  UInt16 getEnum() const;
181 
187  const EmaBuffer& getBuffer() const;
188 
194  const EmaString& getAscii() const;
195 
201  const EmaBuffer& getUtf8() const;
202 
208  const RmtesBuffer& getRmtes() const;
209 
214  const OmmError& getError() const;
216 
217 private :
218 
219  friend class OmmArray;
220 
221  OmmArrayDecoder* _pDecoder;
222  const Data* _pLoad;
223 
224  mutable EmaString _toString;
225 
226  OmmArrayEntry();
227  virtual ~OmmArrayEntry();
228 
229  OmmArrayEntry( const OmmArrayEntry& );
230  OmmArrayEntry& operator=( const OmmArrayEntry& );
231 };
232 
233 }
234 
235 }
236 
237 }
238 
239 #endif //__thomsonreuters_ema_access_OmmArrayEntry_h
long long Int64
represents 64-bit signed integer
Definition: Common.h:74
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
OmmError represents received Omm data who fails to process properly.
Definition: OmmError.h:62
EmaBuffer represents a general use binary buffer.
Definition: EmaBuffer.h:32
#define EMA_ACCESS_API
Definition: Common.h:95
OmmReal represents Real number in Omm.
Definition: OmmReal.h:71
OmmArrayEntry represents an entry of OmmArray.
Definition: OmmArrayEntry.h:77
OmmDate represents Date info in Omm.
Definition: OmmDate.h:69
OmmArray is a homogeneous container of primitive data type entries.
Definition: OmmArray.h:85
OmmTime represents Time info in Omm.
Definition: OmmTime.h:69
OmmState represents State information in Omm.
Definition: OmmState.h:50
Data class is a parent abstract class defining common interfaces for all Data type classes...
Definition: Data.h:38
RmtesBuffer represents RMTES data.
Definition: RmtesBuffer.h:54