How to encode <templateRef> in QuickFast?

166 views
Skip to first unread message

Kevin

unread,
Jan 12, 2012, 6:19:28 PM1/12/12
to quickfa...@googlegroups.com

I'm encoding message using QuickFast, I discovered there is
Messages::FieldGroup class, however there is no class handle
templateRef in QuickFast. Should I encode message same as FieldGroup
for templateRef?
For example, I'm encoding Logon message, Logon message contains a
templateRef to LogonHeader, and LogonHeader contains
"StandardHeaderClientInitiated". How should I encode "Logon" message?

Thanks in Advances!

   <template name="StandardHeaderClientInitiated">
         <string name="SendingTime" id="52" presence="mandatory"></
string>
   </template>

    <template name="LogonHeader">
         <typeRef name="LogonHeader"/>
         <string name="MessageType" id="35" presence="mandatory"></
string>
         <templateRef name="StandardHeaderClientInitiated"/>
   </template>

  <template name="Logon" id="1">
      <typeRef name="Logon"/>
      <templateRef name="LogonHeader"/>
      <string name="AppID" id="1180" presence="optional"></string>
      <uInt32 name="HeartBtInt" id="108" presence="mandatory"></
uInt32>
      <string name="Username" id="553" presence="optional"></string>
      <string name="Password" id="554" presence="optional"></string>
      <string name="NewPassword" id="925" presence="optional"></
string>
      <uInt32 name="SessionStatus" id="1409" presence="optional"></
uInt32>
       <templateRef name="StandardTrailer"/>
  </template>

Kevin

unread,
Jan 12, 2012, 2:20:49 AM1/12/12
to quickfast_users

bilel bouzayani

unread,
Feb 7, 2012, 1:19:06 PM2/7/12
to quickfast_users
Hi Kevin,
you can suppose the message included with templateRef as a Fast group,
i tested it correctly with JSE MIT


thanks,
bilel

On 12 jan, 08:20, Kevin <ozhu...@gmail.com> wrote:
> I'm encoding message using QuickFast, I discovered there is
> Messages::FieldGroup class, however there is no class handletemplateRefin QuickFast. Should I encode message same as FieldGroup
> fortemplateRef?
> For example, I'm encoding Logon message, Logon message contains atemplateRefto LogonHeader, and LogonHeader contains
> "StandardHeaderClientInitiated". How should I encode "Logon" message?
>
> Thanks in Advances!
>
>     <template name="StandardHeaderClientInitiated">
>           <string name="SendingTime" id="52" presence="mandatory"></
> string>
>     </template>
>
>      <template name="LogonHeader">
>           <typeRef name="LogonHeader"/>
>           <string name="MessageType" id="35" presence="mandatory"></
> string>
>           <templateRefname="StandardHeaderClientInitiated"/>
>     </template>
>
>    <template name="Logon" id="1">
>        <typeRef name="Logon"/>
>        <templateRefname="LogonHeader"/>

bilel bouzayani

unread,
Mar 1, 2012, 12:45:20 PM3/1/12
to quickfa...@googlegroups.com
Hi kevin ,

when you find a templateRef, you can suppose it a Fast group (you can use this method for example Field::ToGroup(),
in quickfast his type is ValueType::TEMPLATE_REF but it can be casted to GROUP.
Note : i tested it with EUREX,JSE, LSE


thanks,
bilel

2012/1/13 Kevin <ozh...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "quickfast_users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/quickfast_users/-/72NPTpH5uCkJ.
To post to this group, send email to quickfa...@googlegroups.com.
To unsubscribe from this group, send email to quickfast_use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/quickfast_users?hl=en.



--
eleve ingenieur de l'Ecole National des Sciences de l'Informatique.

Mail : bouzaya...@live.fr
Tel : (216) 23 451 097

Blog : http://bouzayanibilel.wordpress.com/

Reply all
Reply to author
Forward
0 new messages