Public Member Functions | Private Attributes
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

Definition at line 42 of file FileStore.h.

: m_settings( settings ) {};
FIX::FileStoreFactory::FileStoreFactory ( const std::string &  path) [inline]

Definition at line 44 of file FileStore.h.

: m_path( path ) {};

Member Function Documentation

Implements FIX::MessageStoreFactory.

Definition at line 169 of file FileStore.cpp.

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

{
  if ( m_path.size() ) return new FileStore( m_path, s );

  std::string path;
  Dictionary settings = m_settings.get( s );
  path = settings.getString( FILE_STORE_PATH );
  return new FileStore( path, s );
}
void FIX::FileStoreFactory::destroy ( MessageStore pStore) [virtual]

Implements FIX::MessageStoreFactory.

Definition at line 179 of file FileStore.cpp.

{
  delete pStore;
}

Member Data Documentation

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

Definition at line 50 of file FileStore.h.

Referenced by create().

Definition at line 51 of file FileStore.h.

Referenced by create().


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

Generated on Mon Sep 15 2014 01:23:57 for QuickFIX by doxygen 1.7.6.1 written by Dimitri van Heesch, © 1997-2001