[Quickfix-developers] Daily sequence number reset now working !
Brought to you by:
orenmnero
From: <que...@bn...> - 2003-10-10 10:08:18
|
Hi All, In order to make the requence reset working automaticaly correctly I had to change the isSameSession methode (file session.cpp). This is what I use: bool Session::isSameSession( const UtcTimeOnly& start, const UtcTimeOnly& end, const UtcTimeStamp& time1, //time const UtcTimeStamp& time2 ) //creation time { QF_STACK_PUSH(Session::isSameSession) if ( !isSessionTime( start, end, time1 ) ) return false; if ( !isSessionTime( start, end, time2 ) ) return false; UtcTimeOnly time1TimeOnly (time1) ; if (time1TimeOnly < end) { UtcTimeStamp l_dt(end.getHour() ,end.getMinute(),end.getSecond() ) ; return (l_dt - time2 < UTC_DAY) ; } else { UtcTimeStamp l_dt(start.getHour() ,start.getMinute(),start.getSecond() ) ; return ( time2 > l_dt) ; } // return (time1 - time2 <= UTC_DAY); QF_STACK_POP } } This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. --------------------------------------------- Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie. |