EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RmtesBuffer.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_RmtesBuffer_h
10 #define __thomsonreuters_ema_access_RmtesBuffer_h
11 
36 #include "Access/Include/Common.h"
37 
38 
39 
40 namespace thomsonreuters{
41 
42 namespace ema {
43 
44 namespace access {
45 class EmaUnitTestConnect;
46 class EmaBuffer;
47 class EmaString;
48 class EmaBufferU16;
49 class RmtesBufferImpl;
50 
51 class OmmRmtesDecoder;
52 
53 
55 {
56 public :
57 
59 
60 
62  RmtesBuffer();
63 
69  RmtesBuffer( UInt32 length );
70 
77  RmtesBuffer( const char* buf, UInt32 length );
78 
84  RmtesBuffer( const RmtesBuffer& buf );
86 
88 
89 
91  virtual ~RmtesBuffer();
93 
95 
96 
101  const EmaBuffer& getAsUTF8() const;
102 
108  const EmaBufferU16& getAsUTF16() const;
109 
115  const EmaString& toString() const;
117 
119 
120 
123  RmtesBuffer& clear();
124 
131  RmtesBuffer& apply( const RmtesBuffer& buf );
132 
140  RmtesBuffer& apply( const char* buf, UInt32 length );
141 
148  RmtesBuffer& apply( const EmaBuffer& buf );
150 
151 private :
152 
153  friend class OmmRmtesDecoder;
154  friend class EmaUnitTestConnect;
155 
156  RmtesBufferImpl* _pImpl;
157  UInt64 _space[22];
158 };
159 
160 }
161 
162 }
163 
164 }
165 
166 #endif // __thomsonreuters_ema_access_RmtesBuffer_h
EmaBufferU16 represents general use binary buffer.
Definition: EmaBufferU16.h:31
unsigned long long UInt64
represents 64-bit unsigned integer
Definition: Common.h:68
unsigned int UInt32
represents 32-bit unsigned integer
Definition: Common.h:56
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
Common.h file provides definitions of common variable types used in EMA.
RmtesBuffer represents RMTES data.
Definition: RmtesBuffer.h:54