函数 DeleteUpdatePackage [SWS_DM_01922] Upstream: RS_Diag_04265
virtual ara::core::Future< void > DeleteUpdatePackage (ara::core::String updatePackageId, MetaInfo const &metaInfo, CancellationHandler cancellationHandler) noexcept=0;
Called for SOVD method "Delete Update Package from an SOVD Server".
根据 [SWS_DM_01803],当需要执行 SOVD 方法“Delete Update Package from an SOVD Server”时,类 ara::diag::SovdSwUpdate 的纯虚函数 DeleteUpdatePackage 会被 Diagnostic Server 实例调用([SWS_DM_01922])。它触发更新包在服务器端的移除。
该调用异步进行并返回一个 ara::core::Future<void>,其指示成功完成或提供错误对象 [SWS_DM_01922]。签名要求以下输入参数:
updatePackageId:作为ara::core::String指明要删除的更新包的唯一 ID。metaInfo:作为MetaInfo const&传递请求的附加上下文信息。cancellationHandler:传递一个CancellationHandler类型的对象,该对象通知当前会话是否已被取消。
如果在处理过程中发生错误,Future 将包含相应的 SOVD 错误。规范为此规定必须使用来自 ASAM SOVD 1.1 或 ISO 17978-3 的相应错误代码 [SWS_DM_01922]。
在并发性方面,该方法被定义为条件线程安全:实现必须以线程安全还是非线程安全方式执行,由构造函数中传递的 ConcurrencyType 决定 [SWS_DM_01922]。此外,该函数被声明为 noexcept 且异常安全,因此不允许有异常逃逸。
本使用说明基于 AUTOSAR Adaptive R25-11 规范,由 AI 生成。
实现者指南即将推出(复杂度 I1)
| Header-Datei | #include "ara/diag/sovd_sw_update.h" |
|---|---|
| Scope | class ara::diag::SovdSwUpdate |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | conditional whether the function has to be implemented thread safe or non-thread safe is determined by the ConcurrencyType given in the constructor |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| updatePackageId | update-package-id to be deleted |
| metaInfo | MetaInfo of the request. |
| cancellationHandler | Informs if the current conversation is cancelled |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Future< void > | A future with either a positive results or a SOVD Error |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| Please use applicable error code from ASAM SOVD 1.1 or ISO 17978-3. | |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_01922- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_01922@rel:R25-11#5025df9d- Content hash
5025df9d- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01922
Status: valid/unmigrated
Version: rel:R25-11#3e5d5362
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_01922@rel:R25-11#3e5d5362
Recorded Revisions (4):
- R25-11
rel:R25-11#6203bff42026-09-30 - R23-11
rel:R23-11#af1834882026-10-14 - R24-11
rel:R24-11#113a04fa2026-10-14 - R25-11
rel:R25-11#3e5d53622026-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 · 德文原文