Re: [Quickfix-users] Customize configuration file
Brought to you by:
orenmnero
From: <que...@bn...> - 2004-08-12 13:41:43
|
Hi, You can declare a global variable in the main file : FIX::SessionSettings gc_Settings ; gc_Settings =3D new FIX::SessionSettings(file) ; And then use this variable where you want in your code, by externalising it for example. extern FIX::SessionSettings gc_Settings ; ... OnCreate(...) { FIX::Dictionary dictionary =3D gc_Settings->get(SessionID) ; toto =3D dictionary.getString( FIX::CONF_PARAM ) ; } cheers, Quentin Internet gar...@vi...@lists.sourceforge.net - 12/08/2004 15:20 Please respond to gar...@vi... Sent by: qui...@li... To: quickfix-users cc: Subject: [Quickfix-users] Customize configuration file QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ QuickFIX Support: http://www.quickfixengine.org/services.html Hi, I'm starting a quite big trading project, and i'm glad i found quickfix for it seems to be exactly what i was looking for. I hope to be able to spend part of the time quickfix will save me helping to improve the project, but at this moment i have a question: I need to add a new entry to the configuration file to each session definition. I'd need to access the configuration file or (better) the SessionSetings object to get the new entry's value from my Application, in onCreate method to be more specific. Is there a way to figure out this or i should tweak quickfix code to get it? Thanks and cheers for such a good work (and please forgive my "spanglish"). Guillermo Arbeiza ****************************** AVISO LEGAL ****************************** La informaci=F3n contenida en este mensaje es para uso exclusivo de su destinatario. No debe copiarse, transmitirse a terceros ni guardarse por estos =FAltimos, salvo autorizaci=F3n del remitente. Puede contener informaci=F3n confidencial o legalmente protegida cuyo r=E9g= imen legal de utilizaci=F3n no se ve afectado por el hecho de que haya sido enviada por correo electr=F3nico. Su env=EDo por error a una persona distinta de su destinatario real no implica que se haya modificado tal destinatario ni supone renuncia a su eventual car=E1cter confidencial o al r=E9gimen legal que rija su utilizaci= =F3n. Cualquier opini=F3n expresada en este mensaje vincular=E1 exclusivamente a = la persona que lo haya remitido, excepto cuando el mensaje establezca lo contrario y el remitente est=E9 autorizado para establecer que dichas opiniones vincular=E1n a esta entidad. En el supuesto de que este correo se recibiera por error, rogamos procedan a borrarlo, sin reenviarlo a terceros ni conservarlo en cualquier soporte y nos informen inmediatamente llamando al tel=E9fono 34 91 5892123 o a la direcci=F3n de correo electr=F3nico remitente. Gracias. ****************************** DISCLAIMER ****************************** The information contained in this message is for the exclusive use of the named person. It can not be copied, transmitted to third parties or stored by the latter, except if authorised by the sender. It may contain confidential or legally privileged information whose legal regime is not affected by the fact that this information has been sent by e-mail. Its erroneous transmission to a person other than the real named person neither implies any modification of this named person nor a renunciation of the eventual confidentiality or legal regime affecting the use of concerned message. Any views expressed in this message are binding exclusively upon the individual sender, except where the message states otherwise and the sender is authorised to bind this entity. If you receive this message in error, please delete it without transmitting it to any third party or keeping it in any form and notify us immediately either by phone (34 91 5892123) or using the e- mail address of the sender. Thank You. ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Quickfix-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-users This message and any attachments (the "message") is intended solely for the addressees and is confidential.=20 If you receive this message in error, please delete it and=20 immediately notify the sender. Any use not in accord with=20 its purpose, any dissemination or disclosure, either whole=20 or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message.=20 BNP PARIBAS (and its subsidiaries) shall (will) not=20 therefore be liable for the message if modified.=20 --------------------------------------------- Ce message et toutes les pieces jointes (ci-apres le=20 "message") sont etablis a l'intention exclusive de ses=20 destinataires et sont confidentiels. Si vous recevez ce=20 message par erreur, merci de le detruire et d'en avertir=20 immediatement l'expediteur. Toute utilisation de ce=20 message non conforme a sa destination, toute diffusion=20 ou toute publication, totale ou partielle, est interdite, sauf=20 autorisation expresse. L'internet ne permettant pas=20 d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce=20 message, dans l'hypothese ou il aurait ete modifie. |