Among most of the Elektron consumer examples, most of the ReqMsg have not set domain. I mean ReqMsg::domainType() functions, Why?
btw. the following code crash, could anyone take a look? Thank!
RicList.addAscii( "TRI.N" ).addAscii( "AAPL.O" ).complete();
FieldList.fixedWidth( 2 ).addInt( 21 ).addInt( 22 ).addInt( 25 ).complete();
MyReqMsg.serviceName( "EED_DELAYED" )
.payload( ElementList().addArray( ":ItemList", RicList )
.addUInt( ":ViewType", 1 ).addArray( ":ViewData", FieldList)
MyReqMsg.getDomainType();// this line crash
The default value of domainType in the ReqMsg is MarketPrice(6), so there is no need to set domain for MarketPrice request message.
With regard to the crash issue, I'm able to replicate the issue in our application. However, this usage of ReqMsg is not supported. The EMA Reference Manual document states in the description of ReqMsg class that decoding of just encoded ReqMsg in the same application is not supported.
Please see the following screenshot for the reference.
I need to move the parameters of OmmConsumerConfig(0 into a configuration file. I understand that the username is of type const thomsonreuters::ema::access::EmaString. How can I convert a cpp string to that data type?