EMA C++ Edition
GenericMsg.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, 2024 LSEG. All rights reserved. --
6 *|-----------------------------------------------------------------------------
7 */
8
9#ifndef __refinitiv_ema_access_GenericMsg_h
10#define __refinitiv_ema_access_GenericMsg_h
11
78#include "Access/Include/Msg.h"
79#include "DataDictionary.h"
80
81namespace refinitiv {
82
83namespace ema {
84
85namespace access {
86
88{
89public :
90
92
93
96
101 GenericMsg( const GenericMsg& other );
103
105
106
108 virtual ~GenericMsg();
110
112
113
117
122
126 const EmaBuffer& getAsHex() const;
127
131 const EmaString& toString() const;
132
137 const EmaString& toString( const refinitiv::ema::rdm::DataDictionary& dictionary ) const;
138
143 bool hasSeqNum() const;
144
149 bool hasSecondarySeqNum() const;
150
155 bool hasPartNum() const;
156
161 bool hasPermissionData() const;
162
168
174
180
186
190 bool getComplete() const;
192
194
195
200
206
213
218 GenericMsg& name( const EmaString& name );
219
225
231
237
243
249
254 GenericMsg& secondarySeqNum( UInt32 secondarySeqNum );
255
261
266 GenericMsg& permissionData( const EmaBuffer& permissionData );
267
273
279
285
290 GenericMsg& providerDriven(bool providerDriven = true);
291
297 GenericMsg& complete( bool complete = true );
299
300private :
301
302 friend class ItemCallbackClient;
303
304 const EmaString& toString( UInt64 indent ) const;
305
306 Decoder& getDecoder();
307
308 GenericMsg& operator=( const GenericMsg& );
309
310 mutable EmaString _toString;
311};
312
313}
314
315}
316
317}
318
319#endif
#define EMA_ACCESS_API
Definition: Common.h:95
*|--------------------------------------------------------------------------—
Definition: AckMsg.h:62
int Int32
represents 32-bit signed integer
Definition: Common.h:62
unsigned int UInt32
represents 32-bit unsigned integer
Definition: Common.h:56
unsigned char UInt8
represents 8-bit unsigned integer
Definition: Common.h:32
unsigned short UInt16
represents 16-bit unsigned integer
Definition: Common.h:44
unsigned long long UInt64
represents 64-bit unsigned integer
Definition: Common.h:68
The access namespace contains all interfaces and definitions specified for use with the EMA Access pa...
static const refinitiv::ema::access::UInt8 MMT_MARKET_PRICE
Definition: EmaRdm.h:50
static const refinitiv::ema::access::UInt8 INSTRUMENT_NAME_RIC
Definition: EmaRdm.h:197
The ema namespace contains all interfaces and definitions specified for use with EMA.
ComplexType class is a parent class from whom all complex data types inherit.
Definition: ComplexType.h:34
EmaBuffer represents a general use binary buffer.
Definition: EmaBuffer.h:33
EmaString class is a container of a null terminated Ascii character string.
Definition: EmaString.h:57
GenericMsg allows applications to bidirectionally send messages without any implied message semantics...
Definition: GenericMsg.h:88
GenericMsg & permissionData(const EmaBuffer &permissionData)
const EmaBuffer & getAsHex() const
GenericMsg & providerDriven(bool providerDriven=true)
GenericMsg(const GenericMsg &other)
GenericMsg & complete(bool complete=true)
GenericMsg & extendedHeader(const EmaBuffer &buffer)
Data::DataCode getCode() const
const EmaString & toString() const
GenericMsg & name(const EmaString &name)
GenericMsg & attrib(const ComplexType &data)
GenericMsg & serviceId(UInt32 serviceId)
GenericMsg & nameType(UInt8 nameType=rdm::INSTRUMENT_NAME_RIC)
DataType::DataTypeEnum getDataType() const
GenericMsg & secondarySeqNum(UInt32 secondarySeqNum)
GenericMsg & filter(UInt32 filter)
const EmaString & toString(const refinitiv::ema::rdm::DataDictionary &dictionary) const
const EmaBuffer & getPermissionData() const
GenericMsg & payload(const ComplexType &data)
GenericMsg & seqNum(UInt32 seqNum)
GenericMsg & domainType(UInt16 domainType=rdm::MMT_MARKET_PRICE)
GenericMsg & partNum(UInt16 partNum)
GenericMsg & streamId(Int32 streamId)
Msg class is a parent class for all message representing classes.
Definition: Msg.h:46