EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OmmAnsiPage.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_OmmAnsiPage_h
10 #define __thomsonreuters_ema_access_OmmAnsiPage_h
11 
62 
63 namespace thomsonreuters {
64 
65 namespace ema {
66 
67 namespace access {
68 
69 class OmmAnsiPageDecoder;
70 class OmmAnsiPageEncoder;
71 
73 {
74 public :
75 
77 
78 
80  OmmAnsiPage();
82 
84 
85 
87  virtual ~OmmAnsiPage();
89 
91 
92 
95  DataType::DataTypeEnum getDataType() const;
96 
100  Data::DataCode getCode() const;
101 
105  const EmaBuffer& getAsHex() const;
106 
110  const EmaString& toString() const;
111 
115  const EmaString& getString() const;
116 
120  const EmaBuffer& getBuffer() const;
122 
124 
125 
129  OmmAnsiPage& clear();
130 
135  OmmAnsiPage& set( const EmaString& value );
136 
141  OmmAnsiPage& set( const EmaBuffer& value );
143 
144 private :
145 
146  const EmaString& toString( UInt64 indent ) const;
147 
148  Decoder& getDecoder();
149  bool hasDecoder() const;
150 
151  const Encoder& getEncoder() const;
152  bool hasEncoder() const;
153 
154  OmmAnsiPage( const OmmAnsiPage& );
155  OmmAnsiPage& operator=( const OmmAnsiPage& );
156 
157  mutable EmaString _toString;
158  OmmAnsiPageDecoder* _pDecoder;
159  OmmAnsiPageEncoder* _pEncoder;
160  UInt64 _space[18];
161 };
162 
163 }
164 
165 }
166 
167 }
168 
169 #endif // __thomsonreuters_ema_access_OmmAnsiPage_h
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
#define EMA_ACCESS_API
Definition: Common.h:95
ComplexType class is a parent class from whom all complex data types inherit.
Definition: ComplexType.h:33
OmmAnsiPage represents AnsiPage data format in Omm.
Definition: OmmAnsiPage.h:72