QuickFIX: /home/omiller/Development/autobuild/quickfix/src/C++/NullStore.cpp Source File

Index Source Files Annotated Class List Alphabetical Class List Class Hierarchy Graphical Class Hierarchy

# NullStore.cpp

Go to the documentation of this file.

    00001 /****************************************************************************
    00002 ** Copyright (c) quickfixengine.org  All rights reserved.
    00003 **
    00004 ** This file is part of the QuickFIX FIX Engine
    00005 **
    00006 ** This file may be distributed under the terms of the quickfixengine.org
    00007 ** license as defined by quickfixengine.org and appearing in the file
    00008 ** LICENSE included in the packaging of this file.
    00009 **
    00010 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
    00011 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    00012 **
    00013 ** See http://www.quickfixengine.org/LICENSE for licensing information.
    00014 **
    00015 ** Contact ask@quickfixengine.org if any conditions of this licensing are
    00016 ** not clear to you.
    00017 **
    00018 ****************************************************************************/
    00019
    00020 #ifdef _MSC_VER
    00021 #include "stdafx.h"
    00022 #else
    00023 #include "config.h"
    00024 #endif
    00025 #include "CallStack.h"
    00026
    00027 #include "NullStore.h"
    00028
    00029 namespace FIX
    00030 {
    00031
    00032 MessageStore* NullStoreFactory::create( const SessionID& )
    00033 { QF_STACK_PUSH(NullStoreFactory::create)
    00034   return new NullStore();
    00035   QF_STACK_POP
    00036 }
    00037
    00038 void NullStoreFactory::destroy( MessageStore* pStore )
    00039 { QF_STACK_PUSH(NullStoreFactory::destroy)
    00040   delete pStore;
    00041   QF_STACK_POP
    00042 }
    00043
    00044 bool NullStore::set( int msgSeqNum, const std::string& msg )
    00045 throw( IOException )
    00046 { QF_STACK_PUSH(NullStore::set)
    00047   return true;
    00048   QF_STACK_POP
    00049 }
    00050
    00051 void NullStore::get( int begin, int end,
    00052                        std::vector < std::string > & messages ) const
    00053 throw( IOException )
    00054 { QF_STACK_PUSH(NullStore::get)
    00055   messages.clear();
    00056   QF_STACK_POP
    00057 }
    00058
    00059 } //namespace FIX