使用boost pfr 遍历结构体

This commit is contained in:
2026-06-26 09:36:14 +08:00
parent 26b5c8a54d
commit 472e609f13
17 changed files with 1322 additions and 1622 deletions
+208 -208
View File
@@ -43,20 +43,20 @@
},
"device": {
"net": [
{
"key": "device",
"ip": "192.168.1.75",
"netmask": "255.255.255.0",
"gateway": "192.168.1.1",
"port": 80
},
{
"key": "wifi",
"ip": "192.168.10.193",
"netmask": "255.255.255.0",
"gateway": "192.168.10.1",
"port": 80
}
{
"key": "device",
"ip": "192.168.1.75",
"netmask": "255.255.255.0",
"gateway": "192.168.1.1",
"port": 80
},
{
"key": "wifi",
"ip": "192.168.10.193",
"netmask": "255.255.255.0",
"gateway": "192.168.10.1",
"port": 80
}
]
},
"mode_acs": {
@@ -78,131 +78,131 @@
"tcp_server_default_connect_user_buffer_size": 409600,
"tcp_server_default_connect_system_buffer_size": 409600,
"list": [
{
"key": "Port_10003",
"enable": true,
"type": "Data_Feed_TCP_Server",
"output_format": {
"type": "BIN",
"use_status": true,
"mode_s_output_type": "ALL_Mode_S",
"use_mode_ac": true,
"sbs_only_pos": true
},
"port": 10003,
"connect_user_buffer_size": 409600,
"connect_system_buffer_size": 409600
},
{
"key": "22333",
"enable": false,
"type": "Data_Feed_UDP_Server",
"output_format": {
"type": "BIN",
"use_status": false,
"mode_s_output_type": "ALL_Mode_S",
"use_mode_ac": false,
"sbs_only_pos": false
},
"port": 50001
},
{
"key": "Port_10004",
"enable": false,
"type": "Data_Feed_UDP_Client",
"output_format": {
"type": "AVR",
"use_status": false,
"mode_s_output_type": "DF_11_17_18",
"use_mode_ac": false,
"sbs_only_pos": true
},
"url": "192.168.1.75",
"port": 30004
},
{
"key": "Port_10005",
"enable": false,
"type": "Data_Feed_TCP_Client",
"output_format": {
"type": "BIN",
"use_status": true,
"mode_s_output_type": "NO_POS_Mode_S",
"use_mode_ac": true,
"sbs_only_pos": true
},
"url": "192.168.1.167",
"port": 10005
},
{
"key": "Port_30003",
"enable": false,
"type": "Data_Feed_TCP_Server",
"output_format": {
"type": "SBS",
"use_status": false,
"mode_s_output_type": "ALL_Mode_S",
"use_mode_ac": true,
"sbs_only_pos": true
},
"port": 30003,
"connect_user_buffer_size": 0,
"connect_system_buffer_size": 0
}
{
"key": "Port_10003",
"enable": true,
"type": "Data_Feed_TCP_Server",
"output_format": {
"type": "BIN",
"use_status": true,
"mode_s_output_type": "ALL_Mode_S",
"use_mode_ac": true,
"sbs_only_pos": true
},
"port": 10003,
"connect_user_buffer_size": 409600,
"connect_system_buffer_size": 409600
},
{
"key": "22333",
"enable": false,
"type": "Data_Feed_UDP_Server",
"output_format": {
"type": "BIN",
"use_status": false,
"mode_s_output_type": "ALL_Mode_S",
"use_mode_ac": false,
"sbs_only_pos": false
},
"port": 50001
},
{
"key": "Port_10004",
"enable": false,
"type": "Data_Feed_UDP_Client",
"output_format": {
"type": "AVR",
"use_status": false,
"mode_s_output_type": "DF_11_17_18",
"use_mode_ac": false,
"sbs_only_pos": true
},
"url": "192.168.1.75",
"port": 30004
},
{
"key": "Port_10005",
"enable": false,
"type": "Data_Feed_TCP_Client",
"output_format": {
"type": "BIN",
"use_status": true,
"mode_s_output_type": "NO_POS_Mode_S",
"use_mode_ac": true,
"sbs_only_pos": true
},
"url": "192.168.1.167",
"port": 10005
},
{
"key": "Port_30003",
"enable": false,
"type": "Data_Feed_TCP_Server",
"output_format": {
"type": "SBS",
"use_status": false,
"mode_s_output_type": "ALL_Mode_S",
"use_mode_ac": true,
"sbs_only_pos": true
},
"port": 30003,
"connect_user_buffer_size": 0,
"connect_system_buffer_size": 0
}
]
},
"data_source": {
"list": [
{
"key": "lzy_dll",
"enable": true,
"base_station_show": true,
"aircraft_show": true,
"color": "#454641",
"aircraft_pixel_size": 28,
"type": "Dll_Data_Source",
"lat": 37.433547,
"lon": 121.408730,
"alt": 23.000000,
"update_form_gps": true,
"show_icao": true,
"show_call_sign": false,
"show_fly_status": false,
"keep_mode": true,
"library_path": "@/dll_source.dll",
"function_name": "adsb_read",
"data_type": "BIN_Blank_Text",
"buffer_size": 200000
},
{
"key": "aaaa",
"enable": false,
"base_station_show": true,
"aircraft_show": true,
"color": "#d1a54c",
"aircraft_pixel_size": 20,
"type": "File_Data_Source",
"lat": 37.000000,
"lon": 121.000000,
"alt": 0.000000,
"update_form_gps": false,
"show_icao": true,
"show_call_sign": true,
"show_fly_status": true,
"keep_mode": true,
"file_path": "D:\\ae\\proj\\projects\\ECAP_Server\\data\\BIN_Blank_Text\\ADS-B_195_0205.txt",
"data_type": "BIN_Blank_Text",
"play_mode": "loop"
}
{
"key": "lzy_dll",
"enable": true,
"base_station_show": true,
"aircraft_show": true,
"color": "#454641",
"aircraft_pixel_size": 28,
"type": "Dll_Data_Source",
"lat": 37.433547,
"lon": 121.408730,
"alt": 23.000000,
"update_form_gps": true,
"show_icao": true,
"show_call_sign": false,
"show_fly_status": false,
"keep_mode": true,
"library_path": "@/dll_source.dll",
"function_name": "adsb_read",
"data_type": "BIN_Blank_Text",
"buffer_size": 200000
},
{
"key": "aaaa",
"enable": false,
"base_station_show": true,
"aircraft_show": true,
"color": "#d1a54c",
"aircraft_pixel_size": 20,
"type": "File_Data_Source",
"lat": 37.000000,
"lon": 121.000000,
"alt": 0.000000,
"update_form_gps": false,
"show_icao": true,
"show_call_sign": true,
"show_fly_status": true,
"keep_mode": true,
"file_path": "D:\\ae\\proj\\projects\\ECAP_Server\\data\\BIN_Blank_Text\\ADS-B_195_0205.txt",
"data_type": "BIN_Blank_Text",
"play_mode": "loop"
}
]
},
"source_feed_relation": {
"list": [
{
"key": "key_10003",
"enable": true,
"type": "First_Source_To_All_Feed_Relation"
}
{
"key": "key_10003",
"enable": true,
"type": "First_Source_To_All_Feed_Relation"
}
]
}
},
@@ -220,83 +220,83 @@
"external_database": {
"ecap_sqlite_path": "D:/ae/proj/projects/ECAP_Server/sqlite/ecap.sqlite",
"list": [
{
"name": "tar1090_db_aircraft",
"download_url": "https://raw.githubusercontent.com/wiedehopf/tar1090-db/refs/heads/csv/aircraft.csv.gz",
"description": "wiedehopf/tar1090-db 发布的轻量 ICAO24 飞机静态库,提供注册号、机型、年份和运营方备注。",
"update_interval_seconds": 604800,
"last_updated_at": 1780388281
},
{
"name": "wiedehopf_tar1090_db_aircraft",
"download_url": "https://raw.githubusercontent.com/wiedehopf/tar1090-db/refs/heads/csv/aircraft.csv.gz",
"description": "wiedehopf/tar1090-db 项目发布的飞机静态数据库镜像,供 tar1090 本地识别飞机。",
"update_interval_seconds": 604800,
"last_updated_at": 1780381804
},
{
"name": "mictronics_aircraft_database",
"download_url": "https://raw.githubusercontent.com/wiedehopf/tar1090-db/refs/heads/csv/aircraft.csv.gz",
"description": "Mictronics 社区飞机数据库的 tar1090 汇总镜像,可按 ICAO24 查询注册号、机型和运营方。",
"update_interval_seconds": 604800,
"last_updated_at": 1780381804
},
{
"name": "opensky_aircraft_database",
"download_url": "https://opensky-network.org/datasets/metadata/aircraftDatabase.csv",
"description": "OpenSky Network 飞机元数据 CSV,包含制造商、型号、注册号和运营方等字段。",
"update_interval_seconds": 604800,
"last_updated_at": 1780381804
},
{
"name": "faa_aircraft_registry",
"download_url": "https://registry.faa.gov/database/ReleasableAircraft.zip",
"description": "FAA 官方可公开下载的美国飞机注册库,MASTER.txt 包含 Mode-S Hex 注册信息。",
"update_interval_seconds": 86400,
"last_updated_at": 1780381804
},
{
"name": "icao_doc_8643_aircraft_type_designators",
"download_url": "",
"description": "ICAO Doc 8643 机型代码表,用于将 A320、B738 等 designator 映射为制造商、型号和类别。",
"update_interval_seconds": 2419200,
"last_updated_at": 1780381804
},
{
"name": "vrs_routes",
"download_url": "https://vrs-standing-data.adsb.lol/routes.csv",
"description": "VRS 航线表,以 callsign 查询机场代码序列,用于推断起飞机场、经停机场和目的机场。",
"update_interval_seconds": 3600,
"last_updated_at": 1780381804
},
{
"name": "vrs_airports",
"download_url": "https://vrs-standing-data.adsb.lol/airports.csv",
"description": "VRS 机场字典,提供机场代码、名称、国家、经纬度和高度。",
"update_interval_seconds": 3600,
"last_updated_at": 1780381804
},
{
"name": "adsblol_vrs_standing_data_routes",
"download_url": "https://vrs-standing-data.adsb.lol/routes.csv",
"description": "ADSB.lol 发布的 VRS standing-data 航线镜像,以 callsign 查询机场代码序列。",
"update_interval_seconds": 3600,
"last_updated_at": 1780381804
},
{
"name": "vradarserver_standing_data_routes",
"download_url": "https://vrs-standing-data.adsb.lol/routes.csv",
"description": "Virtual Radar Server standing-data 的航线适配表;当前在线更新使用 ADSB.lol 公共镜像。",
"update_interval_seconds": 3600,
"last_updated_at": 1780381804
},
{
"name": "opensky_flightdata_api_cache",
"download_url": "",
"description": "OpenSky FlightData API 查询缓存,按 ICAO24 和时间范围保存历史航班起降机场结果。",
"update_interval_seconds": 0,
"last_updated_at": 1780381804
}
{
"name": "tar1090_db_aircraft",
"download_url": "https://raw.githubusercontent.com/wiedehopf/tar1090-db/refs/heads/csv/aircraft.csv.gz",
"description": "wiedehopf/tar1090-db 发布的轻量 ICAO24 飞机静态库,提供注册号、机型、年份和运营方备注。",
"update_interval_seconds": 604800,
"last_updated_at": 1780388281
},
{
"name": "wiedehopf_tar1090_db_aircraft",
"download_url": "https://raw.githubusercontent.com/wiedehopf/tar1090-db/refs/heads/csv/aircraft.csv.gz",
"description": "wiedehopf/tar1090-db 项目发布的飞机静态数据库镜像,供 tar1090 本地识别飞机。",
"update_interval_seconds": 604800,
"last_updated_at": 1780381804
},
{
"name": "mictronics_aircraft_database",
"download_url": "https://raw.githubusercontent.com/wiedehopf/tar1090-db/refs/heads/csv/aircraft.csv.gz",
"description": "Mictronics 社区飞机数据库的 tar1090 汇总镜像,可按 ICAO24 查询注册号、机型和运营方。",
"update_interval_seconds": 604800,
"last_updated_at": 1780381804
},
{
"name": "opensky_aircraft_database",
"download_url": "https://opensky-network.org/datasets/metadata/aircraftDatabase.csv",
"description": "OpenSky Network 飞机元数据 CSV,包含制造商、型号、注册号和运营方等字段。",
"update_interval_seconds": 604800,
"last_updated_at": 1780381804
},
{
"name": "faa_aircraft_registry",
"download_url": "https://registry.faa.gov/database/ReleasableAircraft.zip",
"description": "FAA 官方可公开下载的美国飞机注册库,MASTER.txt 包含 Mode-S Hex 注册信息。",
"update_interval_seconds": 86400,
"last_updated_at": 1780381804
},
{
"name": "icao_doc_8643_aircraft_type_designators",
"download_url": "",
"description": "ICAO Doc 8643 机型代码表,用于将 A320、B738 等 designator 映射为制造商、型号和类别。",
"update_interval_seconds": 2419200,
"last_updated_at": 1780381804
},
{
"name": "vrs_routes",
"download_url": "https://vrs-standing-data.adsb.lol/routes.csv",
"description": "VRS 航线表,以 callsign 查询机场代码序列,用于推断起飞机场、经停机场和目的机场。",
"update_interval_seconds": 3600,
"last_updated_at": 1780381804
},
{
"name": "vrs_airports",
"download_url": "https://vrs-standing-data.adsb.lol/airports.csv",
"description": "VRS 机场字典,提供机场代码、名称、国家、经纬度和高度。",
"update_interval_seconds": 3600,
"last_updated_at": 1780381804
},
{
"name": "adsblol_vrs_standing_data_routes",
"download_url": "https://vrs-standing-data.adsb.lol/routes.csv",
"description": "ADSB.lol 发布的 VRS standing-data 航线镜像,以 callsign 查询机场代码序列。",
"update_interval_seconds": 3600,
"last_updated_at": 1780381804
},
{
"name": "vradarserver_standing_data_routes",
"download_url": "https://vrs-standing-data.adsb.lol/routes.csv",
"description": "Virtual Radar Server standing-data 的航线适配表;当前在线更新使用 ADSB.lol 公共镜像。",
"update_interval_seconds": 3600,
"last_updated_at": 1780381804
},
{
"name": "opensky_flightdata_api_cache",
"download_url": "",
"description": "OpenSky FlightData API 查询缓存,按 ICAO24 和时间范围保存历史航班起降机场结果。",
"update_interval_seconds": 0,
"last_updated_at": 1780381804
}
]
}
}