Base (ABC) Persister class.
More...
#include <persist.hpp>
|
enum | { MaxMsgLen = FIX8_MAX_MSG_LENGTH
} |
| Maximum length of persisted FIX message. More...
|
|
|
| Persister ()=default |
| Ctor. More...
|
|
virtual | ~Persister () |
| Dtor. More...
|
|
| Persister (const Persister &)=delete |
|
Persister & | operator= (const Persister &)=delete |
|
virtual bool | put (const unsigned seqnum, const f8String &what)=0 |
|
virtual bool | put (const f8String &key, const f8String &what) |
|
virtual bool | put (const unsigned sender_seqnum, const unsigned target_seqnum)=0 |
|
virtual bool | get (const unsigned seqnum, f8String &to) const =0 |
|
virtual bool | get (const f8String &key, f8String &to) const |
|
virtual bool | del (const f8String &key) |
|
virtual unsigned | get (const unsigned from, const unsigned to, Session &session, bool(Session::*callback)(const Session::SequencePair &with, Session::RetransmissionContext &rctx)) const =0 |
|
virtual unsigned | get_last_seqnum (unsigned &to) const =0 |
|
virtual bool | get (unsigned &sender_seqnum, unsigned &target_seqnum) const =0 |
|
virtual unsigned | find_nearest_highest_seqnum (const unsigned requested, const unsigned last) const =0 |
|
virtual bool | purge () |
|
virtual void | stop () |
| Stop the persister thread. More...
|
|
Base (ABC) Persister class.
Definition at line 55 of file persist.hpp.
Maximum length of persisted FIX message.
Definition at line 71 of file persist.hpp.
#define FIX8_MAX_MSG_LENGTH
FIX8::Persister::Persister |
( |
| ) |
|
|
default |
virtual FIX8::Persister::~Persister |
( |
| ) |
|
|
inlinevirtual |
FIX8::Persister::Persister |
( |
const Persister & |
| ) |
|
|
delete |
virtual bool FIX8::Persister::del |
( |
const f8String & |
key | ) |
|
|
inlinevirtual |
Delete a generic persisted value by specified key. Depending on specialisation, provide direct access to the persister implementation
- Parameters
-
- Returns
- true on success
Definition at line 109 of file persist.hpp.
virtual unsigned FIX8::Persister::find_nearest_highest_seqnum |
( |
const unsigned |
requested, |
|
|
const unsigned |
last |
|
) |
| const |
|
pure virtual |
Find the nearest highest sequence number from the sequence to last provided.
- Parameters
-
requested | sequence number to start |
last | highest sequence |
- Returns
- the nearest sequence number or 0 if not found
Implemented in FIX8::FilePersister, and FIX8::MemoryPersister.
virtual bool FIX8::Persister::get |
( |
const unsigned |
seqnum, |
|
|
f8String & |
to |
|
) |
| const |
|
pure virtual |
Retrieve a generic persisted value. Depending on specialisation, provide direct access to the persister implementation
- Parameters
-
key | key to retrieve |
to | target value string |
- Returns
- true on success
Definition at line 103 of file persist.hpp.
Retrieve a range of persisted messages.
- Parameters
-
from | start at sequence number |
to | end sequence number |
session | session containing callback method |
callback | method to call with each retrieved message |
- Returns
- number of messages retrieved
Implemented in FIX8::FilePersister, and FIX8::MemoryPersister.
virtual bool FIX8::Persister::get |
( |
unsigned & |
sender_seqnum, |
|
|
unsigned & |
target_seqnum |
|
) |
| const |
|
pure virtual |
Retrieve a sequence control record.
- Parameters
-
sender_seqnum | sequence number of last sent message |
target_seqnum | sequence number of last received message |
- Returns
- true on success
Implemented in FIX8::FilePersister, and FIX8::MemoryPersister.
virtual unsigned FIX8::Persister::get_last_seqnum |
( |
unsigned & |
to | ) |
const |
|
pure virtual |
virtual bool FIX8::Persister::purge |
( |
| ) |
|
|
inlinevirtual |
Remove all records (excluding the sequence number record 0) from the persist database
- Returns
- true on success
Definition at line 139 of file persist.hpp.
virtual bool FIX8::Persister::put |
( |
const unsigned |
seqnum, |
|
|
const f8String & |
what |
|
) |
| |
|
pure virtual |
virtual bool FIX8::Persister::put |
( |
const f8String & |
key, |
|
|
const f8String & |
what |
|
) |
| |
|
inlinevirtual |
Persist a generic value. Depending on specialisation, provide direct access to the persister implementation
- Parameters
-
key | key to store |
what | value string |
- Returns
- true on success
Definition at line 84 of file persist.hpp.
virtual bool FIX8::Persister::put |
( |
const unsigned |
sender_seqnum, |
|
|
const unsigned |
target_seqnum |
|
) |
| |
|
pure virtual |
Persist a sequence control record.
- Parameters
-
sender_seqnum | sequence number of last sent message |
target_seqnum | sequence number of last received message |
- Returns
- true on success
Implemented in FIX8::FilePersister, and FIX8::MemoryPersister.
virtual void FIX8::Persister::stop |
( |
| ) |
|
|
inlinevirtual |
bool FIX8::Persister::_opened = false |
|
protected |
The documentation for this class was generated from the following file: