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
33namespace FIX
34{
35class Session;
36
44{
45public:
46 MessageStore* create( const SessionID& );
47 void destroy( MessageStore* );
48};
58class NullStore : public MessageStore
59{
60public:
62
63 bool set( int, const std::string& ) throw ( IOException );
64 void get( int, int, std::vector < std::string > & ) const throw ( IOException );
65
70 void setNextSenderMsgSeqNum( int value ) throw ( IOException )
71 { m_nextSenderMsgSeqNum = value; }
72 void setNextTargetMsgSeqNum( int value ) throw ( IOException )
73 { m_nextTargetMsgSeqNum = value; }
78
83
90
91private:
95};
96}
97
98#endif // FIX_NULLSTORE_H
99
This interface must be implemented to create a MessageStore.
This interface must be implemented to store and retrieve messages and sequence numbers.
Null implementation of MessageStore.
Definition NullStore.h:44
void destroy(MessageStore *)
Definition NullStore.cpp:36
MessageStore * create(const SessionID &)
Definition NullStore.cpp:31
Null implementation of MessageStore.
Definition NullStore.h:59
void refresh()
Definition NullStore.h:89
bool set(int, const std::string &)
Definition NullStore.cpp:41
int getNextSenderMsgSeqNum() const
Definition NullStore.h:66
UtcTimeStamp getCreationTime() const
Definition NullStore.h:81
int getNextTargetMsgSeqNum() const
Definition NullStore.h:68
void incrNextSenderMsgSeqNum()
Definition NullStore.h:74
int m_nextTargetMsgSeqNum
Definition NullStore.h:93
UtcTimeStamp m_creationTime
Definition NullStore.h:94
void setCreationTime(const UtcTimeStamp &creationTime)
Definition NullStore.h:79
void get(int, int, std::vector< std::string > &) const
Definition NullStore.cpp:47
int m_nextSenderMsgSeqNum
Definition NullStore.h:92
void setNextTargetMsgSeqNum(int value)
Definition NullStore.h:72
void incrNextTargetMsgSeqNum()
Definition NullStore.h:76
void setNextSenderMsgSeqNum(int value)
Definition NullStore.h:70
Unique session id consists of BeginString, SenderCompID and TargetCompID.
Definition SessionID.h:31
Date and Time represented in UTC.
Definition FieldTypes.h:583

Generated on Thu Feb 29 2024 22:38:19 for QuickFIX by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2001