NullStore.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 
3 /****************************************************************************
4 ** Copyright (c) 2001-2014
5 **
6 ** This file is part of the QuickFIX FIX Engine
7 **
8 ** This file may be distributed under the terms of the quickfixengine.org
9 ** license as defined by quickfixengine.org and appearing in the file
10 ** LICENSE included in the packaging of this file.
11 **
12 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
13 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
14 **
15 ** See http://www.quickfixengine.org/LICENSE for licensing information.
16 **
17 ** Contact ask@quickfixengine.org if any conditions of this licensing are
18 ** not clear to you.
19 **
20 ****************************************************************************/
21 
22 #ifndef FIX_NULLSTORE_H
23 #define FIX_NULLSTORE_H
24 
25 #ifdef _MSC_VER
26 #pragma warning( disable : 4503 4355 4786 4290 )
27 #endif
28 
29 #include "MessageStore.h"
30 #include "SessionSettings.h"
31 #include <string>
32 
33 namespace FIX
34 {
35 class Session;
36 
43 class NullStoreFactory : public MessageStoreFactory
44 {
45 public:
46  MessageStore* create( const SessionID& );
47  void destroy( MessageStore* );
48 };
58 class NullStore : public MessageStore
59 {
60 public:
62 
63  bool set( int, const std::string& ) throw ( IOException );
64  void get( int, int, std::vector < std::string > & ) const throw ( IOException );
65 
66  int getNextSenderMsgSeqNum() const throw ( IOException )
67  { return m_nextSenderMsgSeqNum; }
68  int getNextTargetMsgSeqNum() const throw ( IOException )
69  { return m_nextTargetMsgSeqNum; }
70  void setNextSenderMsgSeqNum( int value ) throw ( IOException )
71  { m_nextSenderMsgSeqNum = value; }
72  void setNextTargetMsgSeqNum( int value ) throw ( IOException )
73  { m_nextTargetMsgSeqNum = value; }
74  void incrNextSenderMsgSeqNum() throw ( IOException )
76  void incrNextTargetMsgSeqNum() throw ( IOException )
78 
79  void setCreationTime( const UtcTimeStamp& creationTime ) throw ( IOException )
80  { m_creationTime = creationTime; }
81  UtcTimeStamp getCreationTime() const throw ( IOException )
82  { return m_creationTime; }
83 
84  void reset() throw ( IOException )
85  {
88  }
89  void refresh() throw ( IOException ) {}
90 
91 private:
95 };
96 }
97 
98 #endif // FIX_NULLSTORE_H
99 
FIX::NullStore::setCreationTime
void setCreationTime(const UtcTimeStamp &creationTime)
Definition: NullStore.h:96
FIX::NullStore::incrNextTargetMsgSeqNum
void incrNextTargetMsgSeqNum()
Definition: NullStore.h:93
FIX::NullStore::setNextSenderMsgSeqNum
void setNextSenderMsgSeqNum(int value)
Definition: NullStore.h:87
FIX::NullStore::get
void get(int, int, std::vector< std::string > &) const
Definition: NullStore.cpp:64
SessionSettings.h
FIX::UtcTimeStamp
Date and Time represented in UTC.
Definition: FieldTypes.h:599
FIX::NullStoreFactory::create
MessageStore * create(const SessionID &)
Definition: NullStore.cpp:48
FIX::NullStore::getNextTargetMsgSeqNum
int getNextTargetMsgSeqNum() const
Definition: NullStore.h:85
FIX::NullStoreFactory::destroy
void destroy(MessageStore *)
Definition: NullStore.cpp:53
FIX::NullStore::getNextSenderMsgSeqNum
int getNextSenderMsgSeqNum() const
Definition: NullStore.h:83
FIX::NullStore::reset
void reset()
Definition: NullStore.h:101
FIX::NullStore::incrNextSenderMsgSeqNum
void incrNextSenderMsgSeqNum()
Definition: NullStore.h:91
FIX::NullStore::m_nextSenderMsgSeqNum
int m_nextSenderMsgSeqNum
Definition: NullStore.h:109
FIX::IOException
IO Error.
Definition: Exceptions.h:255
FIX::NullStore::setNextTargetMsgSeqNum
void setNextTargetMsgSeqNum(int value)
Definition: NullStore.h:89
FIX::UtcTimeStamp::setCurrent
void setCurrent()
Definition: FieldTypes.h:643
FIX::NullStore::m_creationTime
UtcTimeStamp m_creationTime
Definition: NullStore.h:111
FIX::NullStore::getCreationTime
UtcTimeStamp getCreationTime() const
Definition: NullStore.h:98
FIX
Definition: Acceptor.cpp:34
FIX::NullStore::NullStore
NullStore()
Definition: NullStore.h:78
FIX::NullStore::m_nextTargetMsgSeqNum
int m_nextTargetMsgSeqNum
Definition: NullStore.h:110
FIX::NullStore::set
bool set(int, const std::string &)
Definition: NullStore.cpp:58
FIX::NullStore::refresh
void refresh()
Definition: NullStore.h:106
MessageStore.h

Generated on Wed Apr 29 2020 19:41:30 for QuickFIX by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2001