函数 Add [SWS_DM_01175] Upstream: RS_Diag_04251
auto Add (Byte value) noexcept -> DynamicAccessListDiagServiceBuilder &;
This function is used by the application to add a single byte to a DynamicAccessListPattern.
使用
类 ara::diag::DynamicAccessListDiagServiceBuilder 的同步方法 Add 用于向 DynamicAccessListPattern 添加单个字节(Byte value)[SWS_DM_01175]。在对诊断服务的访问权限进行求值时,传入的字节值将被检查是否完全匹配 [SWS_DM_01175]。通过返回对同一对象实例的引用(DynamicAccessListDiagServiceBuilder&),该函数支持作为 Fluent API 进行调用 [SWS_DM_01175]。
错误处理与异常安全性
该操作被声明为 noexcept 并被指定为异常安全(exception safe)[SWS_DM_01175]。既不返回错误代码,也不返回类型为 ara::core::Result 的返回值;在有效负载中未针对该函数指出特定的 DET 或 DEM 消息。
并发性与限制
该方法被指定为非线程安全(not thread-safe)[SWS_DM_01175]。解释:因此,在诊断服务器中对创建的访问模式进行求值之前,对同一构建器实例的调用通常可能在单个线程内顺序执行。 问题 Q-69d895fc6bf90cb4 (未决)
相互作用
在接口 DynamicAccessListDiagServiceBuilder 内,该方法补充了 Add 的相关重载,通过这些重载可以经由 ByteString [SWS_DM_01176] 将字节序列或经由 ByteRange [SWS_DM_01177] 将值范围添加到 DynamicAccessListPattern 中。
本文由 AI 基于 AUTOSAR 规范 R25-11 生成。
实现者指南即将推出(复杂度 I1)
| Header-Datei | #include "ara/diag/dynamic_access_list_diag_service_builder.h" |
|---|---|
| Scope | class ara::diag::DynamicAccessListDiagServiceBuilder |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| value | The byte value to add to the DynamicAccessList. The value will be used to check for an exact match during evaluation of the diagnostic service access rights. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| DynamicAccessListDiagServiceBuilder | Returns the instance of the same object to allow fluent API usage. |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_01175- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_01175@rel:R25-11#f575c242- Content hash
f575c242- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01175
Status: valid/unmigrated
Version: rel:R25-11#4b661972
Versionshistorie & Revisions (1 transition, 6 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_01175@rel:R25-11#4b661972
Recorded Revisions (6):
- R25-11
rel:R25-11#e8ba163d2026-09-30 - R21-11
rel:R21-11#eb8856682026-10-14 - R22-11
rel:R22-11#446a90f62026-10-14 - R23-11
rel:R23-11#462b645d2026-10-14 - R24-11
rel:R24-11#fba796202026-10-14 - R25-11
rel:R25-11#4b6619722026-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 · 德文原文