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.

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}
bool set(int, const std::string &)
Definition NullStore.cpp:41

◆ 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

References m_creationTime.

◆ getNextSenderMsgSeqNum()

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

Implements FIX::MessageStore.

Definition at line 66 of file NullStore.h.

67 { return m_nextSenderMsgSeqNum; }

References m_nextSenderMsgSeqNum.

◆ getNextTargetMsgSeqNum()

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

Implements FIX::MessageStore.

Definition at line 68 of file NullStore.h.

69 { return m_nextTargetMsgSeqNum; }

References m_nextTargetMsgSeqNum.

◆ incrNextSenderMsgSeqNum()

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

Implements FIX::MessageStore.

Definition at line 74 of file NullStore.h.

References m_nextSenderMsgSeqNum.

◆ incrNextTargetMsgSeqNum()

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

Implements FIX::MessageStore.

Definition at line 76 of file NullStore.h.

References m_nextTargetMsgSeqNum.

◆ 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

◆ 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}

Referenced by setCreationTime().

◆ setCreationTime()

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

Definition at line 79 of file NullStore.h.

References m_creationTime, and set().

◆ 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; }

References m_nextSenderMsgSeqNum.

◆ 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; }

References m_nextTargetMsgSeqNum.

Member Data Documentation

◆ m_creationTime

UtcTimeStamp FIX::NullStore::m_creationTime
private

Definition at line 94 of file NullStore.h.

Referenced by getCreationTime(), reset(), and setCreationTime().

◆ m_nextSenderMsgSeqNum

int FIX::NullStore::m_nextSenderMsgSeqNum
private

◆ m_nextTargetMsgSeqNum

int FIX::NullStore::m_nextTargetMsgSeqNum
private

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

Generated on Thu May 22 2025 08:23:50 for QuickFIX by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2001