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

#include <MessageStore.h>

Collaboration diagram for FIX::MessageStoreExceptionWrapper:
Collaboration graph
[legend]

Public Member Functions

 MessageStoreExceptionWrapper (MessageStore *pStore)
 
 ~MessageStoreExceptionWrapper ()
 
bool set (int, const std::string &, bool &, IOException &)
 
void get (int, int, std::vector< std::string > &, bool &, IOException &) const
 
int getNextSenderMsgSeqNum (bool &, IOException &) const
 
int getNextTargetMsgSeqNum (bool &, IOException &) const
 
void setNextSenderMsgSeqNum (int, bool &, IOException &)
 
void setNextTargetMsgSeqNum (int, bool &, IOException &)
 
void incrNextSenderMsgSeqNum (bool &, IOException &)
 
void incrNextTargetMsgSeqNum (bool &, IOException &)
 
UtcTimeStamp getCreationTime (bool &, IOException &)
 
void reset (bool &, IOException &)
 
void refresh (bool &, IOException &)
 

Private Attributes

MessageStorem_pStore
 

Detailed Description

Definition at line 165 of file MessageStore.h.

Constructor & Destructor Documentation

◆ MessageStoreExceptionWrapper()

FIX::MessageStoreExceptionWrapper::MessageStoreExceptionWrapper ( MessageStore pStore)
inline

Definition at line 170 of file MessageStore.h.

◆ ~MessageStoreExceptionWrapper()

FIX::MessageStoreExceptionWrapper::~MessageStoreExceptionWrapper ( )
inline

Definition at line 171 of file MessageStore.h.

Member Function Documentation

◆ get()

void FIX::MessageStoreExceptionWrapper::get ( int  begin,
int  end,
std::vector< std::string > &  msgs,
bool &  threw,
IOException ex 
) const

Definition at line 91 of file MessageStore.cpp.

91 {
92  threw = false;
93  try { return m_pStore->getNextTargetMsgSeqNum(); }
94  catch ( IOException & e ) { threw = true; ex = e; return 0; }
95 }
96 

References FIX::MessageStore::getNextTargetMsgSeqNum(), and m_pStore.

◆ getCreationTime()

UtcTimeStamp FIX::MessageStoreExceptionWrapper::getCreationTime ( bool &  threw,
IOException ex 
)

Definition at line 140 of file MessageStore.cpp.

140 {
141  threw = false;
142  try { m_pStore->refresh(); }
143  catch ( IOException & e ) { threw = true; ex = e; }
144 }
145 

References m_pStore, and FIX::MessageStore::refresh().

◆ getNextSenderMsgSeqNum()

int FIX::MessageStoreExceptionWrapper::getNextSenderMsgSeqNum ( bool &  threw,
IOException ex 
) const

Definition at line 98 of file MessageStore.cpp.

98 {
99  threw = false;
100  try { m_pStore->setNextSenderMsgSeqNum( num ); }
101  catch ( IOException & e ) { threw = true; ex = e; }
102 }
103 

References m_pStore, and FIX::MessageStore::setNextSenderMsgSeqNum().

◆ getNextTargetMsgSeqNum()

int FIX::MessageStoreExceptionWrapper::getNextTargetMsgSeqNum ( bool &  threw,
IOException ex 
) const

Definition at line 105 of file MessageStore.cpp.

105 {
106  threw = false;
107  try { m_pStore->setNextTargetMsgSeqNum( num ); }
108  catch ( IOException & e ) { threw = true; ex = e; }
109 }
110 

References m_pStore, and FIX::MessageStore::setNextTargetMsgSeqNum().

◆ incrNextSenderMsgSeqNum()

void FIX::MessageStoreExceptionWrapper::incrNextSenderMsgSeqNum ( bool &  threw,
IOException ex 
)

Definition at line 126 of file MessageStore.cpp.

