NullStore.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Copyright (c) 2001-2014
3**
4** This file is part of the QuickFIX FIX Engine
5**
6** This file may be distributed under the terms of the quickfixengine.org
7** license as defined by quickfixengine.org and appearing in the file
8** LICENSE included in the packaging of this file.
9**
10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
12**
13** See http://www.quickfixengine.org/LICENSE for licensing information.
14**
15** Contact ask@quickfixengine.org if any conditions of this licensing are
16** not clear to you.
17**
18****************************************************************************/
19
20#ifdef _MSC_VER
21#include "stdafx.h"
22#else
23#include "config.h"
24#endif
25
26#include "NullStore.h"
27
28namespace FIX
29{
30
32{
33 return new NullStore();
34}
35
37{
38 delete pStore;
39}
40
41bool NullStore::set( int msgSeqNum, const std::string& msg )
42throw( IOException )
43{
44 return true;
45}
46
47void NullStore::get( int begin, int end,
48 std::vector < std::string > & messages ) const
49throw( IOException )
50{
51 messages.clear();
52}
53
54} //namespace FIX
This interface must be implemented to store and retrieve messages and sequence numbers.
void destroy(MessageStore *)
Definition NullStore.cpp:36
MessageStore * create(const SessionID &)
Definition NullStore.cpp:31
Null implementation of MessageStore.
Definition NullStore.h:59
bool set(int, const std::string &)
Definition NullStore.cpp:41
void get(int, int, std::vector< std::string > &) const
Definition NullStore.cpp:47
Unique session id consists of BeginString, SenderCompID and TargetCompID.
Definition SessionID.h:31

Generated on Sat Feb 3 2024 04:23:15 for QuickFIX by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2001