函数 Offer [SWS_DM_01872] Upstream: RS_Diag_04261
ara::core::Result< void > Offer () noexcept;
This Offer will enable the DM to forward request messages to this handler.
使用
类 ara::diag::SovdConfiguration 的方法 Offer 用于启用 Diagnostic Management(DM)向已配置处理程序转发诊断请求 [SWS_DM_01872]。该调用同步发生,不接受任何参数,并通过 ara::core::Result<void> 返回结果 [SWS_DM_01872]。只要处理程序未通过 Offer 提供,DM 就不会转发任何传入请求,这符合诊断接口的基本提供模式(参见 [SWS_DM_01525],[SWS_DM_00809])。
错误处理
在发生错误时,将返回带有枚举 DiagOfferErrc 中错误码的 ara::core::Result,并适用回滚语义 [SWS_DM_01872]:
DiagOfferErrc::kAlreadyOffered:在服务此前已提供时报告 [SWS_DM_01872]。DiagOfferErrc::kConfigurationMismatch:在配置与 DEXT 描述数据不匹配时发生 [SWS_DM_01872]。
并发性与限制
该操作被声明为 noexcept 且具有异常安全性(exception safe),但被指定为非线程安全(not thread-safe)[SWS_DM_01872]。调用方应用程序必须防止来自多个线程对同一实例的并发调用。推测在已经提供服务后再次调用可能会在不改变状态的情况下返回错误并确认。 问题 Q-f9b1a995dbb002ef (未决)
本使用说明由 AI 基于 AUTOSAR 规范 R25-11 编写。
实现者指南即将推出(复杂度 I1)
| Header-Datei | #include "ara/diag/sovd_configuration.h" |
|---|---|
| Scope | class ara::diag::SovdConfiguration |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not thread-safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< void > | Returns nothing or an error. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| DiagOfferErrc::kConfigurationMismatch | rollback_semantics monitor configuration does not match DEXT |
| DiagOfferErrc::kAlreadyOffered | rollback_semantics The service is already offered. |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_01872- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_01872@rel:R25-11#455bfe7e- Content hash
455bfe7e- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01872
Status: valid/unmigrated
Version: rel:R25-11#3482e5bc
Versionshistorie & Revisions (1 transition, 4 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_01872@rel:R25-11#3482e5bc
Recorded Revisions (4):
- R25-11
rel:R25-11#017896392026-09-30 - R23-11
rel:R23-11#9fcae3412026-10-14 - R24-11
rel:R24-11#635634302026-10-14 - R25-11
rel:R25-11#3482e5bc2026-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 · 德文原文