EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OmmXml.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_OmmXml_h
10 #define __thomsonreuters_ema_access_OmmXml_h
11 
62 
63 namespace thomsonreuters {
64 
65 namespace ema {
66 
67 namespace access {
68 
69 class OmmXmlDecoder;
70 class OmmXmlEncoder;
71 
73 {
74 public :
75 
77 
78 
80  OmmXml();
82 
84 
85 
87  virtual ~OmmXml();
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  OmmXml& clear();
130 
135  OmmXml& set( const EmaString& value );
136 
141  OmmXml& set( const EmaBuffer& value );
143 
144 private :
145 
146  const EmaString& toString( UInt64 ) const;
147 
148  Decoder& getDecoder();
149  bool hasDecoder() const;
150 
151  const Encoder& getEncoder() const;
152  bool hasEncoder() const;
153 
154  OmmXml( const OmmXml& );
155  OmmXml& operator=( const OmmXml& );
156 
157  mutable EmaString _toString;
158  OmmXmlDecoder* _pDecoder;
159  OmmXmlEncoder* _pEncoder;
160  UInt64 _space[18];
161 };
162 
163 }
164 
165 }
166 
167 }
168 
169 #endif // __thomsonreuters_ema_access_OmmXml_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
OmmXml represents XML data format in Omm.
Definition: OmmXml.h:72