![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
A log that keeps lines in memory for the runner to emit or a test to read. More...
#include <algotradelib/src/runner/context.hpp>
Public Member Functions | |
| void | note (std::string_view message) |
| Records one line; when 4096 lines are held, the oldest is dropped. | |
| const std::vector< std::string > & | lines () const noexcept |
| Returns the lines recorded since the last take. | |
| std::vector< std::string > | take () |
| Removes and returns the recorded lines. | |
A log that keeps lines in memory for the runner to emit or a test to read.
Definition at line 104 of file context.hpp.
|
inlinenoexcept |
Returns the lines recorded since the last take.
Definition at line 121 of file context.hpp.
|
inline |
Records one line; when 4096 lines are held, the oldest is dropped.
| message | The line. |
Definition at line 110 of file context.hpp.
|
inline |
Removes and returns the recorded lines.
Definition at line 127 of file context.hpp.