34 const std::string& target,
36 int heart_bt =
Config::instance().get_int(
"fix_session",
"default_heartbeat_interval", 30),
37 bool reset_seq_num =
false) {
67 const std::string& target,
69 const std::string& test_req_id =
"") {
76 if (!test_req_id.empty()) {
98 const std::string& target,
100 const std::string& test_req_id) {
125 const std::string& target,
127 const std::string& text =
"") {
156 const std::string& target,
188 const std::string& target,
191 bool gap_fill =
true) {
210 return msg_type ==
"0" ||
static Config & instance()
获取 Config 单例实例
Definition config.cpp:13
FIX 消息的面向对象封装
Definition fix_codec.hpp:46
void set(int tag, const std::string &value)
设置字符串类型字段
Definition fix_codec.hpp:53
Definition matching_engine.hpp:23
bool is_admin_message(const std::string &msg_type)
判断消息类型是否为管理消息
Definition fix_messages.hpp:209
FixMessage create_logon_message(const std::string &sender, const std::string &target, int seq_num=1, int heart_bt=Config::instance().get_int("fix_session", "default_heartbeat_interval", 30), bool reset_seq_num=false)
创建 Logon 消息
Definition fix_messages.hpp:33
FixMessage create_test_request_message(const std::string &sender, const std::string &target, int seq_num, const std::string &test_req_id)
创建 TestRequest 消息
Definition fix_messages.hpp:97
FixMessage create_heartbeat_message(const std::string &sender, const std::string &target, int seq_num, const std::string &test_req_id="")
创建 Heartbeat 消息
Definition fix_messages.hpp:66
FixMessage create_logout_message(const std::string &sender, const std::string &target, int seq_num, const std::string &text="")
创建 Logout 消息
Definition fix_messages.hpp:124
FixMessage create_resend_request_message(const std::string &sender, const std::string &target, int seq_num, int begin_seq_no, int end_seq_no)
创建 ResendRequest 消息
Definition fix_messages.hpp:155
FixMessage create_sequence_reset_message(const std::string &sender, const std::string &target, int seq_num, int new_seq_no, bool gap_fill=true)
创建 SequenceReset 消息
Definition fix_messages.hpp:187