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

FIX::FileStoreFactory Class Reference

Creates a file based implementation of MessageStore. More...

#include <FileStore.h>

Inheritance diagram for FIX::FileStoreFactory:

Inheritance graph
[legend]
Collaboration diagram for FIX::FileStoreFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FileStoreFactory (const SessionSettings &settings)
 FileStoreFactory (const std::string &path)
MessageStorecreate (const SessionID &)
void destroy (MessageStore *)

Private Attributes

std::string m_path
SessionSettings m_settings

Detailed Description

Creates a file based implementation of MessageStore.

Definition at line 39 of file FileStore.h.


Constructor & Destructor Documentation

FIX::FileStoreFactory::FileStoreFactory const SessionSettings settings  )  [inline]
 

Definition at line 42 of file FileStore.h.

00043 : m_settings( settings ) {};

FIX::FileStoreFactory::FileStoreFactory const std::string &  path  )  [inline]
 

Definition at line 44 of file FileStore.h.

00045 : m_path( path ) {};


Member Function Documentation

MessageStore * FIX::FileStoreFactory::create const SessionID  )  [virtual]
 

Implements FIX::MessageStoreFactory.

Definition at line 175 of file FileStore.cpp.

References FIX::FILE_STORE_PATH, FIX::SessionSettings::get(), FIX::Dictionary::getString(), QF_STACK_POP, and QF_STACK_PUSH.

00176 { QF_STACK_PUSH(FileStoreFactory::create)
00177 
00178   if ( m_path.size() ) return new FileStore( m_path, s );
00179 
00180   std::string path;
00181   Dictionary settings = m_settings.get( s );
00182   path = settings.getString( FILE_STORE_PATH );
00183   return new FileStore( path, s );
00184 
00185   QF_STACK_POP
00186 }

void FIX::FileStoreFactory::destroy MessageStore  )  [virtual]
 

Implements FIX::MessageStoreFactory.

Definition at line 188 of file FileStore.cpp.

References QF_STACK_POP, and QF_STACK_PUSH.

00189 { QF_STACK_PUSH(FileStoreFactory::destroy)
00190   delete pStore;
00191   QF_STACK_POP
00192 }


Member Data Documentation

std::string FIX::FileStoreFactory::m_path [private]
 

Definition at line 50 of file FileStore.h.

SessionSettings FIX::FileStoreFactory::m_settings [private]
 

Definition at line 51 of file FileStore.h.


The documentation for this class was generated from the following files:
Generated on Mon Jul 24 19:36:44 2006 for QuickFIX by doxygen 1.3.6-20040222 written by Dimitri van Heesch, © 1997-2001