![]() |
Trading System API
3.0
Library for Simulating and Deploying Trading and Investment Strategies
|
Class out_stream is used to write strategy output to various targets such as files, charts and series_base tables. More...
#include <TSAStreams.h>
Public Member Functions | |
out_stream (void) | |
Constructor. | |
virtual | ~out_stream (void) |
Destructor. | |
void | attach (out_stream_adaptor &stream_adaptor) |
Connects self to given stream_adaptor. | |
virtual void | cmp__post_evaluate_bar (const date_time &) override |
out_stream & | operator<< (const char *char_string) |
Inserts char_string into stream. | |
out_stream & | operator<< (const tsa::string &char_string) |
Inserts char_string into stream. | |
out_stream & | operator<< (const std::string &char_string) |
Inserts char_string into stream. | |
out_stream & | operator<< (int num) |
Inserts num into stream. | |
out_stream & | operator<< (unsigned num) |
Inserts num into stream. | |
out_stream & | operator<< (int64_t num) |
Inserts num into stream. | |
out_stream & | operator<< (uint64_t num) |
Inserts num into stream. | |
out_stream & | operator<< (float num) |
Inserts num into stream. | |
out_stream & | operator<< (double num) |
Inserts num into stream. | |
out_stream & | operator<< (bool flag) |
Inserts flag into stream. | |
out_stream & | operator<< (const date_time &date_time) |
Inserts date_time into stream. | |
out_stream & | operator<< (const date &dt) |
Inserts dt into stream. | |
out_stream & | operator<< (const variant &var) |
Inserts var into stream. | |
template<typename T > | |
out_stream & | operator<< (const series< T > &ser) |
Inserts the series most recent value (position 0) into the stream. | |
![]() | |
virtual void | cmp__evaluate_bar (const date_time &) |
virtual void | cmp__finalize (void) |
bool | is_registered_with_strategy (void) const |
void | register_with_strategy (strategy *) |
![]() | |
object (void) | |
Constructor. | |
virtual | ~object (void) |
Destructor. | |
const char * | class_name (void) const |
Returns the class name as returned by the 'Real Time Type Information' (RTTI) mechanism. More... | |
bool | has_same_class_as (const object &other) const |
Returns true if self has the same type as other object. More... | |
Class out_stream is used to write strategy output to various targets such as files, charts and series_base tables.
Library functionality can be extended by implementing support for new targets. This is achieved by deriving new classes from class out_stream_adaptor.