RE: [Quickfix-developers] DBMS Support
Brought to you by:
orenmnero
From: Miller, O. <OM...@ri...> - 2004-01-14 21:26:21
|
It is a pretty simple matter of implementing this interface. I've added comments about what each method should do. Any of these should throw an IOException if there is a problem talking to a database. Note this is the .NET interface so you can implement it in C# or VB.NET and use the .NET database classes. public __gc __interface MessageStore { // persist a single message. The int is the message sequence number // and the string is the actual message. virtual bool set( int sequence, String* message ) throw ( IOException* ); // retrieve a persisted message, return false if message does // not exist virtual bool get( int sequence, String* message ) throw ( IOException* ); // retrieve a range of messages. Only messages that exist should // be returned. Gaps are ok. If there are no messages, return // an empy vector virtual void get( int begin, int end, ArrayList* ) throw ( IOException* ); // these just retrieve/modifier the target and sender compids virtual int getNextSenderMsgSeqNum() throw ( IOException* ); virtual int getNextTargetMsgSeqNum() throw ( IOException* ); virtual void setNextSenderMsgSeqNum( int next ) throw ( IOException* ); virtual void setNextTargetMsgSeqNum( int next ) throw ( IOException* ); virtual void incrNextSenderMsgSeqNum() throw ( IOException* ); virtual void incrNextTargetMsgSeqNum() throw ( IOException* ); // the time at which the session was created( i.e., when reset() was // last called virtual DateTime getCreationTime() throw ( IOException* ); // reset everything. Clear all messages out, set sequence numbers to 1 // and set the creation time virtual void reset() throw ( IOException* ); }; hope this helps --oren -----Original Message----- From: Sa...@uc... [mailto:sa...@uc...]=20 Sent: Wednesday, January 14, 2004 8:41 AM To: Quickfix-Developers Subject: [Quickfix-developers] DBMS Support Hello all... Would anyone have any examples on how to provide DBMS support for other DBMS systems (sybase,mssqlsvr). I took a long look at MySQLMessageStore.h and ... I have no idea how to make my own :( ...on a good note, I've been making good progress on writing a Fix interface to the Nasdaq SuperMontage. This is the third time I'm writing this (third fix engine). It's been slow going, because I have yet to take the "NET" plunge - until now - (another reason why using this product has been good for me). I've been writing fix interfaces for a few years now, with several engines, most of which ended up as bad experiences. As far as functionality, implementation and creativity, I'd say this product is right up there... great stuff! Thanks, Sam ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers |