#include <fastmm/store/backend.hpp>
◆ Backend() [1/2]
| fastmm::store::Backend::Backend |
( |
| ) |
|
|
default |
◆ ~Backend()
| virtual fastmm::store::Backend::~Backend |
( |
| ) |
|
|
virtualdefault |
◆ Backend() [2/2]
| fastmm::store::Backend::Backend |
( |
const Backend & |
| ) |
|
|
delete |
◆ operator=()
◆ name()
| virtual std::string_view fastmm::store::Backend::name |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ open()
Opens or creates the store and brings its schema up to date.
A failure here stops the session from starting: an operator who does not want a store sets backend = "none".
◆ session_open()
| virtual Result< void, std::string > fastmm::store::Backend::session_open |
( |
const SessionOpen & |
s | ) |
|
|
pure virtual |
◆ instruments()
| virtual Result< void, std::string > fastmm::store::Backend::instruments |
( |
std::uint64_t |
session_id, |
|
|
std::span< const Instrument > |
table |
|
) |
| |
|
pure virtual |
The instrument table of this session, by dense id.
◆ begin()
| virtual void fastmm::store::Backend::begin |
( |
| ) |
|
|
pure virtual |
◆ fill()
| virtual void fastmm::store::Backend::fill |
( |
const FillRecord & |
r | ) |
|
|
pure virtual |
◆ order()
| virtual void fastmm::store::Backend::order |
( |
const OrderRecord & |
r | ) |
|
|
pure virtual |
◆ position()
| virtual void fastmm::store::Backend::position |
( |
const PositionRecord & |
r | ) |
|
|
pure virtual |
◆ kill()
| virtual void fastmm::store::Backend::kill |
( |
const KillRecord & |
r | ) |
|
|
pure virtual |
◆ funding()
| virtual void fastmm::store::Backend::funding |
( |
const FundingRecord & |
| ) |
|
|
inlinevirtual |
A funding payment.
The default drops it: a backend written before funding was booked keeps building (its positions still carry funding inside realized).
◆ replayed()
| virtual void fastmm::store::Backend::replayed |
( |
const ReplayedRecord & |
| ) |
|
|
inlinevirtual |
A venue's execution replay ended complete.
The default drops it: a restart from such a store judges a session by whether it placed an order on the venue or shut down (Recovery).
◆ param()
| virtual void fastmm::store::Backend::param |
( |
const ParamRecord & |
| ) |
|
|
inlinevirtual |
A strategy parameter update the engine applied. The default drops it.
◆ reject()
| virtual void fastmm::store::Backend::reject |
( |
const RejectRecord & |
| ) |
|
|
inlinevirtual |
An order refused by the pre-trade checks or by its venue. The default drops it.
◆ commit()
| virtual void fastmm::store::Backend::commit |
( |
| ) |
|
|
pure virtual |
◆ session_close()
| virtual Result< void, std::string > fastmm::store::Backend::session_close |
( |
const SessionClose & |
s | ) |
|
|
pure virtual |
◆ close()
| virtual void fastmm::store::Backend::close |
( |
| ) |
|
|
pure virtual |
◆ rows()
| virtual std::uint64_t fastmm::store::Backend::rows |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ errors()
| virtual std::uint64_t fastmm::store::Backend::errors |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ last_error()
| virtual std::string fastmm::store::Backend::last_error |
( |
| ) |
const |
|
pure virtual |