algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
algotradelib::runner::RecoveryReport Struct Reference

What a journal showed was left owed by the process that wrote it. More...

#include <algotradelib/src/runner/reconcile_orders.hpp>

Public Member Functions

bool clean () const noexcept
 Tests whether nothing was owed or damaged.

Public Attributes

std::vector< InstrumentId > marked_
 Instruments marked in the ledger, withheld until the order list resolves them.
std::vector< OpenInstruction > open_
 The instructions of unknown outcome.
bool truncated_ {false}
 Whether the last line was torn.
bool unattributable_ {false}
 Whether something was in flight that names no instrument (a torn line too short to name one); recover_runner halts the runner for it.
std::size_t unreadable_lines_ {0}
 Complete lines that did not parse.
bool unreadable_file_ {false}
 Whether the journal exists and could not be read; it may hold orders left in flight.
std::string detail_
 What was found, for the operator.

Detailed Description

What a journal showed was left owed by the process that wrote it.

Definition at line 1251 of file reconcile_orders.hpp.

Member Function Documentation

◆ clean()

bool algotradelib::runner::RecoveryReport::clean ( ) const
inlinenoexcept

Tests whether nothing was owed or damaged.

Returns
true if no instrument was marked and nothing was torn, unparsed or unreadable.

Definition at line 1274 of file reconcile_orders.hpp.

Referenced by live_program::print_recovery().

Member Data Documentation

◆ detail_

std::string algotradelib::runner::RecoveryReport::detail_

What was found, for the operator.

Definition at line 1268 of file reconcile_orders.hpp.

Referenced by live_program::print_recovery(), and algotradelib::runner::recover_into().

◆ marked_

std::vector<InstrumentId> algotradelib::runner::RecoveryReport::marked_

Instruments marked in the ledger, withheld until the order list resolves them.

Definition at line 1253 of file reconcile_orders.hpp.

Referenced by clean(), live_program::print_recovery(), and algotradelib::runner::recover_into().

◆ open_

std::vector<OpenInstruction> algotradelib::runner::RecoveryReport::open_

The instructions of unknown outcome.

Definition at line 1255 of file reconcile_orders.hpp.

Referenced by algotradelib::runner::recover_into().

◆ truncated_

bool algotradelib::runner::RecoveryReport::truncated_ {false}

Whether the last line was torn.

Definition at line 1257 of file reconcile_orders.hpp.

Referenced by clean(), live_program::print_recovery(), and algotradelib::runner::recover_into().

◆ unattributable_

bool algotradelib::runner::RecoveryReport::unattributable_ {false}

Whether something was in flight that names no instrument (a torn line too short to name one); recover_runner halts the runner for it.

Definition at line 1262 of file reconcile_orders.hpp.

Referenced by clean(), live_program::print_recovery(), and algotradelib::runner::recover_into().

◆ unreadable_file_

bool algotradelib::runner::RecoveryReport::unreadable_file_ {false}

Whether the journal exists and could not be read; it may hold orders left in flight.

Definition at line 1266 of file reconcile_orders.hpp.

Referenced by clean(), live_program::print_recovery(), and algotradelib::runner::recover_into().

◆ unreadable_lines_

std::size_t algotradelib::runner::RecoveryReport::unreadable_lines_ {0}

Complete lines that did not parse.

Definition at line 1264 of file reconcile_orders.hpp.

Referenced by clean(), live_program::print_recovery(), and algotradelib::runner::recover_into().


The documentation for this struct was generated from the following file: