함수 Offer [SWS_DM_00802] Upstream: RS_AP_00119, RS_AP_00139, RS_Diag_04033
ara::core::Result< void > Offer () noexcept;
This Offer will enable the DM to forward request messages to this handler.
사용법 및 의미론
ara::diag::UploadService 클래스([SWS_DM_00802])의 동기 멤버 함수 Offer은 Diagnostic Management(DM)이 등록된 핸들러로 진단 요청을 전달하는 기능을 활성화합니다. 호출은 매개변수를 받지 않으며 예외 안전성 noexcept을 선언합니다([SWS_DM_00802]). 반환 타입으로는 ara::core::Result<void>이 사용되며, 이를 통해 성공적인 제공 또는 발생한 오류가 표현됩니다([SWS_DM_00802]).
오류 처리 및 동시성
- 오류 코드: 서비스가 이미 이전에 제공된 경우, 실행은 오류 코드
DiagOfferErrc::kAlreadyOffered과 함께 실패합니다([SWS_DM_00802]). 이 경우 롤백 시맨틱이 적용됩니다. - 스레드 안전성: 이 함수는 명시적으로 not thread-safe로 지정되어 있습니다([SWS_DM_00802]). 동일한 서비스 인스턴스에 대한 동시 호출은 애플리케이션 측에서 동기화되어야 합니다.
진단 하위 시스템에서의 상호작용
이 작업은 DownloadService([SWS_DM_00792]) 또는 GenericUDSService([SWS_DM_00619]) 등에서 사용되는 적응형 진단 핸들러의 통일된 제공 패턴에 부합합니다. 제공이 완료되지 않은 동안 DM은 수신 진단 메시지를 핸들러로 전달하지 않습니다([SWS_DM_01525]의 유사한 동작 참조). 해석: Offer의 호출은 일반적으로 진단 트래픽을 수신하기 전 애플리케이션 초기화 단계 중에 수행될 것으로 추정됩니다. 질문 Q-aba091d233b5e45b (열림)
이 사용 지침은 AUTOSAR 사양 R25-11을 기반으로 자동 생성되었습니다.
구현자 가이드 준비 중 (복잡도 I1)
| Header-Datei | #include "ara/diag/upload.h" |
|---|---|
| Scope | class ara::diag::UploadService |
| 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::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_00802- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_00802@rel:R25-11#4b6b908e- Content hash
4b6b908e- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00802
Status: valid/unmigrated
Version: rel:R25-11#bad97a1d
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_00802@rel:R25-11#bad97a1d
Recorded Revisions (8):
- R25-11
rel:R25-11#786c252c2026-09-30 - R19-11
rel:R19-11#3f54e3d62026-10-14 - R20-11
rel:R20-11#0298249e2026-10-14 - R21-11
rel:R21-11#13db1e2f2026-10-14 - R22-11
rel:R22-11#c89046b12026-10-14 - R23-11
rel:R23-11#5c26975d2026-10-14 - R24-11
rel:R24-11#27f9bbaf2026-10-14 - R25-11
rel:R25-11#bad97a1d2026-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 · 독일어 원문