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

Null implementation of MessageStore. More...

#include <NullStore.h>

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

Public Member Functions

 NullStore ()
 
bool set (int, const std::string &) throw ( IOException )
 
void get (int, int, std::vector< std::string > &) const throw ( IOException )
 
int getNextSenderMsgSeqNum () const throw ( IOException )
 
int getNextTargetMsgSeqNum () const throw ( IOException )
 
void setNextSenderMsgSeqNum (int value) throw ( IOException )
 
void setNextTargetMsgSeqNum (int value) throw ( IOException )
 
void incrNextSenderMsgSeqNum () throw ( IOException )
 
void incrNextTargetMsgSeqNum () throw ( IOException )
 
void setCreationTime (const UtcTimeStamp &creationTime) throw ( IOException )
 
UtcTimeStamp getCreationTime () const throw ( IOException )
 
void reset () throw ( IOException )
 
void refresh () throw ( IOException )
 
- Public Member Functions inherited from FIX::MessageStore
virtual ~MessageStore ()
 

Private Attributes

int m_nextSenderMsgSeqNum
 
int m_nextTargetMsgSeqNum
 
UtcTimeStamp m_creationTime
 

Detailed Description

Null implementation of MessageStore.

Will not actually store messages. Useful for admin-only or market data-only applications.

Definition at line 58 of file NullStore.h.

Constructor & Destructor Documentation

◆ NullStore()

FIX::NullStore::NullStore ( )
inline

Definition at line 61 of file NullStore.h.

int m_nextTargetMsgSeqNum
Definition: NullStore.h:93
int m_nextSenderMsgSeqNum
Definition: NullStore.h:92

Member Function Documentation

◆ get()

void FIX::NullStore::get ( int  begin,
int  end,
std::vector< std::string > &  messages 
) const
throw (IOException
)
virtual

Implements FIX::MessageStore.

Definition at line 47 of file NullStore.cpp.

50 {
51  messages.clear();
52 }

◆ getCreationTime()

UtcTimeStamp FIX::NullStore::getCreationTime ( ) const
throw (IOException
)
inlinevirtual

Implements FIX::MessageStore.

Definition at line 81 of file NullStore.h.

82  { return m_creationTime; }
UtcTimeStamp m_creationTime
Definition: NullStore.h:94

◆ getNextSenderMsgSeqNum()

int FIX::NullStore::getNextSenderMsgSeqNum ( ) const
throw (IOException
)
inlinevirtual

Implements FIX::MessageStore.

Definition at line 66 of file NullStore.h.

67  { return m_nextSenderMsgSeqNum; }
int m_nextSenderMsgSeqNum
Definition: NullStore.h:92

◆ getNextTargetMsgSeqNum()

int FIX::NullStore::getNextTargetMsgSeqNum ( ) const
throw (IOException
)
inlinevirtual

Implements FIX::MessageStore.

Definition at line 68 of file NullStore.h.

69  { return m_nextTargetMsgSeqNum; }
int m_nextTargetMsgSeqNum
Definition: NullStore.h:93

◆ incrNextSenderMsgSeqNum()

void FIX::NullStore::incrNextSenderMsgSeqNum ( )
throw (IOException
)
inlinevirtual

Implements FIX::MessageStore.

Definition at line 74 of file NullStore.h.

int m_nextSenderMsgSeqNum
Definition: NullStore.h:92

◆ incrNextTargetMsgSeqNum()

void FIX::NullStore::incrNextTargetMsgSeqNum ( )
throw (IOException
)
inlinevirtual

Implements FIX::MessageStore.

Definition at line 76 of file NullStore.h.

int m_nextTargetMsgSeqNum
Definition: NullStore.h:93

◆ refresh()

void FIX::NullStore::refresh ( )
throw (IOException
)
inlinevirtual

Implements FIX::MessageStore.

Definition at line 89 of file NullStore.h.

89 {}

◆ reset()

void FIX::NullStore::reset ( )
throw (IOException
)
inlinevirtual

Implements FIX::MessageStore.

Definition at line 84 of file NullStore.h.

85  {
88  }
UtcTimeStamp m_creationTime
Definition: NullStore.h:94
int m_nextTargetMsgSeqNum
Definition: NullStore.h:93
int m_nextSenderMsgSeqNum
Definition: NullStore.h:92

◆ set()

bool FIX::NullStore::set ( int  msgSeqNum,
const std::string &  msg 
)
throw (IOException
)
virtual

Implements FIX::MessageStore.

Definition at line 41 of file NullStore.cpp.

43 {
44  return true;
45 }

◆ setCreationTime()

void FIX::NullStore::setCreationTime ( const UtcTimeStamp creationTime)
throw (IOException
)
inline

Definition at line 79 of file NullStore.h.

80  { m_creationTime = creationTime; }
UtcTimeStamp m_creationTime
Definition: NullStore.h:94

◆ setNextSenderMsgSeqNum()

void FIX::NullStore::setNextSenderMsgSeqNum ( int  value)
throw (IOException
)
inlinevirtual

Implements FIX::MessageStore.

Definition at line 70 of file NullStore.h.

71  { m_nextSenderMsgSeqNum = value; }
int m_nextSenderMsgSeqNum
Definition: NullStore.h:92

◆ setNextTargetMsgSeqNum()

void FIX::NullStore::setNextTargetMsgSeqNum ( int  value)
throw (IOException
)
inlinevirtual

Implements FIX::MessageStore.

Definition at line 72 of file NullStore.h.

73  { m_nextTargetMsgSeqNum = value; }
int m_nextTargetMsgSeqNum
Definition: NullStore.h:93

Member Data Documentation

◆ m_creationTime

UtcTimeStamp FIX::NullStore::m_creationTime
private

Definition at line 94 of file NullStore.h.

◆ m_nextSenderMsgSeqNum

int FIX::NullStore::m_nextSenderMsgSeqNum
private

Definition at line 92 of file NullStore.h.

◆ m_nextTargetMsgSeqNum

int FIX::NullStore::m_nextTargetMsgSeqNum
private

Definition at line 93 of file NullStore.h.


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

Generated on Wed Aug 28 2019 14:13:46 for QuickFIX by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2001