función DeleteFile [SWS_DM_01335] Upstream: RS_Diag_04135
virtual auto DeleteFile (ara::core::String fileName, MetaInfo const &metaInfo, CancellationHandler cancellationHandler) noexcept -> ara::core::Future< void >=0;
Called for RequestFileTransfer with ModeOfOperation DeleteFile. This method is the complete operation of deleting a file
El método DeleteFile de la clase ara::diag::FileTransferService (SWS Diagnostics §8.18.1.2.3.1 «DeleteFile», encabezado #include "ara/diag/file_transfer.h") gestiona el proceso completo de eliminación de un archivo en el marco del servicio UDS RequestFileTransfer (0x38) con el modo DeleteFile [SWS_DM_01335]. El servicio UDS se proporciona en el lado del servidor de conformidad con ISO 14229-1 [SWS_DM_01310] SWS Diagnostics §7.3.2.8.20 «Service 0x38 – RequestFileTransfer».
En la llamada se pasan tres parámetros [SWS_DM_01335]:
fileName(ara::core::String): indicación de ruta y nombre del archivo de destino (interpretación: a pesar de la indicación editorial «file to read» en el texto de la especificación, se trata del archivo que se va a eliminar). Pregunta Q-cdbe1185bb030e87 (abierta)metaInfo(MetaInfo const &): metainformación de la solicitud de diagnóstico actual.cancellationHandler(CancellationHandler): permite comprobar el estado de cancelación a través decancellationHandler.IsCanceled(), así como registrar una función de notificación a través decancellationHandler.SetNotifier()en caso de que la conversación en curso se cancele.
Como resultado asíncrono, la función devuelve un ara::core::Future<void> [SWS_DM_01335]. Una finalización exitosa señala al cliente de diagnóstico un comportamiento de respuesta positivo. En caso de error, debe proporcionarse un NRC de UDS pertinente según ISO 14229-1 a través de DiagUdsNrcErrc en el Future [SWS_DM_01335].
La función está especificada como noexcept y se considera segura frente a excepciones («exception safe») [SWS_DM_01335]. El requisito de seguridad para subprocesos es condicional y se controla mediante el ConcurrencyType pasado al constructor [SWS_DM_01335].
Esta nota de uso fue generada automáticamente sobre la base de la especificación AUTOSAR R25-11.
Guía del implementador pendiente (complejidad I1)
| Header-Datei | #include "ara/diag/file_transfer.h" |
|---|---|
| Scope | class ara::diag::FileTransferService |
| 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 |
|---|---|
| fileName | Path including name of the file to read |
| metaInfo | MetaInfo of the request. |
| cancellationHandler | This parameter is used to • Query the current cancellation status by calling cancellationHandler.IsCanceled. Returns TRUE in case, the current conversation has been cancelled and FALSE otherwise. • Register a notifier function by calling cancellationHandler.SetNotifier. The registered notifier is called if the current conversation is cancelled. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Future< void > | A Future with either a void data result to be reported to the UDS client (for a positive response message) or an UDS NRC value (for a negative response message). |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| Please use an applicable NRC, as defined in ISO 14229-1, using DiagUdsNrcErrc. | |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_01335- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_01335@rel:R25-11#d394ef42- Content hash
d394ef42- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01335
Status: valid/unmigrated
Version: rel:R25-11#5a76fff5
Versionshistorie & Revisions (1 transition, 5 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_01335@rel:R25-11#5a76fff5
Recorded Revisions (5):
- R25-11
rel:R25-11#8332cd052026-09-30 - R22-11
rel:R22-11#36673d0f2026-10-14 - R23-11
rel:R23-11#73618cf32026-10-14 - R24-11
rel:R24-11#1c7c75ef2026-10-14 - R25-11
rel:R25-11#5a76fff52026-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 · Original en alemán