FIX::FileStoreFactory Class Reference

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

#include <FileStore.h>

Inheritance diagram for FIX::FileStoreFactory:
Collaboration diagram for FIX::FileStoreFactory:

Public Member Functions

 FileStoreFactory (const SessionSettings &settings)
 FileStoreFactory (const std::string &path)
MessageStorecreate (const SessionID &)
void destroy (MessageStore *)
Public Member Functions inherited from FIX::MessageStoreFactory
virtual ~MessageStoreFactory ()

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

◆ FileStoreFactory() [1/2]

FIX::FileStoreFactory::FileStoreFactory ( const SessionSettings & settings)
inline

Definition at line 42 of file FileStore.h.

43: m_settings( settings ) {};
SessionSettings m_settings
Definition FileStore.h:51

References m_settings.

◆ FileStoreFactory() [2/2]

FIX::FileStoreFactory::FileStoreFactory ( const std::string & path)
inline

Definition at line 44 of file FileStore.h.

45: m_path( path ) {};
std::string m_path
Definition FileStore.h:50

References m_path.

Member Function Documentation

◆ create()

MessageStore * FIX::FileStoreFactory::create ( const SessionID & s)
virtual

Implements FIX::MessageStoreFactory.

Definition at line 177 of file FileStore.cpp.

178{
179 if ( m_path.size() ) return new FileStore( m_path, s );
180
181 std::string path;
182 Dictionary settings = m_settings.get( s );
183 path = settings.getString( FILE_STORE_PATH );
184 return new FileStore( path, s );
185}
const char FILE_STORE_PATH[]

References FIX::FILE_STORE_PATH, FIX::Dictionary::getString(), m_path, and m_settings.

◆ destroy()

void FIX::FileStoreFactory::destroy ( MessageStore * pStore)
virtual

Implements FIX::MessageStoreFactory.

Definition at line 187 of file FileStore.cpp.

188{
189 delete pStore;
190}

Member Data Documentation

◆ m_path

std::string FIX::FileStoreFactory::m_path
private

Definition at line 50 of file FileStore.h.

Referenced by create(), and FileStoreFactory().

◆ m_settings

SessionSettings FIX::FileStoreFactory::m_settings
private

Definition at line 51 of file FileStore.h.

Referenced by create(), and FileStoreFactory().


The documentation for this class was generated from the following files:

Generated on for QuickFIX by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2001