함수 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 (열림)
이 사용 지침은 AUTOSAR 명세 R25-11을 기반으로 AI에 의해 작성되었습니다.
구현자 가이드 준비 중 (복잡도 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#3c80a7a5- Content hash
3c80a7a5- 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 · 독일어 원문