当前位置: 首页 > news >正文

网站开发完没人运营免费咨询法律律师在线12348

网站开发完没人运营,免费咨询法律律师在线12348,网站页面设计的网址,国内响应式网站欣赏以Cat62格式雷达数据为例#xff0c;十六进制雷达数据部分代码#xff1a; 3e0120bf7da4ffee0085 雷达数据长度使用4个字符#xff08;2个字节#xff09;标识#xff0c;在这里是“0120”#xff0c;转换为十进制数为288。 雷达数据长度父类#xff1a; base_length_…以Cat62格式雷达数据为例十六进制雷达数据部分代码 3e0120bf7da4ffee0085 雷达数据长度使用4个字符2个字节标识在这里是“0120”转换为十进制数为288。 雷达数据长度父类 base_length_processor.h // // Created by qiaowei on 2024-02-02. //#ifndef RADARDATACONTROLLER_BASE_LENGTH_PROCESSOR_H #define RADARDATACONTROLLER_BASE_LENGTH_PROCESSOR_H#include QStringnamespace processor {class BaseLengthProcessor {public:virtual int processor(const QString track_data,int begin_position_index,int readed_data_end_position) 0;};} // processor#endif //RADARDATACONTROLLER_BASE_LENGTH_PROCESSOR_Hcat_62_length_processor.h // // Created by qiaowei on 2024-02-02. //#ifndef RADARDATACONTROLLER_CAT_62_LENGTH_PROCESSOR_H #define RADARDATACONTROLLER_CAT_62_LENGTH_PROCESSOR_H#include QObject #include QString#include ../baseprocess/base_length_processor.hnamespace processor {class Cat62LengthProcessor : public QObject, public BaseLengthProcessor {public:explicit Cat62LengthProcessor(QObject* parent nullptr);virtual ~Cat62LengthProcessor() override;/*** author qiao wei* brief 获取Cat62格式雷达数据长度。返回值单位为字节注意字符串中字节与字符索引区别。* param track_data 雷达数据。* param begin_position 雷达数据中保存雷达长度的字符串首字符索引。* param readed_data_end_position 雷达数据中保存雷达长度的字符串末字符索引。* return 返回该雷达数据的字节数量。雷达数据不完整时返回-1。* history*/virtual int processor(const QString track_data,int begin_position,int readed_data_end_position) override;};} // processor#endif //RADARDATACONTROLLER_CAT_62_LENGTH_PROCESSOR_Hcat_62_length_processor.cpp // // Created by qiaowei on 2024-02-02. //#include cat_62_length_processor.hnamespace processor {Cat62LengthProcessor::Cat62LengthProcessor(QObject* parent) : QObject(parent) {}Cat62LengthProcessor::~Cat62LengthProcessor() {}int Cat62LengthProcessor::processor(const QString track_data,int begin_position,int readed_data_end_position) {// 初始化索引。长度项初始位索引赋值给长度项末尾索引。readed_data_end_position begin_position;// 读取雷达数据的字节长度。字节长度为字符长度的一半。保存雷达数据长度的字符有4个2个字节。const int track_data_length{track_data.mid(begin_position, 4).toInt(nullptr, 16)};// 雷达数据中数据长度项最后一位字符的索引。readed_data_end_position begin_position 4 - 1;if (track_data_length track_data.length() / 2) {return track_data_length;} else {// 雷达数据不完整返回-1。return -1;}}} // processormain.cpp #include string#include QApplication #include QVector #include QtDebug #include QString#include ./form/main_window.h #include ./cat62process/cat62_fspec_processor.h #include ./cat62process/cat_62_length_processor.h #include ./cat62process/cat_62_header_processor.husing std::string;using form::MainWindow; using processor::Cat62FspecProcessor; using processor::Cat62HeaderProcessor; using processor::Cat62LengthProcessor;int main(int argc,char *argv[]) {QApplication a(argc, argv);// MainWindow* main_window{new MainWindow{nullptr}}; // main_window-show();QString content 3e0120bf7da4ffee0085988;int begin_position{0};int end_position begin_position;Cat62HeaderProcessor* header_processor{new Cat62HeaderProcessor{}};qDebug() header_processor-processor(content, begin_position, end_position);begin_position end_position 1;Cat62LengthProcessor* lenght_processor{new Cat62LengthProcessor{}};qDebug() lenght_processor-processor(content, begin_position, end_position);begin_position end_position 1;Cat62FspecProcessor* fspec_processor{new Cat62FspecProcessor{}};QVectorint* vector fspec_processor-processor(content, begin_position, end_position);for (int index 0; index vector-capacity(); index) {qDebug() index : vector-at(index) , ;}int i{20};return QApplication::exec(); }运行结果
http://www.zqtcl.cn/news/582703/

相关文章:

  • 行业网站建设报价摄影标志logo设计欣赏
  • 做reference的网站网站首页 模板
  • 微信php网站开发流程图做网站优化好的网络公司
  • 网站显示百度地图长沙制作网页的基本步骤
  • 免费做封面的网站哈尔滨网页制作要多少钱
  • html免费网页素材网站优化教程
  • 百度关键词网站排名优化软件seo服务 收费
  • 中英文切换网站网站建设的关键问题
  • 5款免费网站管理系统wordpress 本地
  • 企业网站制作公司盈利百度云搜索
  • 微云影视自助建站系统大理州建设局网站门户网
  • 构建网站需要会什么意思辽宁省朝阳网站建设
  • 网站建设捌金手指专业1公司域名邮箱注册
  • 建设工程协会网站建设工程合同属于专属管辖吗
  • 网站建设费可分摊几年电子商务网站建设基础
  • wordpress api 发贴北京网站优化seo
  • 青岛网站制作服务商wordpress红包
  • 网站响应式设计如何提高网站文章收录
  • 网站 橙色如何做自己网站的seo
  • 网上商城网站建设公司兰州网站制作公司怎么样
  • 网站的动态图怎么做的获取网站访客qq
  • 黑龙江网站建站建设知名品牌形象设计公司
  • 网站建设去哪可接单怎么做微信小程序平台
  • 做外贸重新设计网站兰州网站建设慕枫
  • 服装销售 网站建设论文搭建企业网站需要什么
  • cnnic网站备案html网站建设代码
  • 金华网站建设明细报价表c苏宁网站开发
  • 在手机上怎么做微电影网站湖南人工智能建站系统软件
  • 网站做的一样算侵权吗站群建站系统
  • 骨干专业建设验收网站xueui wordpress