Commit 09a34f9e authored by captainwong's avatar captainwong

zone props

parent 08128747
......@@ -193,17 +193,17 @@
* 主机类型与支持的防区属性对照表
|事件码类型|主机类型|00 匪警全局|01 匪警紧急|02 火警防区|03 胁迫防区|04 燃气防区|05 淹水防区|06 分机|07 遥控器|08 匪警半局|09 屏蔽防区|0A 门铃防区|0F 旁路防区|
|---------|-------|----|----|----|----|----|----|----|----|----|----|----|----|
|1707 我是网络模块|3 网络模块+工程主机|√|√|√|√|√|√|√|√|√|√|√|√|
|1717 我是GPRS主机|4 GPRS主机|√|√|√|√|√|√| |√| | | | |
|1727 我是液晶主机|5 液晶主机|√|√|√|√|√|√|√|√|√|√|√|√|
|1737 我是网线主机|6 网线主机|√|√|√|√|√|√| |√| | | | |
|1757 我是三区段主机|8 三区段主机|√|√|√|√|√|√| |√| |√|√|√|
|1767 我是物联卡主机|9 物联卡主机|√|√|√|√|√|√| |√| |√|√|√|
|1777 我是真彩主机|7 真彩主机|√|√|√|√|√|√| |√| |√|√|√|
|1787 我是简化版物联卡主机|2 简化的物联卡主机|√|√|√|√|√|√| |√| | | | |
|1797 我是GPRS主机能打电话|10 GPRS主机能打电话|√|√|√|√|√|√| |√| | | | |
|事件码类型|主机类型|型号|00 匪警全局|01 匪警紧急|02 火警防区|03 胁迫防区|04 燃气防区|05 淹水防区|06 分机|07 遥控器|08 匪警半局|09 屏蔽防区|0A 门铃防区|0F 旁路防区|
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
|1707 我是网络模块|3 网络模块+工程主机|<ul><li>HB-G250</li></ul>|√|√|√|√|√|√|√|√|√|√|√|√|
|1717 我是GPRS主机|4 GPRS主机|<ul><li>HB-4040G</li><li>HB-5050G</li><li>HB-5050G-4G</li></ul>|√|√|√|√|√|√| |√| | | | |
|1727 我是液晶主机|5 液晶主机|<ul><li>HB-BJQ560</li><li>HB-BJQ560B</li></ul>|√|√|√|√|√|√|√|√|√|√|√|√|
|1737 我是网线主机|6 网线主机|<ul><li>HB-4040R</li><li>HB-5050R</li></ul>|√|√|√|√|√|√| |√| | | | |
|1757 我是三区段主机|8 三区段主机|<ul><li>HB-G1000</li><li>HB-G1000-4G</li></ul>|√|√|√|√|√|√| |√| |√|√|√|
|1767 我是物联卡主机|9 物联卡主机|<ul><li>HB-2050-4GW</li></ul>|√|√|√|√|√|√| |√| |√|√|√|
|1777 我是真彩主机|7 真彩主机|<ul><li>HB-G1000</li><li>HB-G1000-4G</li></ul>|√|√|√|√|√|√| |√| |√|√|√|
|1787 我是简化版物联卡主机|2 简化的物联卡主机|<ul><li>HB-5050G-4GW</li></ul>|√|√|√|√|√|√| |√| | | | |
|1797 我是GPRS主机能打电话|10 GPRS主机能打电话|<ul><li>HB-2050</li></ul>|√|√|√|√|√|√| |√| | | | |
## 四、恒博扩展
......
......@@ -213,7 +213,7 @@ std::string brand_to_path(const std::string& brand)
return {};
}
void _print_machine_img(MachineType t)
void print_machine_brands(MachineType t)
{
printf("|<ul>");
for (auto brand : get_machine_brands(t)) {
......@@ -253,7 +253,7 @@ void print_machineTypes()
printf("|%s", print_bool(machineCanReportBySMS(t)));
printf("|%s", get_core_author(t));
printf("|%s", get_net_author(t));
_print_machine_img(t);
print_machine_brands(t);
printf("|\n");
}
}
......@@ -320,13 +320,13 @@ void print_available_zone_props()
printf("* 主机类型与支持的防区属性对照表\n\n");
printf("|事件码类型|主机类型");
printf("|事件码类型|主机类型|型号");
for (auto zp : all_props) {
printf("|"); print_prop(zp);
}
printf("|\n");
printf("|---------|-------");
printf("|----|----|----");
for (size_t i = 0; i < all_props.size(); i++) {
printf("|----");
}
......@@ -339,6 +339,7 @@ void print_available_zone_props()
if (!machineIsSelling(t)) continue;
printf("|%04d %s", (int)e, jlib::win32::utf16_to_mbcs(ademcoEventToStringChinese(e, false)).data());
printf("|%s", jlib::win32::utf16_to_mbcs(machineTypeToWString(t)).data());
print_machine_brands(t);
auto avail_props = getAvailableZoneProperties(t);
for (auto zp : all_props) {
printf("|%s", print_bool(jlib::is_contain(avail_props, zp)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment