![]() |
![]() |
|
Index
Source Files
Annotated Class List
Alphabetical Class List
Class Hierarchy
Graphical Class Hierarchy
|
||
![]() |
![]() |
#include <MessageStore.h>
Inheritance diagram for FIX::MemoryStore:


Public Member Functions | |
| MemoryStore () | |
| bool | set (int, const std::string &) throw ( IOException ) |
| void | get (int, int, std::vector< std::string > &) const throw ( IOException ) |
| int | getNextSenderMsgSeqNum () const throw ( IOException ) |
| int | getNextTargetMsgSeqNum () const throw ( IOException ) |
| void | setNextSenderMsgSeqNum (int value) throw ( IOException ) |
| void | setNextTargetMsgSeqNum (int value) throw ( IOException ) |
| void | incrNextSenderMsgSeqNum () throw ( IOException ) |
| void | incrNextTargetMsgSeqNum () throw ( IOException ) |
| void | setCreationTime (const UtcTimeStamp &creationTime) throw ( IOException ) |
| UtcTimeStamp | getCreationTime () const throw ( IOException ) |
| void | reset () throw ( IOException ) |
| void | refresh () throw ( IOException ) |
Private Types | |
| typedef std::map< int, std::string > | Messages |
Private Attributes | |
| Messages | m_messages |
| int | m_nextSenderMsgSeqNum |
| int | m_nextTargetMsgSeqNum |
| UtcTimeStamp | m_creationTime |
This will lose all data on process terminition. This class should only be used for test applications, never in production.
Definition at line 96 of file MessageStore.h.
|
|
Definition at line 130 of file MessageStore.h. |
|
|
Definition at line 99 of file MessageStore.h. References m_nextSenderMsgSeqNum, and m_nextTargetMsgSeqNum.
00099 : m_nextSenderMsgSeqNum( 1 ), m_nextTargetMsgSeqNum( 1 ) {} |
|
||||||||||||||||
|
Implements FIX::MessageStore. Definition at line 51 of file MessageStore.cpp. References QF_STACK_POP, and QF_STACK_PUSH.
00054 { QF_STACK_PUSH(MemoryStore::get)
00055
00056 messages.clear();
00057 Messages::const_iterator find = m_messages.find( begin );
00058 for ( ; find != m_messages.end() && find->first <= end; ++find )
00059 messages.push_back( find->second );
00060
00061 QF_STACK_POP
00062 }
|
|
|
Implements FIX::MessageStore. Definition at line 119 of file MessageStore.h. References m_creationTime. Referenced by FIX::FileStore::setSession().
00120 { return m_creationTime; }
|
|
|
Implements FIX::MessageStore. Definition at line 104 of file MessageStore.h. References m_nextSenderMsgSeqNum.
00105 { return m_nextSenderMsgSeqNum; }
|
|
|
Implements FIX::MessageStore. Definition at line 106 of file MessageStore.h. References m_nextTargetMsgSeqNum.
00107 { return m_nextTargetMsgSeqNum; }
|
|
|
Implements FIX::MessageStore. Definition at line 112 of file MessageStore.h. References m_nextSenderMsgSeqNum.
00113 { ++m_nextSenderMsgSeqNum; }
|
|
|
Implements FIX::MessageStore. Definition at line 114 of file MessageStore.h. References m_nextTargetMsgSeqNum.
00115 { ++m_nextTargetMsgSeqNum; }
|
|
|
Implements FIX::MessageStore. Definition at line 127 of file MessageStore.h.
00127 {}
|
|
|
Implements FIX::MessageStore. Definition at line 122 of file MessageStore.h. References m_creationTime, m_nextSenderMsgSeqNum, m_nextTargetMsgSeqNum, and FIX::UtcTimeStamp::setCurrent().
00123 {
00124 m_nextSenderMsgSeqNum = 1; m_nextTargetMsgSeqNum = 1;
00125 m_messages.clear(); m_creationTime.setCurrent();
00126 }
|
|
||||||||||||
|
Implements FIX::MessageStore. Definition at line 43 of file MessageStore.cpp. References QF_STACK_POP, and QF_STACK_PUSH.
00045 { QF_STACK_PUSH(MemoryStore::set)
00046 m_messages[ msgSeqNum ] = msg;
00047 return true;
00048 QF_STACK_POP
00049 }
|
|
|
Definition at line 117 of file MessageStore.h. References m_creationTime. Referenced by FIX::FileStore::populateCache().
00118 { m_creationTime = creationTime; }
|
|
|
Implements FIX::MessageStore. Definition at line 108 of file MessageStore.h. References m_nextSenderMsgSeqNum. Referenced by FIX::FileStore::populateCache().
00109 { m_nextSenderMsgSeqNum = value; }
|
|
|
Implements FIX::MessageStore. Definition at line 110 of file MessageStore.h. References m_nextTargetMsgSeqNum. Referenced by FIX::FileStore::populateCache().
00111 { m_nextTargetMsgSeqNum = value; }
|
|
|
Definition at line 135 of file MessageStore.h. Referenced by getCreationTime(), reset(), and setCreationTime(). |
|
|
Definition at line 132 of file MessageStore.h. |
|
|
Definition at line 133 of file MessageStore.h. Referenced by getNextSenderMsgSeqNum(), incrNextSenderMsgSeqNum(), MemoryStore(), reset(), and setNextSenderMsgSeqNum(). |
|
|
Definition at line 134 of file MessageStore.h. Referenced by getNextTargetMsgSeqNum(), incrNextTargetMsgSeqNum(), MemoryStore(), reset(), and setNextTargetMsgSeqNum(). |
1.3.6-20040222 written by Dimitri van Heesch,
© 1997-2001