126 {
127  threw = false;
128  try { return m_pStore->getCreationTime(); }
129  catch ( IOException & e ) { threw = true; ex = e; return UtcTimeStamp(); }
130 }
131 

References FIX::MessageStore::getCreationTime(), m_pStore, and FIX::TYPE::UtcTimeStamp.

◆ incrNextTargetMsgSeqNum()

void FIX::MessageStoreExceptionWrapper::incrNextTargetMsgSeqNum ( bool &  threw,
IOException ex 
)

Definition at line 133 of file MessageStore.cpp.

133 {
134  threw = false;
135  try { m_pStore->reset(); }
136  catch ( IOException & e ) { threw = true; ex = e; }
137 }
138 

References m_pStore, and FIX::MessageStore::reset().

◆ refresh()

void FIX::MessageStoreExceptionWrapper::refresh ( bool &  threw,
IOException ex 
)

Definition at line 154 of file MessageStore.cpp.

◆ reset()

void FIX::MessageStoreExceptionWrapper::reset ( bool &  threw,
IOException ex 
)

Definition at line 147 of file MessageStore.cpp.

◆ set()

bool FIX::MessageStoreExceptionWrapper::set ( int  num,
const std::string &  msg,
bool &  threw,
IOException ex 
)

Definition at line 84 of file MessageStore.cpp.

84 {
85  threw = false;
86  try { return m_pStore->getNextSenderMsgSeqNum(); }
87  catch ( IOException & e ) { threw = true; ex = e; return 0; }
88 }
89 

References FIX::MessageStore::getNextSenderMsgSeqNum(), and m_pStore.

◆ setNextSenderMsgSeqNum()

void FIX::MessageStoreExceptionWrapper::setNextSenderMsgSeqNum ( int  num,
bool &  threw,
IOException ex 
)

Definition at line 112 of file MessageStore.cpp.

112 {
113  threw = false;
115  catch ( IOException & e ) { threw = true; ex = e; }
116 }
117 

References FIX::MessageStore::incrNextSenderMsgSeqNum(), and m_pStore.

◆ setNextTargetMsgSeqNum()

void FIX::MessageStoreExceptionWrapper::setNextTargetMsgSeqNum ( int  num,
bool &  threw,
IOException ex 
)

Definition at line 119 of file MessageStore.cpp.

119 {
120  threw = false;
122  catch ( IOException & e ) { threw = true; ex = e; }
123 }
124 

References FIX::MessageStore::incrNextTargetMsgSeqNum(), and m_pStore.

Member Data Documentation

◆ m_pStore

MessageStore* FIX::MessageStoreExceptionWrapper::m_pStore
private

The documentation for this class was generated from the following files:
FIX::MessageStoreExceptionWrapper::m_pStore
MessageStore * m_pStore
Definition: MessageStore.h:168
FIX::MessageStore::getCreationTime
virtual UtcTimeStamp getCreationTime() const =0
FIX::MessageStore::incrNextSenderMsgSeqNum
virtual void incrNextSenderMsgSeqNum()=0
FIX::MessageStore::incrNextTargetMsgSeqNum
virtual void incrNextTargetMsgSeqNum()=0
FIX::TYPE::UtcTimeStamp
Definition: FieldTypes.h:938
FIX::MessageStore::reset
virtual void reset()=0
FIX::MessageStore::setNextTargetMsgSeqNum
virtual void setNextTargetMsgSeqNum(int)=0
FIX::MessageStore::refresh
virtual void refresh()=0
FIX::MessageStore::getNextSenderMsgSeqNum
virtual int getNextSenderMsgSeqNum() const =0
FIX::MessageStore::getNextTargetMsgSeqNum
virtual int getNextTargetMsgSeqNum() const =0
FIX::MessageStore::setNextSenderMsgSeqNum
virtual void setNextSenderMsgSeqNum(int)=0

Generated on Wed Apr 29 2020 19:41:30 for QuickFIX by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2001