![]() |
Trading System API
3.0
Library for Simulating and Deploying Trading and Investment Strategies
|
Abstract base class for delegates of class out_stream. More...
#include <TSAStreams.h>
Public Member Functions | |
virtual | ~out_stream_adaptor (void) |
Destructor. | |
virtual void | cmp__finalize (void) override |
Override this member in any derived class. It will be invoked when the strategy is finalized. Use it to deallocate memory or close any streams. | |
virtual void | osa__append (const date_time &time_stamp, std::vector< variant > &record)=0 |
Implement this member in any derived class and to append a new record and time_stamp. More... | |
virtual void | osa__prepare_stream (const std::string &stream_name, const column_defs &field_list)=0 |
Implement this member in any derived class. This member is called before any records are passed. Use it for initialization purposes, such as creating a new table in a series_base. More... | |
![]() | |
virtual void | cmp__evaluate_bar (const date_time &) |
virtual void | cmp__post_evaluate_bar (const date_time &) |
bool | is_registered_with_strategy (void) const |
void | register_with_strategy (strategy *) |
Abstract base class for delegates of class out_stream.
Derive new classes if you need a strategy to output data to a target that is not currently supported.
|
pure virtual |
Implement this member in any derived class and to append a new record and time_stamp.
time_stamp | The time stamp. | |
[in,out] | record | The record. |
Implemented in tsa::mem_table, and tsa::fast::table.
|
pure virtual |
Implement this member in any derived class. This member is called before any records are passed. Use it for initialization purposes, such as creating a new table in a series_base.
stream_name | Name of the stream. |
field_list | List of fields. |
Implemented in tsa::mem_table, and tsa::fast::table.