LCOV - code coverage report
Current view: top level - aicpu_schedule/common/ts_to_aicpu_msg_adapter - ts_aicpu_msg_info_adapter.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 1 1
Test Date: 2026-07-28 10:54:05 Functions: 100.0 % 2 2

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2026 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : #ifndef TS_AICPU_MSG_INFO_ADAPTER_H
      11              : #define TS_AICPU_MSG_INFO_ADAPTER_H
      12              : #include "ts_msg_adapter.h"
      13              : namespace AicpuSchedule {
      14              : class TsAicpuMsgInfoAdapter final : public TsMsgAdapter {
      15              : public:
      16              :     TsAicpuMsgInfoAdapter(const TsAicpuMsgInfoAdapter&) = delete;
      17              :     TsAicpuMsgInfoAdapter(TsAicpuMsgInfoAdapter&&) = delete;
      18              :     TsAicpuMsgInfoAdapter& operator=(const TsAicpuMsgInfoAdapter&) = delete;
      19              :     TsAicpuMsgInfoAdapter& operator=(TsAicpuMsgInfoAdapter&&) = delete;
      20           31 :     ~TsAicpuMsgInfoAdapter() override = default;
      21              :     TsAicpuMsgInfoAdapter(const TsAicpuMsgInfo& msgInfo);
      22              :     TsAicpuMsgInfoAdapter();
      23              : 
      24              :     // invaild parameter
      25              :     bool IsAdapterInvaildParameter() const override;
      26              : 
      27              :     //version set
      28              :     void GetAicpuMsgVersionInfo(AicpuMsgVersionInfo& info) override;
      29              :     int32_t AicpuMsgVersionResponseToTs(const int32_t result) override;
      30              : 
      31              :     // dump
      32              :     void GetAicpuDataDumpInfo(AicpuDataDumpInfo& info) override;
      33              :     bool IsOpMappingDumpTaskInfoVaild(const AicpuOpMappingDumpTaskInfo& info) const override;
      34              :     void GetAicpuDumpTaskInfo(AicpuOpMappingDumpTaskInfo& opmappingInfo, AicpuDumpTaskInfo& dumpTaskInfo) override;
      35              :     void GetAicpuDataDumpInfoLoad(AicpuDataDumpInfoLoad& info) override;
      36              :     int32_t AicpuDumpResponseToTs(const int32_t result) override;
      37              :     int32_t AicpuDataDumpLoadResponseToTs(const int32_t result) override;
      38              : 
      39              :     // model operator
      40              :     void GetAicpuModelOperateInfo(AicpuModelOperateInfo& info) override;
      41              :     int32_t AicpuModelOperateResponseToTs(const int32_t result, const uint32_t subEvent) override;
      42              :     void AicpuActiveStreamSetMsg(ActiveStreamInfo& info) override;
      43              : 
      44              :     //task report
      45              :     void GetAicpuTaskReportInfo(AicpuTaskReportInfo& info) override;
      46              :     int32_t ErrorMsgResponseToTs(ErrMsgRspInfo& rspInfo) override;
      47              : 
      48              :     //info load 
      49              :     void GetAicpuInfoLoad(AicpuInfoLoad& info) override;
      50              :     int32_t AicpuInfoLoadResponseToTs(const int32_t result) override;
      51              : 
      52              :     // err report
      53              :     void GetAicErrReportInfo(AicErrReportInfo& info) override;
      54              : 
      55              :     //record
      56              :     int32_t AicpuRecordResponseToTs(AicpuRecordInfo& info) override;
      57              : 
      58              :     // pid notice
      59              :     int32_t AicpuNoticeTsPidResponse(const uint32_t deviceId) const override;
      60              : 
      61              :     // time out
      62              :     void GetAicpuTimeOutConfigInfo(AicpuTimeOutConfigInfo& info) override;
      63              :     int32_t AicpuTimeOutConfigResponseToTs(const int32_t result) override;
      64              : private:
      65              :     TsAicpuMsgInfo aicpuMsgInfo_;
      66              :     bool invalidMsgInfo_;
      67              : };
      68              : } // namespace AicpuSchedule
      69              : #endif // TS_AICPU_MSG_INFO_ADAPTER_H
        

Generated by: LCOV version 2.0-1