함수 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
클래스 ara::diag::FileTransferService(SWS Diagnostics §8.18.1.2.3.1 “DeleteFile”, 헤더 #include "ara/diag/file_transfer.h")의 메서드 DeleteFile은(는) 모드 DeleteFile을(를) 갖는 UDS 서비스 RequestFileTransfer(0x38) 프레임워크 내에서 파일의 완전한 삭제 프로세스를 처리합니다 [SWS_DM_01335]. 해당 UDS 서비스는 ISO 14229-1에 따라 서버 측에서 제공됩니다 [SWS_DM_01310] SWS Diagnostics §7.3.2.8.20 “Service 0x38 – RequestFileTransfer”.
호출 시 세 개의 매개변수가 전달됩니다 [SWS_DM_01335]:
fileName(ara::core::String): 대상 파일의 경로 지정 및 이름(해석: 명세 텍스트의 편집상 표기인 “file to read”에도 불구하고 삭제할 파일에 해당함). 질문 Q-cdbe1185bb030e87 (열림)metaInfo(MetaInfo const &): 현재 진단 요청의 메타 정보.cancellationHandler(CancellationHandler):cancellationHandler.IsCanceled()을(를) 통한 취소 상태 확인 및 진행 중인 대화가 중단된 경우cancellationHandler.SetNotifier()을(를) 통한 알림 함수 등록을 가능하게 함.
비동기 결과로서 이 함수는 ara::core::Future<void>을(를) 반환합니다 [SWS_DM_01335]. 성공적인 완료는 진단 클라이언트에 긍정 응답 동작을 시그널링합니다. 오류 발생 시 Future 내에서 DiagUdsNrcErrc을(를) 통해 ISO 14229-1에 따른 적절한 UDS NRC를 제공해야 합니다 [SWS_DM_01335].
이 함수는 noexcept(으)로 명시되어 있으며 예외 안전(“exception safe”)으로 간주됩니다 [SWS_DM_01335]. 스레드 안전성에 대한 요구사항은 조건부이며 생성자에 전달된 ConcurrencyType을(를) 통해 제어됩니다 [SWS_DM_01335].
이 사용 지침은 AUTOSAR 사양 R25-11을 바탕으로 자동 생성되었습니다.
구현자 가이드 준비 중 (복잡도 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#a7fa588e- Content hash
a7fa588e- 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 · 독일어 원문