EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EmaBufferU16.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_EmaBufferU16_h
10 #define __thomsonreuters_ema_access_EmaBufferU16_h
11 
23 #include "Access/Include/Common.h"
24 
25 namespace thomsonreuters {
26 
27 namespace ema {
28 
29 namespace access {
30 
32 {
33 public :
34 
36 
37 
39  EmaBufferU16();
40 
46  EmaBufferU16( const UInt16* buf, UInt32 length );
47 
52  EmaBufferU16( const EmaBufferU16& buf );
54 
56 
57 
59  virtual ~EmaBufferU16();
61 
63 
64 
67  EmaBufferU16& clear();
68 
74  EmaBufferU16& operator=( const EmaBufferU16& buf );
75 
82  EmaBufferU16& setFrom( const UInt16* buf, UInt32 length );
83 
89  EmaBufferU16& append( const EmaBufferU16& buf );
90 
96  EmaBufferU16& append( UInt16 c );
97 
104  EmaBufferU16& append( const UInt16* buf, UInt32 length );
105 
111  EmaBufferU16& operator+=( const EmaBufferU16& buf );
112 
118  EmaBufferU16& operator+=( UInt16 );
119 
125  UInt16& operator[]( UInt32 index );
127 
129 
130 
133  const UInt16* u16_buf() const;
134 
138  UInt32 length() const;
139 
144  bool operator==( const EmaBufferU16& buf ) const;
145 
151  UInt16 operator[]( UInt32 index ) const;
153 
154 protected:
155 
159 };
160 
166 EmaBufferU16 operator+( EmaBufferU16 buff_1, const EmaBufferU16& buff_2 );
167 
168 }
169 
170 }
171 
172 }
173 
174 #endif // __thomsonreuters_ema_access_EmaBufferU16_h
EmaBufferU16 represents general use binary buffer.
Definition: EmaBufferU16.h:31
unsigned short UInt16
represents 16-bit unsigned integer
Definition: Common.h:44
unsigned int UInt32
represents 32-bit unsigned integer
Definition: Common.h:56
EmaBuffer operator+(EmaBuffer buff_1, const EmaBuffer &buff_2)
#define EMA_ACCESS_API
Definition: Common.h:95
Common.h file provides definitions of common variable types used in EMA.