Public Member Functions | Private Attributes | List of all members
FIX::FileStoreFactory Class Reference

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

#include <FileStore.h>

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

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

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

Definition at line 42 of file FileStore.h.

43 : m_settings( settings ) {};
SessionSettings m_settings
Definition: FileStore.h:51
FIX::FileStoreFactory::FileStoreFactory ( const std::string &  path)

Definition at line 44 of file FileStore.h.

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

Member Function Documentation

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

Implements FIX::MessageStoreFactory.

Definition at line 166 of file FileStore.cpp.

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

167 {
168  if ( m_path.size() ) return new FileStore( m_path, s );
170  std::string path;
171  Dictionary settings = m_settings.get( s );
172  path = settings.getString( FILE_STORE_PATH );
173  return new FileStore( path, s );
174 }
const char FILE_STORE_PATH[]
const Dictionary & get(const SessionID &) const
Get a dictionary for a session.
SessionSettings m_settings
Definition: FileStore.h:51
std::string m_path
Definition: FileStore.h:50
std::string getString(const std::string &, bool capitalize=false) const
Get a value as a string.
Definition: Dictionary.cpp:32
void FIX::FileStoreFactory::destroy ( MessageStore pStore)

Implements FIX::MessageStoreFactory.

Definition at line 176 of file FileStore.cpp.

177 {
178  delete pStore;
179 }

Member Data Documentation

std::string FIX::FileStoreFactory::m_path

Definition at line 50 of file FileStore.h.

Referenced by create().

SessionSettings FIX::FileStoreFactory::m_settings

Definition at line 51 of file FileStore.h.

Referenced by create().

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

Generated on Sat Mar 29 2014 15:13:34 for QuickFIX by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2001