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 150 of file MessageStore.h.

Constructor & Destructor Documentation

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

Definition at line 155 of file MessageStore.h.

155 : m_pStore( pStore ) {}
FIX::MessageStoreExceptionWrapper::~MessageStoreExceptionWrapper ( )
inline

Definition at line 156 of file MessageStore.h.

156 { delete m_pStore; }

Member Function Documentation

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

Definition at line 76 of file MessageStore.cpp.

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

77 {
78  threw = false;
79  try { m_pStore->get( begin, end, msgs ); }
80  catch ( IOException & e ) { threw = true; ex = e; }
81 }
virtual void get(int, int, std::vector< std::string > &) const =0
UtcTimeStamp FIX::MessageStoreExceptionWrapper::getCreationTime ( bool &  threw,
IOException ex 
)

Definition at line 125 of file MessageStore.cpp.

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

126 {
127  threw = false;
128  try { return m_pStore->getCreationTime(); }
129  catch ( IOException & e ) { threw = true; ex = e; return UtcTimeStamp(); }
130 }
virtual UtcTimeStamp getCreationTime() const =0
int FIX::MessageStoreExceptionWrapper::getNextSenderMsgSeqNum ( bool &  threw,
IOException ex 
) const

Definition at line 83 of file MessageStore.cpp.

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

84 {
85  threw = false;
86  try { return m_pStore->getNextSenderMsgSeqNum(); }
87  catch ( IOException & e ) { threw = true; ex = e; return 0; }
88 }
virtual int getNextSenderMsgSeqNum() const =0
int FIX::MessageStoreExceptionWrapper::getNextTargetMsgSeqNum ( bool &  threw,
IOException ex 
) const

Definition at line 90 of file MessageStore.cpp.

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

91 {
92  threw = false;
93  try { return m_pStore->getNextTargetMsgSeqNum(); }
94  catch ( IOException & e ) { threw = true; ex = e; return 0; }
95 }
virtual int getNextTargetMsgSeqNum() const =0
void FIX::MessageStoreExceptionWrapper::incrNextSenderMsgSeqNum ( bool &  threw,
IOException ex 
)

Definition at line 111 of file MessageStore.cpp.

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

112 {
113  threw = false;
115  catch ( IOException & e ) { threw = true; ex = e; }
116 }
virtual void incrNextSenderMsgSeqNum()=0
void FIX::MessageStoreExceptionWrapper::incrNextTargetMsgSeqNum ( bool &  threw,
IOException ex 
)

Definition at line 118 of file MessageStore.cpp.

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

119 {
120  threw = false;
122  catch ( IOException & e ) { threw = true; ex = e; }
123 }
virtual void incrNextTargetMsgSeqNum()=0
void FIX::MessageStoreExceptionWrapper::refresh ( bool &  threw,
IOException ex 
)

Definition at line 139 of file MessageStore.cpp.

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

140 {
141  threw = false;
142  try { m_pStore->refresh(); }
143  catch ( IOException & e ) { threw = true; ex = e; }
144 }
virtual void refresh()=0
void FIX::MessageStoreExceptionWrapper::reset ( bool &  threw,
IOException ex 
)

Definition at line 132 of file MessageStore.cpp.

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

133 {
134  threw = false;
135  try { m_pStore->reset(); }
136  catch ( IOException & e ) { threw = true; ex = e; }
137 }
virtual void reset()=0
bool FIX::MessageStoreExceptionWrapper::set ( int  num,
const std::string &  msg,
bool &  threw,
IOException ex 
)

Definition at line 69 of file MessageStore.cpp.

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

70 {
71  threw = false;
72  try { return m_pStore->set( num, msg ); }
73  catch ( IOException & e ) { threw = true; ex = e; return false; }
74 }
virtual bool set(int, const std::string &)=0
void FIX::MessageStoreExceptionWrapper::setNextSenderMsgSeqNum ( int  num,
bool &  threw,
IOException ex 
)

Definition at line 97 of file MessageStore.cpp.

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

98 {
99  threw = false;
100  try { m_pStore->setNextSenderMsgSeqNum( num ); }
101  catch ( IOException & e ) { threw = true; ex = e; }
102 }
virtual void setNextSenderMsgSeqNum(int)=0
void FIX::MessageStoreExceptionWrapper::setNextTargetMsgSeqNum ( int  num,
bool &  threw,
IOException ex 
)

Definition at line 104 of file MessageStore.cpp.

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

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

Member Data Documentation

MessageStore* FIX::MessageStoreExceptionWrapper::m_pStore
private

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