EMA decode fid 3754

Here is my code to decode EMA fid 3754

switch(fe.getFieldId())

{

case 3754:

fxsnapshot.Enlarge = atof(fe.getRmtes().toString());

......

......

}


the cout of RefreshMsg is

FieldEntry fid="3754" name="SCALING" dataType="Rmtes" value="1"


As I decode it as string,I can not get the right value.

May someone tell how to decode the Rmtes dataType,thanks.

Best Answer

  • Gurpreet
    Gurpreet admin
    Answer ✓

    How about this in EMA -

    if(fieldEntry.fieldId() == 3754)
    double scalingF = Double.parseDouble(fieldEntry.rmtes().toString());

Answers