![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
A journal held in memory, lost when the process exits; for tests and dry runs. More...
#include <algotradelib/src/runner/journal.hpp>
Public Member Functions | |
| MemoryJournal ()=default | |
| Constructs a journal with an empty scope. | |
| MemoryJournal (std::string scope) | |
| Constructs a journal. | |
| bool | append (const JournalEntry &entry) |
| Appends a line. | |
| JournalReplay | replay () const |
| Returns everything recorded. | |
| const std::vector< JournalEntry > & | records () const noexcept |
| Returns the lines recorded. | |
| void | clear () noexcept |
| Forgets every line. | |
| const std::string & | scope () const noexcept |
| Returns the journal's broker and account. | |
A journal held in memory, lost when the process exits; for tests and dry runs.
Definition at line 623 of file journal.hpp.
|
inlineexplicit |
Constructs a journal.
| scope | The broker and account stamped on each line that has none. |
Definition at line 632 of file journal.hpp.
|
inline |
|
inlinenoexcept |
Forgets every line.
Definition at line 664 of file journal.hpp.
|
inlinenoexcept |
|
inline |
Returns everything recorded.
Definition at line 651 of file journal.hpp.
Referenced by replay().
|
inlinenoexcept |
Returns the journal's broker and account.
Definition at line 670 of file journal.hpp.
Referenced by MemoryJournal().