fix8
version 1.4.0
Open Source C++ FIX Framework
|
Simple menu system that will work with most term types. More...
#include <hftest.hpp>
Classes | |
struct | MenuItem |
Individual menu item. More... | |
Private Types | |
using | Handlers = std::map< const MenuItem, bool(MyMenu::*)(), MenuItem > |
using | Handlers = std::map< const MenuItem, bool(MyMenu::*)(), MenuItem > |
Private Attributes | |
FIX8::tty_save_state | _tty |
hf_session_client & | _session |
std::istream | _istr |
std::ostream & | _ostr |
FIX8::MsgList | _lst |
FIX8::ConsoleMenu * | _cm |
myfix_session_client & | _session |
Static Private Attributes | |
static const Handlers | _handlers |
Simple menu system that will work with most term types.
Definition at line 151 of file hftest.hpp.
|
private |
Definition at line 170 of file hftest.hpp.
|
private |
|
inline |
Definition at line 174 of file hftest.hpp.
|
inlinevirtual |
Definition at line 177 of file hftest.hpp.
|
inline |
bool MyMenu::batch_preload_new_order_single | ( | ) |
Definition at line 358 of file hftest.cpp.
References batch_size(), RandDev::getrandom(), FIX8::TEX::HandlInst_AUTOMATED_EXECUTION_ORDER_PRIVATE_NO_BROKER_INTERVENTION(), FIX8::TEX::OrdType_LIMIT(), preload_count(), FIX8::TEX::Side_BUY(), and FIX8::TEX::TimeInForce_FILL_OR_KILL().
bool MyMenu::create_msgs | ( | ) |
Definition at line 410 of file harness.cpp.
bool MyMenu::delete_msg | ( | ) |
Definition at line 433 of file harness.cpp.
bool MyMenu::delete_msgs | ( | ) |
Definition at line 440 of file harness.cpp.
|
inline |
Definition at line 194 of file hftest.hpp.
bool MyMenu::do_logout | ( | ) |
Definition at line 367 of file harness.cpp.
References FIX8::hypersleep< h_seconds >().
bool MyMenu::do_logout | ( | ) |
bool MyMenu::edit_msgs | ( | ) |
Definition at line 426 of file harness.cpp.
Message * MyMenu::generate_new_order_single | ( | ) |
Definition at line 527 of file myfix.cpp.
References FIX8::GroupBase::create_group(), FIX8::MessageBase::find_group(), RandDev::getrandom(), FIX8::TEX::OrdType_LIMIT(), FIX8::TEX::Side_BUY(), and FIX8::TEX::TimeInForce_FILL_OR_KILL().
Message * MyMenu::generate_new_order_single_alternate | ( | ) |
Definition at line 454 of file myfix.cpp.
References FIX8::GroupBase::create_group(), FIX8::MessageBase::find_add_group(), RandDev::getrandom(), FIX8::TEX::OrdType_LIMIT(), FIX8::TEX::Side_BUY(), and FIX8::TEX::TimeInForce_FILL_OR_KILL().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 225 of file myfix.hpp.
References FIX8::tty_save_state::set_raw_mode(), and FIX8::tty_save_state::unset_raw_mode().
|
inline |
|
inline |
bool MyMenu::help | ( | ) |
Definition at line 345 of file harness.cpp.
bool MyMenu::help | ( | ) |
bool MyMenu::load_msgs | ( | const std::string & | fname | ) |
Definition at line 533 of file harness.cpp.
References FIX8::Common_SendingTime(), FIX8::TEX::ctx(), FIX8_MAX_MSG_LENGTH, FIX8::MessageBase::get(), FIX8::Message::Header(), FIX8::Message::is_admin(), FIX8::MessageBase::remove(), FIX8::Message::setup_reuse(), and FIX8::Str_error().
bool MyMenu::multi_new_order_single | ( | ) |
Definition at line 403 of file hftest.cpp.
bool MyMenu::new_order_single | ( | ) |
Definition at line 419 of file hftest.cpp.
References RandDev::getrandom(), FIX8::TEX::HandlInst_AUTOMATED_EXECUTION_ORDER_PRIVATE_NO_BROKER_INTERVENTION(), FIX8::TEX::OrdType_LIMIT(), FIX8::TEX::Side_BUY(), and FIX8::TEX::TimeInForce_FILL_OR_KILL().
bool MyMenu::new_order_single | ( | ) |
bool MyMenu::new_order_single_1000 | ( | ) |
Definition at line 692 of file myfix.cpp.
bool MyMenu::new_order_single_50 | ( | ) |
Definition at line 681 of file myfix.cpp.
bool MyMenu::new_order_single_alternate | ( | ) |
Definition at line 600 of file myfix.cpp.
bool MyMenu::new_order_single_recycled | ( | ) |
Definition at line 614 of file myfix.cpp.
References FIX8::Message::setup_reuse().
bool MyMenu::preload_new_order_single | ( | ) |
Definition at line 491 of file hftest.cpp.
References RandDev::getrandom(), FIX8::TEX::HandlInst_AUTOMATED_EXECUTION_ORDER_PRIVATE_NO_BROKER_INTERVENTION(), FIX8::TEX::OrdType_LIMIT(), preload_count(), FIX8::TEX::Side_BUY(), FIX8::MessageBase::size(), and FIX8::TEX::TimeInForce_FILL_OR_KILL().
Referenced by main().
bool MyMenu::print_msgs | ( | ) |
Definition at line 463 of file harness.cpp.
|
inline |
Definition at line 181 of file hftest.hpp.
bool MyMenu::read_msgs | ( | ) |
Definition at line 576 of file harness.cpp.
References FIX8_MAX_FLD_LENGTH.
bool MyMenu::resend_request | ( | ) |
Definition at line 727 of file myfix.cpp.
bool MyMenu::save_msg | ( | const std::string & | fname, |
FIX8::Message * | msg | ||
) |
Definition at line 496 of file harness.cpp.
References FIX8::exist(), and FIX8::Str_error().
bool MyMenu::send_all_preloaded | ( | ) |
Definition at line 442 of file hftest.cpp.
References update_count().
bool MyMenu::send_all_preloaded | ( | coroutine & | coro, |
FIX8::Session * | ses | ||
) |
Definition at line 464 of file hftest.cpp.
References batch_size(), coro_yield, FIX8::Session::get_connection(), reenter, FIX8::Connection::set_tcp_cork_flag(), and FIX8::Connection::writer_poll().
void MyMenu::send_lst | ( | ) |
Definition at line 447 of file harness.cpp.
bool MyMenu::send_msg | ( | ) |
Definition at line 471 of file harness.cpp.
bool MyMenu::send_msgs | ( | ) |
Definition at line 455 of file harness.cpp.
bool MyMenu::set_lpp | ( | ) |
Definition at line 357 of file harness.cpp.
bool MyMenu::static_probe | ( | ) |
Definition at line 643 of file myfix.cpp.
References FIX8::BaseMsgEntry::_create, FIX8::BaseMsgEntry::_name, FIX8::BaseEntry::_name, and spacer.
bool MyMenu::toggle_heartbeats | ( | ) |
Definition at line 515 of file harness.cpp.
bool MyMenu::version_info | ( | ) |
bool MyMenu::write_msgs | ( | ) |
|
private |
|
staticprivate |
Definition at line 171 of file hftest.hpp.
|
private |
Definition at line 167 of file hftest.hpp.
Referenced by get_istr().
|
private |
|
private |
Definition at line 168 of file hftest.hpp.
Referenced by get_ostr().
|
private |
Definition at line 166 of file hftest.hpp.
|
private |
|
private |
Definition at line 153 of file hftest.hpp.
Referenced by get_tty().