函数 AddMetaInfo [SWS_DM_00302] Upstream: RS_Diag_04147, RS_Diag_04170
virtual void AddMetaInfo (MetaInfoMap metaInfo) noexcept;
add new metaInfo to this message.
类 apext::diag::uds_transport::UdsMessage 的虚成员函数 AddMetaInfo 用于为诊断报文分配新的元数据 [SWS_DM_00302]。它通常由传输协议插件调用,以向相应的诊断请求附加通道特定附加信息——例如针对 DoIP 的预定义元数据键 AUTOSAR_AP_SWS_Diagnostics §C.5.2.2.2.1 “AddMetaInfo”。
使用该接口适用以下框架条件 [SWS_DM_00302]:
- 调用上下文与头文件:声明通过头文件
apext/diag/uds_transport/uds_message.h提供,并直接在UdsMessage的实例上执行 AUTOSAR_AP_SWS_Diagnostics §C.5.2.2.2.1 “AddMetaInfo”。 - 形参:类型为
MetaInfoMap的输入参数metaInfo传递请求待添加的元信息 [SWS_DM_00302]。 - 返回值:该同步函数无返回值(
void)[SWS_DM_00302]。 - 错误处理:该操作带有标识符
noexcept,并被指定为异常安全(exception safe);不存在特定的错误代码 [SWS_DM_00302]。
关于并发性,该方法被声明为非线程安全(thread safety: unsafe)[SWS_DM_00302]。解释:调用方因此可能负责通过外部机制保护对 UdsMessage 的同一实例的并发访问,因为规范未提供内部同步 AUTOSAR_AP_SWS_Diagnostics §C.5.2.2.2.1 “AddMetaInfo”。 问题 Q-c2de8aa28c94aed8 (未决)
本文由 AI 基于 AUTOSAR 规范 R25-11 生成。
实现者指南即将推出(复杂度 I1)
| Header-Datei | #include "apext/diag/uds_transport/uds_message.h" |
|---|---|
| Scope | class apext::diag::uds_transport::UdsMessage |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | unsafe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| metaInfo | MetaInfo of the request. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| None |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_00302- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_00302@rel:R25-11#b3f9fa14- Content hash
b3f9fa14- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00302
Status: valid/unmigrated
Version: rel:R25-11#675a6873
Versionshistorie & Revisions (1 transition, 8 revision)
- Current State
valid/unmigrated- Reason
- mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
- Campaign
2026-08-13-status-backfill- Active Version
AUTOSAR/AP/record/SWS_DM_00302@rel:R25-11#675a6873
Recorded Revisions (8):
- R25-11
rel:R25-11#5d66ee092026-09-30 - R19-11
rel:R19-11#59de85012026-10-14 - R20-11
rel:R20-11#fc0f4e762026-10-14 - R21-11
rel:R21-11#f7ca4f0c2026-10-14 - R22-11
rel:R22-11#fe9effec2026-10-14 - R23-11
rel:R23-11#ff73c0922026-10-14 - R24-11
rel:R24-11#f6433d2e2026-10-14 - R25-11
rel:R25-11#675a68732026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · 德文原文