EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EnumType.h
Go to the documentation of this file.
1 /*|-----------------------------------------------------------------------------
2  *| and is provided AS IS with no warranty or guarantee of fit for purpose. --
3  *| See the project's LICENSE.md for details. --
4  *| Copyright (C) 2019 Refinitiv. All rights reserved. --
5  *|-----------------------------------------------------------------------------
6  */
7 
8 #ifndef __thomsonreuters_ema_rdm_EnumType_h
9 #define __thomsonreuters_ema_rdm_EnumType_h
10 
15 #include "Access/Include/Common.h"
18 
19 namespace thomsonreuters {
20 
21 namespace ema {
22 
23 namespace rdm {
24 
25 class DictionaryEntryImpl;
26 class EnumTypeImpl;
27 
29 {
30 
31 public:
32 
34 
39  thomsonreuters::ema::access::UInt16 getValue() const;
40 
47  const thomsonreuters::ema::access::EmaString& getDisplay() const;
48 
55  const thomsonreuters::ema::access::EmaString& getMeaning() const;
57 
59 
63  const thomsonreuters::ema::access::EmaString& toString() const;
64 
68  operator const char* () const;
70 
71 private:
72 
73  friend class DataDictionaryImpl;
74  friend class DictionaryEntryImpl;
75  friend class EnumTypeImpl;
76  friend class EnumTypeTableImpl;
77 
78  template<class T>
80 
81  EnumType();
82 
83  EnumType(const EnumType&);
84 
85  virtual ~EnumType();
86 
87  EnumType& operator=(const EnumType&);
88 
89  EnumTypeImpl* _pImpl;
90 };
91 
92 }
93 
94 }
95 
96 }
97 
98 #endif // __thomsonreuters_ema_rdm_EnumType_h
99 
unsigned short UInt16
represents 16-bit unsigned integer
Definition: Common.h:44
EmaVector class provides template vector implementation.
Definition: EmaVector.h:29
EmaString class is a container of a null terminated Ascii character string.
Definition: EmaString.h:56
#define EMA_ACCESS_API
Definition: Common.h:95
Common.h file provides definitions of common variable types used in EMA.
EmaVector< T > & operator=(const EmaVector< T > &other)
Definition: EmaVector.h:189