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 
28 namespace FIX
29 {
30 
31 MessageStore* NullStoreFactory::create( const SessionID& )
32 {
33  return new NullStore();
34 }
35 
36 void NullStoreFactory::destroy( MessageStore* pStore )
37 {
38  delete pStore;
39 }
40 
41 bool NullStore::set( int msgSeqNum, const std::string& msg )
42 throw( IOException )
43 {
44  return true;
45 }
46 
47 void NullStore::get( int begin, int end,
48  std::vector < std::string > & messages ) const
49 throw( IOException )
50 {
51  messages.clear();
52 }
53 
54 } //namespace FIX
FIX::NullStore::get
void get(int, int, std::vector< std::string > &) const
Definition: NullStore.cpp:64
FIX::NullStoreFactory::create
MessageStore * create(const SessionID &)
Definition: NullStore.cpp:48
FIX::NullStoreFactory::destroy
void destroy(MessageStore *)
Definition: NullStore.cpp:53
FIX::IOException
IO Error.
Definition: Exceptions.h:255
FIX
Definition: Acceptor.cpp:34
NullStore.h
FIX::NullStore::set
bool set(int, const std::string &)
Definition: NullStore.cpp:58

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