what is the effect of funtion "FieldEntry::getRippleTo"

hello:

I am developing with EMA(C++);

I found the function getRippleTo in the Examples, I get the print of this function;

But I can not understand.

So, we can explain it to me? thanks very much.

thomsonreuters::ema::access::FieldEntry::getRippleTo (Int16 fieldId =
0) const

Best Answer

  • @luxiangyuan

    Basically, the field list also supports rippling. Rippling is a property of a field entry that replaces the value with a newly received value and propagates the former value to an alternate filed entry. Rippling reduces bandwidth consumption since the Provider need not again distribute former values. Rather, the Consumer propagates the former value to the alternate field entry as identified through a dictionary. It is a responsibility of the Consumer to ripple the field entry.

    EMA does not ripple any field entry on behalf of the application. That why EMA provide method getRippleTo which can be used to determine if the field entry has ripple field and you can also use getRippleToName to get ripple field name. You can find more details about both methods from EMA Reference manual which is Html help file provided in ESDK package.

    The application needs to handle the ripple fields by itself like other TREP APIs. You can refer to consumer example 240_MarketPrice_RippleFields that provided in the EMA package. Sample use case in the example is to handle Ripples Fields BID_1, BID_2 and ASK_1 and ASK_2 for BID and ASK field.