फ़ंक्शन 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#38dbf7ae- Content hash
38dbf7ae- 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 · जर्मन मूल