EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DataType.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_DataType_h
10 #define __thomsonreuters_ema_access_DataType_h
11 
35 
36 namespace thomsonreuters {
37 
38 namespace ema {
39 
40 namespace access {
41 
42 class EmaBuffer;
43 
45 {
46 public :
47 
52  {
53  IntEnum = 3,
56  UIntEnum = 4,
59  FloatEnum = 5,
63  DoubleEnum = 6,
67  RealEnum = 8,
72  DateEnum = 9,
74  TimeEnum = 10,
77  DateTimeEnum = 11,
79  QosEnum = 12,
82  StateEnum = 13,
86  EnumEnum = 14,
89  ArrayEnum = 15,
95  BufferEnum = 16,
97  AsciiEnum = 17,
101  Utf8Enum = 18,
104  RmtesEnum = 19,
112  NoDataEnum = 128,
114  FieldListEnum = 132,
126  ElementListEnum = 133,
137  FilterListEnum = 135,
147  VectorEnum = 136,
153  MapEnum = 137,
159  SeriesEnum = 138,
168  OpaqueEnum = 130,
170  XmlEnum = 131,
172  AnsiPageEnum = 134,
174  MsgEnum = 141,
178  ReqMsgEnum = 256,
181  RefreshMsgEnum = 257,
184  UpdateMsgEnum = 258,
187  StatusMsgEnum = 259,
190  PostMsgEnum = 260,
193  AckMsgEnum = 261,
196  GenericMsgEnum = 262,
199  ErrorEnum = 270,
201  LargestValue = ErrorEnum /* should be last element in DataTypeEnum and should be
202  * set to the largest enumeration value
203  */
204  };
205 
207 
208 
211  DataType( DataTypeEnum dataType );
213 
215 
216 
218  virtual ~DataType();
220 
222 
223 
226  const EmaString& toString() const;
227 
231  operator const char* () const;
233 
234 private :
235 
236  DataTypeEnum _dataType;
237 
238  DataType();
239  DataType( const DataType& );
240  DataType& operator=( const DataType& );
241 };
242 
243 }
244 
245 }
246 
247 }
248 
249 #endif // __thomsonreuters_ema_access_DataType_h
EmaString class is a container of a null terminated Ascii character string.
Definition: EmaString.h:56
#define EMA_ACCESS_API
Definition: Common.h:95
DataType class provides enumeration representing Omm data types.
Definition: DataType.h:44