DEENESPTFRRUARHIKOZHNL

فئة ara::per::FileStorage

[SWS_PER_00340] Upstream: RS_PER_00004, RS_AP_00122, RS_AP_00140, RS_AP_00146

class FileStorage final {...};

The File Storage contains a set of files identified by their file names.

Header-Datei#include "ara/per/file_storage.h"
Forwarding-Header#include "ara/per/per_fwd.h"
Scopenamespace ara::per

دليل المستخدممولَّد بالذكاء الاصطناعي

تدير الملفات المستمرة وتفتحها عبر مقابض قائمة على RAII للقراءة والكتابة بالكتل.
مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 7736cf7ccbd1 المصدر أسئلة مفتوحة (2)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تدير الملفات المستمرة وتفتحها عبر مقابض قائمة على RAII للقراءة والكتابة بالكتل.

تتيح الفئة ara::per::FileStorage إدارة وفتح مجموعة من الملفات المستمرة المهيأة عبر أسماء ملفات فريدة [SWS_PER_00110]. ويتم الوصول الفعلي للقراءة والكتابة عبر عناصر وصول تدار بواسطة UniqueHandle، والتي تغلق الملف تلقائيًا مرة أخرى عند الخروج من النطاق [SWS_PER_00114]. ونظرًا لأن الملفات المفتوحة بالفعل محمية من عمليات الحذف أو الاستعادة المتزامنة، فإن مثل هذه العمليات المتوازية للوصول تفشل مع PerErrc::kResourceBusy [SWS_PER_00111].

السياق

تغلف الفئة ara::per::FileStorage الوصول إلى مجموعة مهيأة من الملفات المستمرة التي يتم التعرف عليها عبر أسماء ملفات فريدة. وتعمل كواجهة مركزية للتطبيقات لتنفيذ عمليات الملفات مثل سرد الملفات الموجودة عبر GetAllFileNames [SWS_PER_00110]، والتحقق من الوجود بواسطة FileExists [SWS_PER_00112]، بالإضافة إلى الاستعلام عن البيانات الوصفية وأحجام الملفات عبر GetFileInfo [SWS_PER_00438] وGetCurrentFileSize [SWS_PER_00407]. ولا يتم الوصول المباشر للقراءة أو الكتابة على مستوى البايت على مثيل التخزين نفسه، بل يتم التوسط فيه عبر كائنات وصول خاصة توفرها دوال الفتح كـ UniqueHandle [SWS_PER_00114] [SWS_PER_00113] [SWS_PER_00115].

دورة الحياة

يخضع إنشاء مثيل FileStorage لقيود صارمة: فقد تم حذف كل من المنشئ الافتراضي [SWS_PER_00460]، ومنشئي النسخ والنقل [SWS_PER_00328] [SWS_PER_00326]، ومعاملي تعيين النسخ والنقل [SWS_PER_00329] [SWS_PER_00327] صراحةً. وبالتالي، يُرجح أن يُفتح مثيل FileStorage ويُتاح عبر دوال المصنع الخاصة بمنصة وحدة الاستمرارية. سؤال (مفتوح) والهادم ~FileStorage آمن من حيث الاستثناءات (noexcept)، غير أنه محدد صراحةً بأنه ليس آمنًا لخيوط المعالجة [SWS_PER_00330]، ولهذا السبب يجب التأكد من عدم حدوث أي استدعاءات متزامنة على الكائن أثناء الإتلاف.

أثناء التشغيل، صُممت عمليات الملفات العادية مثل FileExists أو DeleteFile أو فتح الملفات لتكون آمنة لخيوط المعالجة [SWS_PER_00111] [SWS_PER_00112] [SWS_PER_00114]. ومع ذلك، تجدر الإشارة إلى أن نتائج استعلامات الحالة مثل GetAllFileNames [SWS_PER_00110] أو FileExists [SWS_PER_00112] لا تتمتع بصلاحية دقيقة إلا إذا لم تُضف ملفات أو تُحذف في خيط معالجة آخر في الوقت نفسه. وينطبق أمر مماثل على GetFileInfo: فأوقات التعديل والوصول بالإضافة إلى حالة التحرير تكون دقيقة وموثوقة فقط طالما أن الملف الهدف ليس مفتوحًا [SWS_PER_00438].

مسار الاستخدام

يتضمن مسار الاستخدام النموذجي الفحص، والفتح المستهدف، ومعالجة البيانات عبر مقبض كائن الوصول، والتنظيف الختامي:

  1. فحص حالة الملف: قبل الوصول، يمكن اختياريًا عبر FileExists تحديد ما إذا كان الملف المطلوب موجودًا [SWS_PER_00112]، أو الاستعلام عن الرصيد المتاح عبر GetAllFileNames [SWS_PER_00110].
  2. فتح الملف: توفر الفئة دوال مخصصة وفقًا لوضع الوصول المقصود. وللوصول للقراءة فقط، تتوفر تحميلات زائدة لـ OpenFileReadOnly [SWS_PER_00114] [SWS_PER_00376] [SWS_PER_00430]. وللوصول للقراءة والكتابة، يُستخدم OpenFileReadWrite [SWS_PER_00113] [SWS_PER_00375] [SWS_PER_00429]، حيث يتم إنشاء ملف غير موجود تلقائيًا من جديد. وللكتابة فقط، توجد OpenFileWriteOnly [SWS_PER_00115] [SWS_PER_00377] [SWS_PER_00431]، والتي تقتطع الملف افتراضيًا (kTruncate) أو تنشئه من جديد. ولزيادة الأداء عند وجود عمليات وصول صغيرة متعددة، تتيح التحميلات الزائدة تمرير مخزن مؤقت محدد من قبل المستخدم للقراءة أو الكتابة بالكتل [SWS_PER_00430] [SWS_PER_00429] [SWS_PER_00431].
  3. إغلاق الملف وتحرير الموارد: يُغلف ara::core::Result المعادل من دوال الفتح UniqueHandle على كائن الوصول المعني. ويُغلق الملف تلقائيًا بمجرد خروج UniqueHandle هذا من نطاقه [SWS_PER_00114] [SWS_PER_00113] [SWS_PER_00115]. ويُفترض أنه يتم هنا أيضًا إلغاء علامة حجز الملف في FileStorage. سؤال (مفتوح)
  4. الصيانة والتنظيف: تُحذف الملفات التي لم تعد مطلوبة باستخدام DeleteFile [SWS_PER_00111]. وفي حالة انتهاكات السلامة، يوفر RecoverFile استعادة وفق أفضل جهد للبيانات المكررة [SWS_PER_00337]، بينما يعيد ResetFile ضبط ملف إلى محتوى توفيره الأولي أو ينشئه من جديد في حالة عدم وجوده [SWS_PER_00338].
مسار الاستخدام النموذجي لـ FileStorageالتطبيقstorage: FileStoragehandle: UniqueHandleUse Case: 1. الفحص المسبقFileExists(fileName)Result<bool> (true)Use Case: 2. فتح الملفOpenFileReadOnly(fileName, mode, buffer)Result<UniqueHandle<ReadAccessor>>Use Case: 3. Dateiinhalt lesenالقراءة على شكل كتل عبر AccessorGelesene Byte-DatenUse Case: 4. الإغلاق عند نهاية الصلاحيةيغادر UniqueHandle نطاق الصلاحيةمُدمّر الكائن يغلق الملفUse Case: 5. BereinigungDeleteFile(fileName)Result<void>

مخطط تسلسلي: المسار النموذجي بدءًا من فحص الملف وفتحه مرورًا بمعالجة المخزن المؤقت وحتى الإغلاق التلقائي عبر نطاق المقبض. المصادر: [SWS_PER_00112]، [SWS_PER_00430]، [SWS_PER_00114]، [SWS_PER_00111].

سيناريوهات الأخطاء

تشير دوال FileStorage إلى الأخطاء عبر ara::core::Result باستخدام التعداد الحصري للأخطاء PerErrc. وتتضمن أهم حالات الأخطاء ما يلي:

  • تعارضات الموارد (PerErrc::kResourceBusy): لا يمكن فتح ملف أو حذفه أو استعادته أو إعادة ضبطه إذا كان مفتوحًا بالفعل أو إذا كان DeleteFile أو RecoverFile أو ResetFile يُنفذ بالتوازي على نفس اسم الملف [SWS_PER_00111] [SWS_PER_00114] [SWS_PER_00113] [SWS_PER_00337] [SWS_PER_00338].
  • الملفات غير الموجودة (PerErrc::kFileNotFound): تحدث عندما يكون ملف غير موجود مطلوبًا فتحه للقراءة فقط [SWS_PER_00114]، أو حذفه [SWS_PER_00111]، أو الاستعلام عنه [SWS_PER_00407] [SWS_PER_00438]، أو استعادته [SWS_PER_00337].
  • انتهاكات الوصول والأذونات: تفشل عمليات الفتح للكتابة أو عمليات الحذف مع PerErrc::kIllegalWriteAccess إذا كان التخزين مهيأً للقراءة فقط (read-only) [SWS_PER_00111] [SWS_PER_00113] [SWS_PER_00115]. وتُرفض توليفات الأوضاع غير الصالحة بواسطة PerErrc::kInvalidOpenMode [SWS_PER_00114] [SWS_PER_00113].
  • حدود التخزين والحصص النسبية: عند الإنشاء الجديد أو التوسيع، قد يحدث PerErrc::kOutOfStorageSpace (امتلاء التخزين المادي)، أو PerErrc::kTooManyFiles (تجاوز maxNumberOfFiles)، أو PerErrc::kQuotaExceeded (تجاوز maximumAllowedSize) [SWS_PER_00113] [SWS_PER_00337] [SWS_PER_00338].
  • أخطاء السلامة والأمان: في حالة تعطل طبقة التخزين المادية، يتم الإبلاغ عن PerErrc::kPhysicalStorageFailure. وتؤدي هياكل البيانات التالفة أو عمليات التحقق الفاشلة أو مشكلات التشفير إلى PerErrc::kIntegrityCorrupted، أو PerErrc::kValidationFailed، أو PerErrc::kEncryptionFailed، أو PerErrc::kAuthenticationFailed [SWS_PER_00110] [SWS_PER_00112] [SWS_PER_00114] [SWS_PER_00337].
  • البيانات الأولية المفقودة (PerErrc::kInitValueNotAvailable): تفشل العملية عند إعادة الضبط عبر ResetFile إذا لم تكن هناك قيم أولية محفوظة في Application Design ولا في تهيئة الهدف [SWS_PER_00338].

يستند هذا الدليل إلى مواصفة AUTOSAR Adaptive Platform الإصدار R25-11 ويلخص المتطلبات الوظيفية لـ ara::per::FileStorage.

خريطة الأعضاء

مخطط الفئة

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__per__FileStorage945 FileStorage + FileStorage() + operator=() + ~FileStorage() + DeleteFile() + FileExists() + GetAllFileNames() + GetCurrentFileSize() + GetFileInfo() + OpenFileReadOnly() + OpenFileReadWrite() + OpenFileWriteOnly() + RecoverFile() + ResetFile()

عرض التفاصيل

اختر عنصرًا من المخطط.

المُنشئات والمُتلف

FileStorage دالة 3

The move constructor for FileStorage shall not be used.

التحميلات الزائدة FileStorage 3
FileStorage (FileStorage &&fs)=delete; SWS_PER_00326
FileStorage (const FileStorage &)=delete; SWS_PER_00328
FileStorage ()=delete; SWS_PER_00460
~FileStorage دالة

Destructor for FileStorage.

~FileStorage () noexcept;

الدوال الأعضاء

DeleteFile دالة

Deletes a file from this File Storage. This operation will fail with kResourceBusy when the file is currently open.

ara::core::Result< void > DeleteFile (ara::core::StringView fileName) noexcept;
FileExists دالة

Checks if a file exists in this File Storage. The result is only accurate if no file is added or deleted at the same time. E.g. when a file is removed in another thread directly after this function returned "true", the result is not valid anymore.

ara::core::Result< bool > FileExists (ara::core::StringView fileName) const noexcept;

Returns a list of all currently available file names of this File Storage. The list of file names is only accurate if no file is added or deleted at the same time.

ara::core::Result< ara::core::Vector< ara::core::String > > GetAllFile Names () const noexcept;

Returns the space in bytes currently occupied by the content of a file of this File Storage. The returned size might be inaccurate if any of the instances of a file is invalid or if another operation on the file takes place at the same time.

ara::core::Result< std::uint64_t > GetCurrentFileSize (ara::core::StringView fileName) const noexcept;
GetFileInfo دالة

Returns additional information on a file of this File Storage. The returned FileInfo struct contains information about the times when the file was created, last modified, and last accessed, and about how and by whom the file was created and last modified. The modificationTime, accessTime, and fileModificationState returned in the FileInfo are only accurate if the file is currently not open.

ara::core::Result< FileInfo > GetFileInfo (ara::core::StringView file Name) const noexcept;
OpenFileReadOnly دالة 3

Opens a file of this File Storage for reading with a defined mode. If not otherwise specified by the provided mode, the file is opened with the seek position set to the beginning (corresponding to kAtTheBeginning). The file will be closed when the returned UniqueHandle goes out of scope.

التحميلات الزائدة OpenFileReadOnly 3

Opens a file of this File Storage for reading and writing with a defined mode. If not otherwise specified by the provided mode, the file is opened with the seek position set to the beginning (corresponding to kAtTheBeginning). If the file does not exist, it is created. The file will be closed when the returned UniqueHandle goes out of scope.

التحميلات الزائدة OpenFileReadWrite 3

Opens a file of this File Storage for writing with a defined mode. If not otherwise specified by the provided mode, the file is truncated (corresponding to k Truncate). If the file does not exist, it is created. The file will be closed when the returned UniqueHandle goes out of scope.

التحميلات الزائدة OpenFileWriteOnly 3
RecoverFile دالة

Recovers a file of this File Storage. This method allows to recover a single file when the redundancy checks fail. It will fail with kResourceBusy when the file is currently open. This method does a best-effort recovery of the file. After recovery, the file might show outdated or initial content, or might be lost.

ara::core::Result< void > RecoverFile (ara::core::StringView fileName) noexcept;
ResetFile دالة

Resets a file of this File Storage to its initial content. ResetFile allows to reset a single file to its initial content. If the file is currently not available in the File Storage, it is re-created. Afterwards, the file will appear in both cases as if it was newly installed from the current Target Configuration. It will fail with kResourceBusy when the file is currently open, and with kInitValueNotAvailable when neither Application Design nor Target Configuration define an initial content for the file.

ara::core::Result< void > ResetFile (ara::core::StringView fileName) noexcept;

المعاملات

operator= دالة 2

The move assignment operator for FileStorage shall not be used.

التحميلات الزائدة = 2
FileStorage & operator= (FileStorage &&fs)=delete; SWS_PER_00327
FileStorage & operator= (const FileStorage &)=delete; SWS_PER_00329

توثيق الدوال

دالة DeleteFile [SWS_PER_00111] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< void > DeleteFile (ara::core::StringView fileName) noexcept;

Deletes a file from this File Storage. This operation will fail with kResourceBusy when the file is currently open.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 4416a2cc7c72 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تحذف الطريقة المتزامنة DeleteFile للفئة ara::per::FileStorage ملفًا بالاستناد إلى اسمه (fileName) من وحدة تخزين الملفات [SWS_PER_00111]. ويمكن أن يتطابق المعرّف مع PersistencyFile.fileName المُكوّن [SWS_PER_00111]. وقد حُدد الاستدعاء كـ noexcept، ويُعد آمنًا من الاستثناءات وكذلك آمنًا بالنسبة للخيوط، ويُبلغ عن النتيجة عبر ara::core::Result<void> [SWS_PER_00111].

قبل الاستدعاء، يجب إنهاء جميع عمليات الوصول النشطة إلى الملف الهدف. وإذا كان الملف مفتوحًا حاليًا، تفشل عملية الحذف بالخطأ PerErrc::kResourceBusy [SWS_PER_00111]. ولذلك يجب على التطبيقات التأكد من أن نُسخ UniqueHandle التي تم إنشاؤها مسبقًا عبر OpenFileReadWrite [SWS_PER_00113]، أو OpenFileReadOnly [SWS_PER_00114]، أو OpenFileWriteOnly [SWS_PER_00115] قد غادرت نطاق صلاحيتها، مما يؤدي إلى إغلاق الملف. وبالمثل، يؤدي تنفيذ RecoverFile [SWS_PER_00337] أو ResetFile [SWS_PER_00338] بالتوازي لنفس اسم الملف إلى PerErrc::kResourceBusy [SWS_PER_00111].

في حالة حدوث خطأ، يوفر النوع Result المُرجع أسبابًا محددة للخطأ [SWS_PER_00111]:

  • PerErrc::kFileNotFound: الملف المحدد غير موجود في وحدة تخزين الملفات [SWS_PER_00111].
  • PerErrc::kIllegalWriteAccess: تم تكوين تخزين الملفات (File Storage) ليكون للقراءة فقط [SWS_PER_00111].
  • PerErrc::kPhysicalStorageFailure: فشل الوصول إلى وسيط التخزين الفعلي (بدون دلالات التراجع) [SWS_PER_00111].
  • PerErrc::kIntegrityCorrupted، أو PerErrc::kEncryptionFailed، أو PerErrc::kAuthenticationFailed: أخطاء في التكامل الهيكلي، أو التشفير/فك التشفير، أو التحقق من MAC (كل منها مع دلالات التراجع)، بالإضافة إلى أخطاء خاصة بالشركة المصنعة [SWS_PER_00111].

تم إنشاء هذا النص بواسطة ذكاء اصطناعي ويُستخدم كدليل إرشادي. والمواصفات الواردة في وثائق AUTOSAR هي وحدها الملزمة.

دليل المنفِّذ قيد الإعداد (التعقيد I2)

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.

Rückgabewert

TypBeschreibung
ara::core::Result< void >A Result of void. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
PerErrc::kIllegalWriteAccessrollback_semantics Returned if the File Storage is configured as read-only.
PerErrc::kPhysicalStorageFailureno_rollback_semantics Returned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be written because the structural integrity is corrupted.
PerErrc::kEncryptionFailedrollback_semantics Returned if the encryption or decryption of stored data fails.
PerErrc::kResourceBusyrollback_semantics Returned if the file is open, or if RecoverFile or ResetFile with the same file name is currently being executed.
PerErrc::kFileNotFoundrollback_semantics Returned if the provided file does not exist in the File Storage.
PerErrc::kAuthenticationFailedrollback_semantics Returned if calculating or checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00111
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00111@rel:R25-11#22be4947
Content hash
22be4947
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00111
Status: valid/unmigrated Version: rel:R25-11#54be3f24 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_PER_00111@rel:R25-11#54be3f24
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#9014bbf32026-09-30
  • R19-11rel:R19-11#878a9ae32026-10-14
  • R20-11rel:R20-11#c8f140db2026-10-14
  • R21-11rel:R21-11#35984aa22026-10-14
  • R22-11rel:R22-11#86df5bb02026-10-14
  • R23-11rel:R23-11#a507e2692026-10-14
  • R24-11rel:R24-11#5c96fd1e2026-10-14
  • R25-11rel:R25-11#54be3f242026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة FileExists [SWS_PER_00112] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00121, RS_AP_00127, RS_AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< bool > FileExists (ara::core::StringView fileName) const noexcept;

Checks if a file exists in this File Storage. The result is only accurate if no file is added or deleted at the same time. E.g. when a file is removed in another thread directly after this function returned "true", the result is not valid anymore.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: f0bea0a79212 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تتحقق الطريقة المتزامنة FileExists للفئة ara::per::FileStorage مما إذا كان هناك ملف موجوداً في وحدة تخزين الملفات المعنية [SWS_PER_00112]. الدالة مُعلنة كـ noexcept ولا تطلق أي استثناءات C++ [SWS_PER_00112].

الاستخدام

يتم تمرير fileName كـ ara::core::StringView كمعلمة، والتي يمكن أن تتطابق مع المُعرّف PersistencyFile.fileName لملف تم تكوينه [SWS_PER_00112]. وتُرجع قيمة الإرجاع ara::core::Result<bool> القيمة true إذا أمكن تحديد موقع الملف، وإلا فإنها تُرجع false [SWS_PER_00112].

معالجة الأخطاء

إذا فشل التحقق، فإن Result المُرجع لا يحتوي على قيمة منطقية بل على رمز خطأ [SWS_PER_00112]. وأسباب الخطأ المحددة هي:

  • PerErrc::kPhysicalStorageFailure عند فشل الوصول الفعلي إلى وحدة التخزين [SWS_PER_00112]،
  • PerErrc::kIntegrityCorrupted في حالة تلف السلامة الهيكلية للبيانات [SWS_PER_00112]،
  • PerErrc::kValidationFailed إذا تعذر ضمان صحة البيانات المخزنة [SWS_PER_00112]،
  • PerErrc::kEncryptionFailed عند فشل فك التشفير [SWS_PER_00112]،
  • PerErrc::kAuthenticationFailed عند فشل التحقق من MAC [SWS_PER_00112] بالإضافة إلى أخطاء محتملة خاصة بالشركة المصنعة [SWS_PER_00112].

التزامن والقيود

تم الإعلان عن الطريقة بأنها آمنة لخيوط المعالجة [SWS_PER_00112]. ومع ذلك، فإن نتيجة التحقق المقدمة تكون دقيقة فقط طالما لم تتم إضافة ملفات أو حذفها في وحدة التخزين في نفس الوقت؛ فإذا قام خيط معالجة آخر، على سبيل المثال، بإزالة ملف مباشرة بعد إرجاع true، فلن تعد النتيجة صالحة [SWS_PER_00112].

تم إنشاء ملاحظة الاستخدام هذه آليًا استنادًا إلى AUTOSAR R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe PerErrc::kPhysical rollback_semantics

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.

Rückgabewert

TypBeschreibung
ara::core::Result< bool >A Result containing true if the file could be located or false if it couldn’t. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00112
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00112@rel:R25-11#7b9fe1ea
Content hash
7b9fe1ea
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00112
Status: valid/unmigrated Version: rel:R25-11#eff770fd 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_PER_00112@rel:R25-11#eff770fd
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b7ca36222026-09-30
  • R19-11rel:R19-11#bb51dd332026-10-14
  • R20-11rel:R20-11#69021fcb2026-10-14
  • R21-11rel:R21-11#a1fece9f2026-10-14
  • R22-11rel:R22-11#2147fabd2026-10-14
  • R23-11rel:R23-11#cd2da2ba2026-10-14
  • R24-11rel:R24-11#421ba73d2026-10-14
  • R25-11rel:R25-11#eff770fd2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة FileStorage [SWS_PER_00326] Upstream: RS_PER_00004, RS_AP_00120, RS_AP_00121, RS_AP_00129, RS_AP_00145, RS_AP_00159

FileStorage (FileStorage &&fs)=delete;

The move constructor for FileStorage shall not be used.

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00326
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00326@rel:R25-11#85a63c5d
Content hash
85a63c5d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00326
Status: valid/unmigrated Version: rel:R25-11#62da63ae 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_PER_00326@rel:R25-11#62da63ae
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#201fb7f12026-09-30
  • R19-11rel:R19-11#ee041ade2026-10-14
  • R20-11rel:R20-11#b225c72d2026-10-14
  • R21-11rel:R21-11#805cfb8b2026-10-14
  • R22-11rel:R22-11#a9c3021b2026-10-14
  • R23-11rel:R23-11#4fc6a3d12026-10-14
  • R24-11rel:R24-11#62da63ae2026-10-14
  • R25-11rel:R25-11#62da63ae2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة FileStorage [SWS_PER_00328] Upstream: RS_PER_00004, RS_AP_00120, RS_AP_00145

FileStorage (const FileStorage &)=delete;

The copy constructor for FileStorage shall not be used.

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00328
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00328@rel:R25-11#95d16d4c
Content hash
95d16d4c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00328
Status: valid/unmigrated Version: rel:R25-11#457a8c69 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_PER_00328@rel:R25-11#457a8c69
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#210f83712026-09-30
  • R19-11rel:R19-11#b53f0afb2026-10-14
  • R20-11rel:R20-11#4fbd234e2026-10-14
  • R21-11rel:R21-11#4fbd234e2026-10-14
  • R22-11rel:R22-11#3d9e304b2026-10-14
  • R23-11rel:R23-11#9edf14a62026-10-14
  • R24-11rel:R24-11#4f3e23582026-10-14
  • R25-11rel:R25-11#457a8c692026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة FileStorage [SWS_PER_00460] Upstream: RS_PER_00004, RS_AP_00120, RS_AP_00129, RS_AP_00146

FileStorage ()=delete;

The default constructor for FileStorage shall not be used.

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00460
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00460@rel:R25-11#ec19831d
Content hash
ec19831d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00460
Status: valid/unmigrated Version: rel:R25-11#11aa6301 Versionshistorie & Revisions (1 transition, 6 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_PER_00460@rel:R25-11#11aa6301
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#9eb415912026-09-30
  • R21-11rel:R21-11#f93f78842026-10-14
  • R22-11rel:R22-11#1e2c76302026-10-14
  • R23-11rel:R23-11#dd525b8f2026-10-14
  • R24-11rel:R24-11#11aa63012026-10-14
  • R25-11rel:R25-11#11aa63012026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة GetAllFileNames [SWS_PER_00110] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00127, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< ara::core::Vector< ara::core::String > > GetAllFile Names () const noexcept;

Returns a list of all currently available file names of this File Storage. The list of file names is only accurate if no file is added or deleted at the same time.

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe PerErrc::kPhysical rollback_semantics

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::Vector<ara::core::String > >A Result containing a list of available file names. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00110
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00110@rel:R25-11#d1b05025
Content hash
d1b05025
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00110
Status: valid/unmigrated Version: rel:R25-11#2a355aef 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_PER_00110@rel:R25-11#2a355aef
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2ea4c0b72026-09-30
  • R19-11rel:R19-11#2c8803ba2026-10-14
  • R20-11rel:R20-11#6c4ecd642026-10-14
  • R21-11rel:R21-11#7a8244992026-10-14
  • R22-11rel:R22-11#1e3bc0af2026-10-14
  • R23-11rel:R23-11#0cb5785b2026-10-14
  • R24-11rel:R24-11#2a355aef2026-10-14
  • R25-11rel:R25-11#2a355aef2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة GetCurrentFileSize [SWS_PER_00407] Upstream: RS_PER_00017, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< std::uint64_t > GetCurrentFileSize (ara::core::StringView fileName) const noexcept;

Returns the space in bytes currently occupied by the content of a file of this File Storage. The returned size might be inaccurate if any of the instances of a file is invalid or if another operation on the file takes place at the same time.

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.

Rückgabewert

TypBeschreibung
ara::core::Result<std::uint64_t >A Result containing the occupied space in bytes. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
PerErrc::kPhysicalStorageFailurerollback_semantics Returned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kFileNotFoundrollback_semantics Returned if the provided file does not exist in the File Storage.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00407
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00407@rel:R25-11#d6e940c1
Content hash
d6e940c1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00407
Status: valid/unmigrated Version: rel:R25-11#179f149b 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_PER_00407@rel:R25-11#179f149b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#071859e92026-09-30
  • R19-11rel:R19-11#033eba912026-10-14
  • R20-11rel:R20-11#3966ef4c2026-10-14
  • R21-11rel:R21-11#d10d2b0b2026-10-14
  • R22-11rel:R22-11#8dd5feab2026-10-14
  • R23-11rel:R23-11#9f29c68f2026-10-14
  • R24-11rel:R24-11#179f149b2026-10-14
  • R25-11rel:R25-11#179f149b2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة GetFileInfo [SWS_PER_00438] Upstream: RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< FileInfo > GetFileInfo (ara::core::StringView file Name) const noexcept;

Returns additional information on a file of this File Storage. The returned FileInfo struct contains information about the times when the file was created, last modified, and last accessed, and about how and by whom the file was created and last modified. The modificationTime, accessTime, and fileModificationState returned in the FileInfo are only accurate if the file is currently not open.

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.

Rückgabewert

TypBeschreibung
ara::core::Result< FileInfo >A Result containing a FileInfo struct. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
PerErrc::kPhysicalStorageFailurerollback_semantics Returned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kFileNotFoundrollback_semantics Returned if the provided file does not exist in the File Storage.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00438
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00438@rel:R25-11#59d0793f
Content hash
59d0793f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00438
Status: valid/unmigrated Version: rel:R25-11#ac6ae9db Versionshistorie & Revisions (1 transition, 7 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_PER_00438@rel:R25-11#ac6ae9db
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#54615ca12026-09-30
  • R20-11rel:R20-11#3e42a8462026-10-14
  • R21-11rel:R21-11#2ca508bf2026-10-14
  • R22-11rel:R22-11#374465322026-10-14
  • R23-11rel:R23-11#57dca30b2026-10-14
  • R24-11rel:R24-11#87296ea62026-10-14
  • R25-11rel:R25-11#ac6ae9db2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة OpenFileReadOnly [SWS_PER_00114] Upstream: RS_PER_00001, RS_PER_00004, RS_PER_00010, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00144, RS_AP_00159

ara::core::Result< UniqueHandle< ReadAccessor > > OpenFileReadOnly (ara::core::StringView fileName, OpenMode mode) noexcept;

Opens a file of this File Storage for reading with a defined mode. If not otherwise specified by the provided mode, the file is opened with the seek position set to the beginning (corresponding to kAtTheBeginning). The file will be closed when the returned UniqueHandle goes out of scope.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: b7f6df93c4d9 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تفتح الدالة OpenFileReadOnly للفئة ara::per::FileStorage (المعلن عنها في #include "ara/per/file_storage.h") ملفًا محفوظًا للقراءة فقط مع وضع وصول محدد [SWS_PER_00114]. ما لم يُحدد خلاف ذلك عبر المعلمة mode، يتم تعيين موضع مؤشر القراءة افتراضيًا إلى بداية الملف (kAtTheBeginning) [SWS_PER_00114]. ويتم التنفيذ بشكل متزامن ويُرجع ara::core::Result<UniqueHandle<ReadAccessor>>. يستخدم المقبض دلالات RAII: بمجرد خروج نسخة UniqueHandle من نطاق صلاحيتها، يتم إغلاق الملف تلقائيًا [SWS_PER_00114].

فيما يتعلق بالتزامن، تم تحديد الدالة بأنها thread-safe وexception safe (مع noexcept) [SWS_PER_00114]. ومع ذلك، توجد قيود استدعاء وظيفية: إذا كان الملف الهدف مفتوحًا بالفعل أو إذا تم تنفيذ عمليات متزامنة مثل DeleteFile أو RecoverFile أو ResetFile باستخدام نفس اسم الملف، فإن الاستدعاء يفشل مع PerErrc::kResourceBusy [SWS_PER_00114].

في حالة الخطأ، يُرجع ara::core::Result أخطاءً خاصة بالشركة المصنعة أو رموز أخطاء قياسية من PerErrc أو StorageFailure [SWS_PER_00114]:

  • PerErrc::kFileNotFound: الملف المحدد غير موجود في وحدة تخزين الملفات [SWS_PER_00114].
  • PerErrc::kInvalidOpenMode: يحتوي الوضع المُمرر على تركيبة غير صالحة من الرايات [SWS_PER_00114].
  • StorageFailure: فشل الوصول إلى الذاكرة الفعلية [SWS_PER_00114].
  • PerErrc::kIntegrityCorrupted، أو PerErrc::kValidationFailed، أو PerErrc::kAuthenticationFailed، أو PerErrc::kEncryptionFailed: تلف السلامة الهيكلية، أو عدم كفاية التحقق، أو وجود خلل في فحص MAC، أو فشل فك التشفير [SWS_PER_00114].

في إطار التفاعل مع الواجهات الأخرى، يتيح FileStorage تحميلين زائدين مترابطين: متغير بدون معلمة وضع يفتح دائمًا عند بداية الملف [SWS_PER_00376]، بالإضافة إلى تحميل زائد مع ذاكرة تخزين مؤقت (ara::core::Span<ara::core::Byte> buffer)، ينفذ عبرها ReadAccessor القراءة بنظام الكتل لتسريع عمليات الوصول الصغيرة المتعددة [SWS_PER_00430].

تم توليد إشعار الاستخدام هذا تلقائيًا استنادًا إلى مواصفة AUTOSAR Adaptive R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe PerErrc::kPhysical rollback_semantics

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.
modeMode with which the file shall be opened.

Rückgabewert

TypBeschreibung
ara::core::Result<UniqueHandle< ReadAccessor > >A Result containing a UniqueHandle for the file. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kResourceBusyrollback_semantics Returned if the file is already open, or if DeleteFile, RecoverFile, or ResetFile with the same file name is currently being executed.
PerErrc::kFileNotFoundrollback_semantics Returned if the provided file does not exist in the File Storage.
PerErrc::kInvalidOpenModerollback_semantics Returned if the passed mode contains an invalid combination of modes.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00114
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00114@rel:R25-11#01f9e5c7
Content hash
01f9e5c7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00114
Status: valid/unmigrated Version: rel:R25-11#d387e566 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_PER_00114@rel:R25-11#d387e566
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#56472e6d2026-09-30
  • R19-11rel:R19-11#68c3cec42026-10-14
  • R20-11rel:R20-11#70976e3f2026-10-14
  • R21-11rel:R21-11#2c5ff8412026-10-14
  • R22-11rel:R22-11#2b3b319d2026-10-14
  • R23-11rel:R23-11#e52382f02026-10-14
  • R24-11rel:R24-11#f80914872026-10-14
  • R25-11rel:R25-11#d387e5662026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة OpenFileReadOnly [SWS_PER_00376] Upstream: RS_PER_00001, RS_PER_00004, RS_PER_00010, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00144, RS_AP_00159

ara::core::Result< UniqueHandle< ReadAccessor > > OpenFileReadOnly (ara::core::StringView fileName) noexcept;

Opens a file of this File Storage for reading. The file is opened with the seek position set to the beginning (corresponding to kAtThe Beginning). The file will be closed when the returned UniqueHandle goes out of scope.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 4286b0e81322 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تفتح الطريقة OpenFileReadOnly للفئة ara::per::FileStorage ملفًا تم استمراره للقراءة فقط مع حماية ضد الكتابة [SWS_PER_00376]. ويتم الاستدعاء عبر ملف الترويسة ara/per/file_storage.h مع تمرير اسم الملف fileName. ويتم ضبط موضع القراءة مبدئيًا على بداية الملف. وتُستخدم كقيمة إرجاع ara::core::Result، والتي توفر UniqueHandle<ReadAccessor> عند النجاح. ويُغلق الملف المفتوح تلقائيًا بمجرد أن يغادر هذا المقبض نطاق صلاحيته.

معالجة الأخطاء

إذا فشل التنفيذ، تحتوي النتيجة على رمز خطأ أو خطأ خاص بالشركة المصنعة [SWS_PER_00376]:

  • PerErrc::kFileNotFound: الملف المحدد غير موجود في وحدة التخزين.
  • PerErrc::kResourceBusy: الملف مفتوح بالفعل أو تجري معالجته في الوقت نفسه بواسطة DeleteFile أو RecoverFile أو ResetFile.
  • PerErrc::kPhysicalStorageFailure: فشل الوصول إلى وسيط التخزين الفعلي.
  • PerErrc::kIntegrityCorrupted، PerErrc::kValidationFailed، PerErrc::kEncryptionFailed، PerErrc::kAuthenticationFailed: خطأ في سلامة البنية، أو التحقق من صحة البيانات، أو فك التشفير، أو فحص MAC.

التزامن والتفاعل

تم تحديد الطريقة كـ thread-safe وexception safe وكذلك noexcept [SWS_PER_00376]. وتتوفر تحميلات زائدة للمتطلبات المتقدمة: متغير لتحديد OpenMode صراحةً [SWS_PER_00114] بالإضافة إلى توقيع مزود بمخزن مؤقت إضافي للمستخدم لتسريع عمليات القراءة الصغيرة على أساس الكتل [SWS_PER_00430].

تم إنشاء ملاحظة الاستخدام هذه تلقائيًا بناءً على مواصفة AUTOSAR.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe PerErrc::kPhysical rollback_semantics

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.

Rückgabewert

TypBeschreibung
ara::core::Result<UniqueHandle< ReadAccessor > >A Result containing a UniqueHandle for the file. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kResourceBusyrollback_semantics Returned if the file is already open, or if DeleteFile, RecoverFile, or ResetFile with the same file name is currently being executed.
PerErrc::kFileNotFoundrollback_semantics Returned if the provided file does not exist in the File Storage.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00376
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00376@rel:R25-11#e112c049
Content hash
e112c049
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00376
Status: valid/unmigrated Version: rel:R25-11#c1cc1c73 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_PER_00376@rel:R25-11#c1cc1c73
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f25323df2026-09-30
  • R19-11rel:R19-11#630d35ad2026-10-14
  • R20-11rel:R20-11#c212e2fc2026-10-14
  • R21-11rel:R21-11#d617d2d22026-10-14
  • R22-11rel:R22-11#88f516892026-10-14
  • R23-11rel:R23-11#eab160e12026-10-14
  • R24-11rel:R24-11#6b07bd902026-10-14
  • R25-11rel:R25-11#c1cc1c732026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة OpenFileReadOnly [SWS_PER_00430] Upstream: RS_PER_00001, RS_PER_00004, RS_PER_00010, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00144, RS_AP_00159

ara::core::Result< UniqueHandle< ReadAccessor > > OpenFileReadOnly (ara::core::StringView fileName, OpenMode mode, ara::core::Span< ara::core::Byte > buffer) noexcept;

Opens a file of this File Storage for reading with a user provided buffer. If not otherwise specified by the provided mode, the file is opened with the seek position set to the beginning (corresponding to kAtTheBeginning). The provided buffer will be used by the ReadAccessor to implement block-wise reading to speed up multiple small accesses to the file. The file will be closed when the returned UniqueHandle goes out of scope.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: f3a0884b9d84 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تفتح الطريقة المتزامنة OpenFileReadOnly للفئة ara::per::FileStorage ملفًا محفوظًا لوصول القراءة باستخدام مخزن مؤقت يوفره المتصل [SWS_PER_00430]. وتتم تهيئة الوصول إلى الملف استنادًا إلى المعاملات fileName وmode وكذلك buffer (كـ ara::core::Span<ara::core::Byte>) [SWS_PER_00430]. وما لم يُحدد خلاف ذلك عبر mode، فإن موضع القراءة يكون افتراضيًا في بداية الملف (kAtTheBeginning) [SWS_PER_00430]. ويستخدم ReadAccessor الناتج نطاق الذاكرة الممرر لتسريع عمليات القراءة الصغيرة المتكررة عبر القراءة على أساس الكتل [SWS_PER_00430]. والمورد محمي عبر RAII: فبمجرد خروج UniqueHandle المرجع من نطاق الصلاحية، يُغلق الملف تلقائيًا [SWS_PER_00430].

فيما يتعلق بالتزامن، تم تحديد الدالة على أنها آمنة من حيث مؤشرات الترابط (thread-safe)، وآمنة من الاستثناءات (exception safe)، وnoexcept [SWS_PER_00430]. وفي حالة حدوث خطأ، يرجع ara::core::Result أخطاء خاصة بالشركة المصنعة أو رموز خطأ قياسية من PerErrc [SWS_PER_00430]:

  • PerErrc::kResourceBusy: الملف مفتوح بالفعل أو تجري معالجته في الوقت نفسه بواسطة DeleteFile أو RecoverFile أو ResetFile [SWS_PER_00430].
  • PerErrc::kFileNotFound: الملف المحدد غير موجود في وحدة تخزين الملفات [SWS_PER_00430].
  • PerErrc::kInvalidOpenMode: يحتوي الوضع الممرر على تركيبة غير صالحة من الخيارات [SWS_PER_00430].
  • أخطاء السلامة والأمان: PerErrc::kIntegrityCorrupted، أو PerErrc::kValidationFailed، أو PerErrc::kEncryptionFailed، أو PerErrc::kAuthenticationFailed (فشل فحص MAC) وكذلك StorageFailure في حالة أخطاء الوصول إلى التخزين الفعلي [SWS_PER_00430].

إلى جانب هذا المتغير ذي التخزين المؤقت، تتوفر لحالات الاستخدام التي لا تتطلب مخزنًا مؤقتًا مخصصًا من المستخدم التحميلات الزائدة [SWS_PER_00114] (مع mode) و[SWS_PER_00376] (مع fileName فقط).

تم إنشاء إشعار الاستخدام هذا آليًا بناءً على مواصفة AUTOSAR R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe PerErrc::kPhysical rollback_semantics

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.
modeMode with which the file shall be opened.
bufferMemory to be used for block-wise reading.

Rückgabewert

TypBeschreibung
ara::core::Result<UniqueHandle< ReadAccessor > >A Result containing a UniqueHandle for the file. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kResourceBusyrollback_semantics Returned if the file is already open, or if DeleteFile, RecoverFile, or ResetFile with the same file name is currently being executed.
PerErrc::kFileNotFoundrollback_semantics Returned if the provided file does not exist in the File Storage.
PerErrc::kInvalidOpenModerollback_semantics Returned if the passed mode contains an invalid combination of modes.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00430
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00430@rel:R25-11#505ac873
Content hash
505ac873
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00430
Status: valid/unmigrated Version: rel:R25-11#6f001bfd Versionshistorie & Revisions (1 transition, 7 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_PER_00430@rel:R25-11#6f001bfd
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#d5ddc0d92026-09-30
  • R20-11rel:R20-11#a9e488522026-10-14
  • R21-11rel:R21-11#f7bf78f42026-10-14
  • R22-11rel:R22-11#668067d82026-10-14
  • R23-11rel:R23-11#bc8680862026-10-14
  • R24-11rel:R24-11#062cbdd82026-10-14
  • R25-11rel:R25-11#6f001bfd2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة OpenFileReadWrite [SWS_PER_00113] Upstream: RS_PER_00001, RS_PER_00004, RS_PER_00010, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00144, RS_AP_00159

ara::core::Result< UniqueHandle< ReadWriteAccessor > > OpenFileRead Write (ara::core::StringView fileName, OpenMode mode) noexcept;

Opens a file of this File Storage for reading and writing with a defined mode. If not otherwise specified by the provided mode, the file is opened with the seek position set to the beginning (corresponding to kAtTheBeginning). If the file does not exist, it is created. The file will be closed when the returned UniqueHandle goes out of scope.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: cf05039b8020 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تفتح الطريقة المتزامنة OpenFileReadWrite للفئة ara::per::FileStorage ملفًا لعمليات القراءة والكتابة في الوضع المحدد mode [SWS_PER_00113]. ما لم يُحدد خلاف ذلك في الوضع، يُعيَّن مؤشر الملف افتراضيًا إلى البداية (kAtTheBeginning). وإذا لم يكن الملف موجودًا بعد، يتم إنشاؤه تلقائيًا [SWS_PER_00113]. تُرجع الدالة ara::core::Result مع UniqueHandle<ReadWriteAccessor>، والذي يغلق الملف تلقائيًا بمجرد مغادرة المقبض (Handle) لنطاق صلاحيته [SWS_PER_00113].

التزامن والقيود

الاستدعاء آمن خيطيًا (thread-safe) ولا يطلق استثناءات (noexcept) [SWS_PER_00113]. يجب ألا يكون الملف مفتوحًا بالفعل عند الاستدعاء. علاوة على ذلك، لا يجوز حدوث أي تنفيذ متزامن لـ DeleteFile أو RecoverFile أو ResetFile بنفس اسم الملف، وإلا فسيفشل الاستدعاء مع PerErrc::kResourceBusy [SWS_PER_00113].

معالجة الأخطاء

في حالة حدوث خطأ، يحتوي ara::core::Result على أكواد أخطاء محددة [SWS_PER_00113]:

  • PerErrc::kInvalidOpenMode: تركيبة غير صالحة من الرايات في mode الممرر.
  • PerErrc::kResourceBusy: الملف الهدف مفتوح بالفعل أو مشغول بعمليات ملف إدارية.
  • Access: وحدة التخزين مهيأة للقراءة فقط أو للكتابة لمرة واحدة فقط مع وجود المفتاح بالفعل.
  • PerErrc::kOutOfStorageSpace أو PerErrc::kTooManyFiles: عدم كفاية مساحة التخزين المادية أو تجاوز maxNumberOfFiles عند الإنشاء الجديد.
  • PerErrc::kPhysicalStorageFailure وPerErrc::kIntegrityCorrupted وPerErrc::kValidationFailed وPerErrc::kEncryptionFailed وPerErrc::kAuthenticationFailed: أخطاء الوصول إلى العتاد، أو هياكل بيانات تالفة، أو فشل عمليات التحقق التشفيرية.

تفاعل

كنسخة مبسطة، يتوفر تحميل زائد (overload) بدون معلمة الوضع، والذي يفتح الملفات افتراضيًا عند البداية [SWS_PER_00375]. لتحسين الأداء عند إجراء العديد من عمليات الوصول الصغيرة، يوجد أيضًا تحميل زائد مع مخزن مؤقت مخصص للمستخدم (buffer) للقراءة والكتابة على مستوى الكتل [SWS_PER_00429].

تم إنشاء ملاحظة الاستخدام هذه بواسطة ذكاء اصطناعي استنادًا إلى مواصفة AUTOSAR Adaptive الإصدار R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe PerErrc::kIllegalWrite rollback_semantics

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.
modeMode with which the file shall be opened.

Rückgabewert

TypBeschreibung
ara::core::Result<UniqueHandle< ReadWriteAccessor > >A Result containing a UniqueHandle for the file. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
AccessReturned if the File Storage is configured as read-only, or if it is configured as write-only-once and the key already exists.
PerErrc::kPhysicalStorageFailureno_rollback_semantics Returned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kResourceBusyrollback_semantics Returned if the file is already open, or if DeleteFile, RecoverFile, or ResetFile with the same file name is currently being executed.
PerErrc::kOutOfStorageSpaceno_rollback_semantics Returned if the available physical storage space is insufficient for a new file.
PerErrc::kInvalidOpenModerollback_semantics Returned if the passed mode contains an invalid combination of modes.
PerErrc::kTooManyFilesrollback_semantics Returned if the number of files would get larger than the configured maxNumberOfFiles when the file is created.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00113
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00113@rel:R25-11#e1e89d2d
Content hash
e1e89d2d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00113
Status: valid/unmigrated Version: rel:R25-11#64fa2a80 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_PER_00113@rel:R25-11#64fa2a80
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b7812ac62026-09-30
  • R19-11rel:R19-11#29f193992026-10-14
  • R20-11rel:R20-11#705aebbc2026-10-14
  • R21-11rel:R21-11#3e1bef852026-10-14
  • R22-11rel:R22-11#8b90a8c62026-10-14
  • R23-11rel:R23-11#9d0c90192026-10-14
  • R24-11rel:R24-11#c88f05782026-10-14
  • R25-11rel:R25-11#64fa2a802026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة OpenFileReadWrite [SWS_PER_00375] Upstream: RS_PER_00001, RS_PER_00004, RS_PER_00010, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00144, RS_AP_00159

ara::core::Result< UniqueHandle< ReadWriteAccessor > > OpenFileRead Write (ara::core::StringView fileName) noexcept;

Opens a file of this File Storage for reading and writing. The file is opened with the seek position set to the beginning (corresponding to kAtThe Beginning). If the file does not exist, it is created. The file will be closed when the returned UniqueHandle goes out of scope.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: e0c7dc90877b المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تُستخدم دالة العضو المتزامنة OpenFileReadWrite للفئة ara::per::FileStorage لفتح ملف لعمليات الوصول المشتركة للقراءة والكتابة [SWS_PER_00375]. ويُمرر اسم الملف fileName كـ ara::core::StringView كمعامل، والذي يمكن أن يطابق نمذجة PersistencyFile.fileName لملف تم تكوينه [SWS_PER_00375]. وإذا لم يكن الملف المحدد موجودًا بعد، فسيتم إنشاؤه تلقائيًا من جديد [SWS_PER_00375]. وعند الفتح، يتم تعيين موضع الملف مباشرةً في البداية (وفقًا لـ kAtTheBeginning) [SWS_PER_00375]. ويحصل المتصل على ara::core::Result<UniqueHandle<ReadWriteAccessor>>؛ ويُغلق الملف تلقائيًا بمجرد خروج UniqueHandle المُرجع من نطاق صلاحيته [SWS_PER_00375].

فيما يتعلق بالتزامن وسياق التنفيذ، تم تحديد الدالة على أنها thread-safe وexception safe [SWS_PER_00375]. ومع ذلك، تجدر الإشارة إلى أن الوصول المتزامن منظم ومقيد: فإذا كان الملف مفتوحًا بالفعل أو كانت هناك عملية مثل DeleteFile أو RecoverFile أو ResetFile تُنفذ في الوقت نفسه على نفس اسم الملف، فإن الاستدعاء يفشل ويُرجع رمز الخطأ PerErrc::kResourceBusy [SWS_PER_00375].

في حالة حدوث خطأ، يغلف كائن Result المُرجع أخطاء معينة خاصة بالاستمرارية أو أخطاء خاصة بالشركة المصنعة [SWS_PER_00375]:

  • أخطاء التكوين والوصول مثل Access في حالة الذاكرة المحمية ضد الكتابة أو البيانات الموجودة بالفعل عند تكوين الكتابة لمرة واحدة (Write-Once) [SWS_PER_00375].
  • حدود مساحة التخزين الناتجة عن PerErrc::kOutOfStorageSpace أو PerErrc::kTooManyFiles عند تجاوز الحد الأقصى للملف المكوّن [SWS_PER_00375].
  • أخطاء السلامة والأمان مثل PerErrc::kPhysicalStorageFailure، أو PerErrc::kIntegrityCorrupted، أو PerErrc::kValidationFailed، أو PerErrc::kEncryptionFailed، أو PerErrc::kAuthenticationFailed [SWS_PER_00375].

بالتكامل مع واجهات أخرى من FileStorage، يقدم AUTOSAR تحميلاً زائداً بديلاً: يمكن استدعاء OpenFileReadWrite مع OpenMode صريح [SWS_PER_00113] أو مع مساحة تخزين إضافية من جانب المستخدم buffer (ara::core::Span<ara::core::Byte>)، والتي تتيح التخزين المؤقت على مستوى الكتل لتسريع عمليات الوصول المتكررة الصغيرة [SWS_PER_00429].

تم إنشاء هذا النص بواسطة ذكاء اصطناعي وتمت مراجعته استنادًا إلى مواصفات AUTOSAR.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe PerErrc::kIllegalWrite rollback_semantics

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.

Rückgabewert

TypBeschreibung
ara::core::Result<UniqueHandle< ReadWriteAccessor > >A Result containing a UniqueHandle for the file. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
AccessReturned if the File Storage is configured as read-only, or if it is configured as write-only-once and the key already exists.
PerErrc::kPhysicalStorageFailureno_rollback_semantics Returned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kResourceBusyrollback_semantics Returned if the file is already open, or if DeleteFile, RecoverFile, or ResetFile with the same file name is currently being executed.
PerErrc::kOutOfStorageSpaceno_rollback_semantics Returned if the available physical storage space is insufficient for a new file.
PerErrc::kTooManyFilesrollback_semantics Returned if the number of files would get larger than the configured maxNumberOfFiles when the file is created.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00375
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00375@rel:R25-11#a2020182
Content hash
a2020182
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00375
Status: valid/unmigrated Version: rel:R25-11#f465ec05 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_PER_00375@rel:R25-11#f465ec05
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ff96f9722026-09-30
  • R19-11rel:R19-11#cc81c63c2026-10-14
  • R20-11rel:R20-11#1cfd91622026-10-14
  • R21-11rel:R21-11#32976f732026-10-14
  • R22-11rel:R22-11#8a4213d62026-10-14
  • R23-11rel:R23-11#c423d7112026-10-14
  • R24-11rel:R24-11#0b6d7d9b2026-10-14
  • R25-11rel:R25-11#f465ec052026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة OpenFileReadWrite [SWS_PER_00429] Upstream: RS_PER_00001, RS_PER_00004, RS_PER_00010, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00144, RS_AP_00159

ara::core::Result< UniqueHandle< ReadWriteAccessor > > OpenFileRead Write (ara::core::StringView fileName, OpenMode mode, ara::core::Span< ara::core::Byte > buffer) noexcept;

Opens a file of this File Storage for reading and writing with a user provided buffer. If not otherwise specified by the provided mode, the file is opened with the seek position set to the beginning (corresponding to kAtTheBeginning). The provided buffer will be used by the ReadWriteAccessor to implement block-wise reading and writing to speed up multiple small accesses to the file. If the file does not exist, it is created. The file will be closed when the returned UniqueHandle goes out of scope.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 06577277e905 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تفتح الطريقة OpenFileReadWrite للفئة ara::per::FileStorage ملفًا بشكل متزامن للقراءة والكتابة المدمجة مع توفير مخزن مؤقت يحدده المستخدم [SWS_PER_00429]. ويُستخدم نطاق الذاكرة الممرر buffer (كـ ara::core::Span<ara::core::Byte>) داخليًا بواسطة ReadWriteAccessor لعمليات القراءة والكتابة على أساس الكتل، وذلك لمعالجة سلاسل عمليات الوصول الصغيرة بأداء عالٍ. وإذا لم يكن الملف المحدد موجودًا بعد، فإنه يُنشأ تلقائيًا من جديد؛ ويكون موضع الملف افتراضيًا في البداية (kAtTheBeginning)، ما لم يُحدد خلاف ذلك في mode الممرر [SWS_PER_00429]. ويُغلق الملف بمجرد خروج UniqueHandle المرجع في ara::core::Result من نطاق الصلاحية. تفسير: يُفترض أن تظل الذاكرة الأساسية لنطاق المخزن المؤقت الممرر صالحة طوال دورة حياة UniqueHandle بأكملها، نظرًا لأن الموصّل يشير إليها لإجراء عمليات الوصول على أساس الكتل. سؤال Q-e0009b7de17e3597 (مفتوح)

معالجة الأخطاء والتزامن

تم تحديد الدالة كـ noexcept، وهي آمنة من الاستثناءات (exception safe) وآمنة من حيث مؤشرات الترابط [SWS_PER_00429]. وفي حالات الفشل، يرجع Result أخطاء خاصة بالشركة المصنعة أو رموز خطأ محددة:

  • PerErrc::kResourceBusy: الملف مفتوح بالفعل أو تجري معالجته في الوقت نفسه بالاسم نفسه بواسطة DeleteFile أو RecoverFile أو ResetFile [SWS_PER_00429].
  • Access: نطاق التخزين مهيأ كـ read-only أو محدد كـ write-only-once وهو مشغول بالفعل [SWS_PER_00429].
  • PerErrc::kInvalidOpenMode: يحتوي mode الممرر على تركيبة غير صالحة من السمات [SWS_PER_00429].
  • PerErrc::kOutOfStorageSpace أو PerErrc::kTooManyFiles: مساحة التخزين الفعلية غير كافية لإنشاء جديد أو سيتم تجاوز الحد المكون maxNumberOfFiles [SWS_PER_00429].
  • PerErrc::kPhysicalStorageFailure وPerErrc::kIntegrityCorrupted وPerErrc::kValidationFailed وPerErrc::kEncryptionFailed وPerErrc::kAuthenticationFailed: أخطاء عند الوصول، أو فحص السلامة، أو MAC، أو التحقق من الصحة، بالإضافة إلى فك التشفير [SWS_PER_00429].

تفاعل

تمثل الطريقة متغيرًا محسن الأداء لعملية الفتح للقراءة/الكتابة: فبينما يعالج [SWS_PER_00113] اسم الملف والوضع فقط، ويعالج [SWS_PER_00375] اسم الملف حصرًا، يتيح [SWS_PER_00429] التسريع المستهدف لعمليات الإدخال/الإخراج الصغيرة عبر مخزن مؤقت صريح في الذاكرة.

تم إنشاء هذا النص بواسطة ذكاء اصطناعي ويستند إلى متطلبات مواصفة AUTOSAR.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe PerErrc::kIllegalWrite rollback_semantics

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.
modeMode with which the file shall be opened.
bufferMemory to be used for block-wise reading/writing.

Rückgabewert

TypBeschreibung
ara::core::Result<UniqueHandle< ReadWriteAccessor > >A Result containing a UniqueHandle for the file. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
AccessReturned if the File Storage is configured as read-only, or if it is configured as write-only-once and the key already exists.
PerErrc::kPhysicalStorageFailureno_rollback_semantics Returned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kResourceBusyrollback_semantics Returned if the file is already open, or if DeleteFile, RecoverFile, or ResetFile with the same file name is currently being executed.
PerErrc::kOutOfStorageSpaceno_rollback_semantics Returned if the available physical storage space is insufficient for a new file.
PerErrc::kInvalidOpenModerollback_semantics Returned if the passed mode contains an invalid combination of modes.
PerErrc::kTooManyFilesrollback_semantics Returned if the number of files would get larger than the configured maxNumberOfFiles when the file is created.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00429
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00429@rel:R25-11#60686fec
Content hash
60686fec
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00429
Status: valid/unmigrated Version: rel:R25-11#e9dd40b8 Versionshistorie & Revisions (1 transition, 7 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_PER_00429@rel:R25-11#e9dd40b8
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#380d9a532026-09-30
  • R20-11rel:R20-11#38b6d4692026-10-14
  • R21-11rel:R21-11#a276c7642026-10-14
  • R22-11rel:R22-11#359642092026-10-14
  • R23-11rel:R23-11#09bac95b2026-10-14
  • R24-11rel:R24-11#7891475a2026-10-14
  • R25-11rel:R25-11#e9dd40b82026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة OpenFileWriteOnly [SWS_PER_00115] Upstream: RS_PER_00001, RS_PER_00004, RS_PER_00010, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00144, RS_AP_00159

ara::core::Result< UniqueHandle< WriteAccessor > > OpenFileWriteOnly (ara::core::StringView fileName, OpenMode mode) noexcept;

Opens a file of this File Storage for writing with a defined mode. If not otherwise specified by the provided mode, the file is truncated (corresponding to k Truncate). If the file does not exist, it is created. The file will be closed when the returned UniqueHandle goes out of scope.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: cf72b60c71fb المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تفتح الطريقة OpenFileWriteOnly للفئة ara::per::FileStorage ملفاً بشكل متزامن للكتابة الحصرية بوضع وصول محدد [SWS_PER_00115]. ما لم يُنص على خلاف ذلك عبر المعامل mode، يتم اقتطاع الملف (وفقاً لـ kTruncate). إذا لم يكن الملف موجوداً بعد، فسيتم إنشاؤه من جديد. يتم استخدام ara::core::Result<UniqueHandle<WriteAccessor>> كقيمة إرجاع؛ وعند مغادرة نطاق صلاحية UniqueHandle، يُغلق الملف تلقائياً مرة أخرى [SWS_PER_00115].

معالجة الأخطاء

في حالة حدوث خطأ، يحتوي Result المُرجع على رموز خطأ محددة [SWS_PER_00115]: يشير Access إلى أن التخزين للقراءة فقط أو تم تكوينه كـ Write-Once والمفتاح موجود بالفعل. يبلغ PerErrc::kInvalidOpenMode عن تركيبات أوضاع غير صالحة و PerErrc::kOutOfStorageSpace عن مساحة تخزين فعلية غير كافية. علاوة على ذلك، قد يحدث PerErrc::kTooManyFiles و PerErrc::kPhysicalStorageFailure بالإضافة إلى أخطاء السلامة والأمان مثل PerErrc::kIntegrityCorrupted أو PerErrc::kValidationFailed أو PerErrc::kEncryptionFailed أو PerErrc::kAuthenticationFailed [SWS_PER_00115].

التزامن والقيود

تم تصميم الدالة لتكون آمنة لمؤشرات الترابط وآمنة من الاستثناءات (noexcept) [SWS_PER_00115]. تفشل عمليات الوصول المتوازية إلى نفس الملف مع رمز الخطأ PerErrc::kResourceBusy، إذا كان الملف مفتوحاً بالفعل أو إذا تم تنفيذ عمليات مثل DeleteFile أو RecoverFile أو ResetFile في نفس الوقت بنفس اسم الملف [SWS_PER_00115].

تفاعل

بالإضافة إلى هذه الدالة، توفر الواجهة تحميلاً زائداً مبسطاً بدون معامل الوضع، والذي يعمل افتراضياً مع kTruncate [SWS_PER_00377]، بالإضافة إلى تحميل زائد مع مخزن مؤقت مخصص من قِبل المستخدم لتمكين الكتابة على دفعات من أجل تسريع العديد من عمليات الوصول الصغيرة [SWS_PER_00431].

تم إنشاء ملاحظة الاستخدام هذه بواسطة ذكاء اصطناعي بناءً على المواصفة.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe PerErrc::kIllegalWrite rollback_semantics

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.
modeMode with which the file shall be opened.

Rückgabewert

TypBeschreibung
ara::core::Result<UniqueHandle< WriteAccessor > >A Result containing a UniqueHandle for the file. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
AccessReturned if the File Storage is configured as read-only, or if it is configured as write-only-once and the key already exists.
PerErrc::kPhysicalStorageFailureno_rollback_semantics Returned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kResourceBusyrollback_semantics Returned if the file is already open, or if DeleteFile, RecoverFile, or ResetFile with the same file name is currently being executed.
PerErrc::kOutOfStorageSpaceno_rollback_semantics Returned if the available physical storage space is insufficient for a new file.
PerErrc::kInvalidOpenModerollback_semantics Returned if the passed mode contains an invalid combination of modes.
PerErrc::kTooManyFilesrollback_semantics Returned if the number of files would get larger than the configured maxNumberOfFiles when the file is created.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00115
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00115@rel:R25-11#16cad856
Content hash
16cad856
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00115
Status: valid/unmigrated Version: rel:R25-11#8d570d7b 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_PER_00115@rel:R25-11#8d570d7b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#947090352026-09-30
  • R19-11rel:R19-11#a8c3f2cb2026-10-14
  • R20-11rel:R20-11#a4a01e002026-10-14
  • R21-11rel:R21-11#9d4cb3182026-10-14
  • R22-11rel:R22-11#94711d402026-10-14
  • R23-11rel:R23-11#e0aa47d82026-10-14
  • R24-11rel:R24-11#6c8c32a92026-10-14
  • R25-11rel:R25-11#8d570d7b2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة OpenFileWriteOnly [SWS_PER_00377] Upstream: RS_PER_00001, RS_PER_00004, RS_PER_00010, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00144, RS_AP_00159

ara::core::Result< UniqueHandle< WriteAccessor > > OpenFileWriteOnly (ara::core::StringView fileName) noexcept;

Opens a file of this File Storage for writing. The file is truncated (corresponding to kTruncate). If the file does not exist, it is created. The file will be closed when the returned UniqueHandle goes out of scope.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: fa6d3b80cd05 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تفتح الطريقة المتزامنة OpenFileWriteOnly للفئة ara::per::FileStorage ملفًا مخصصًا للكتابة فقط وفقًا لـ [SWS_PER_00377]. وتستلم اسم الملف الهدف عبر المعامل fileName. وإذا لم يكن الملف موجودًا، فإنه يُنشأ من جديد؛ أما إذا كان الملف موجودًا بالفعل فيتم اقتطاعه (وفقًا لـ kTruncate) [SWS_PER_00377]. وتعمل القيمة ara::core::Result كقيمة إرجاع، حيث تغلف ara::per::UniqueHandle<WriteAccessor> عند النجاح. ويغلق مقبض التحكم هذا الملف تلقائيًا وفقًا لنمط RAII بمجرد خروجه من نطاق الصلاحية [SWS_PER_00377].

معالجة الأخطاء والتزامن

تم التصريح عن العملية كـ noexcept، وهي آمنة من الاستثناءات وآمنة من حيث مؤشرات الترابط [SWS_PER_00377]. وفي حالة حدوث خطأ، يحتوي Result على رمز خطأ محدد من PerErrc أو خطأ خاص بالشركة المصنعة [SWS_PER_00377]:

  • PerErrc::kResourceBusy: الملف مفتوح بالفعل أو تجري معالجته في الوقت نفسه بواسطة DeleteFile أو RecoverFile أو ResetFile.
  • PerErrc::kOutOfStorageSpace وPerErrc::kTooManyFiles: سعة التخزين الفعلية غير كافية أو تم تجاوز الحد الأقصى لعدد الملفات المكونة (maxNumberOfFiles).
  • PerErrc::kPhysicalStorageFailure، أو PerErrc::kIntegrityCorrupted، أو PerErrc::kValidationFailed، أو PerErrc::kEncryptionFailed، أو PerErrc::kAuthenticationFailed: خطأ عند الوصول إلى العتاد بالإضافة إلى فحوصات السلامة أو التحقق من الصحة أو فك التشفير.

تفاعل

بينما يحدد هذا المتغير الاقتطاع بشكل ثابت، يتيح التحميل الزائد مع المعامل OpenMode نمط فتح مختلفًا [SWS_PER_00115]. ولإجراء عمليات كتابة محسنة تعتمد على الكتل مع عمليات وصول صغيرة متعددة، يتوفر تحميل زائد إضافي مزود بمخزن مؤقت يحدده المستخدم (ara::core::Span<ara::core::Byte>) [SWS_PER_00431].

تم إنشاء هذا النص بواسطة ذكاء اصطناعي بناءً على مواصفة AUTOSAR Adaptive R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe PerErrc::kIllegalWrite rollback_semantics

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.

Rückgabewert

TypBeschreibung
ara::core::Result<UniqueHandle< WriteAccessor > >A Result containing a UniqueHandle for the file. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
AccessReturned if the File Storage is configured as read-only, or if it is configured as write-only-once and the key already exists.
PerErrc::kPhysicalStorageFailureno_rollback_semantics Returned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kResourceBusyrollback_semantics Returned if the file is already open, or if DeleteFile, RecoverFile, or ResetFile with the same file name is currently being executed.
PerErrc::kOutOfStorageSpaceno_rollback_semantics Returned if the available physical storage space is insufficient for a new file.
PerErrc::kTooManyFilesrollback_semantics Returned if the number of files would get larger than the configured maxNumberOfFiles when the file is created.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00377
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00377@rel:R25-11#d65c634a
Content hash
d65c634a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00377
Status: valid/unmigrated Version: rel:R25-11#b93b741b 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_PER_00377@rel:R25-11#b93b741b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#425765882026-09-30
  • R19-11rel:R19-11#19dcafc12026-10-14
  • R20-11rel:R20-11#65cfdd922026-10-14
  • R21-11rel:R21-11#070ae0fe2026-10-14
  • R22-11rel:R22-11#8d2829d82026-10-14
  • R23-11rel:R23-11#f1d4f46e2026-10-14
  • R24-11rel:R24-11#06a2d0b72026-10-14
  • R25-11rel:R25-11#b93b741b2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة OpenFileWriteOnly [SWS_PER_00431] Upstream: RS_PER_00001, RS_PER_00004, RS_PER_00010, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00144, RS_AP_00159

ara::core::Result< UniqueHandle< WriteAccessor > > OpenFileWriteOnly (ara::core::StringView fileName, OpenMode mode, ara::core::Span< ara::core::Byte > buffer) noexcept;

Opens a file of this File Storage for writing with a user provided buffer. If not otherwise specified by the provided mode, the file is truncated (corresponding to k Truncate). The provided buffer will be used by the ReadWriteAccessor to implement block-wise writing to speed up multiple small accesses to the file. If the file does not exist, it is created. The file will be closed when the returned UniqueHandle goes out of scope.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 37dc6b2848d7 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تفتح الطريقة المتزامنة OpenFileWriteOnly للفئة ara::per::FileStorage ملفًا للكتابة الحصرية وترجع ara::core::Result<UniqueHandle<WriteAccessor>> في حالة النجاح [SWS_PER_00431]. وعند الخروج من نطاق صلاحية UniqueHandle المرجع، يُغلق الملف المفتوح تلقائيًا [SWS_PER_00431]. ويستلم الاستدعاء، إلى جانب اسم الملف fileName ووضع الوصول mode، مخزنًا مؤقتًا من جانب المستخدم buffer (كـ ara::core::Span<ara::core::Byte>)، والذي يُستخدم للكتابة على أساس الكتل لتسريع عمليات الكتابة الصغيرة المتكررة [SWS_PER_00431]. وإذا لم يتم ضبط إعدادات مغايرة في الوضع، فسيتم اقتطاع الملف عند الفتح (وفقًا لـ kTruncate)؛ وإذا لم يكن موجودًا بعد، فسيتم إنشاؤه من جديد [SWS_PER_00431].

فيما يتعلق بالتزامن والأمان، تم تحديد الطريقة كـ thread-safe وexception safe والتصريح عنها كـ noexcept [SWS_PER_00431]. ومع ذلك، يفشل الوصول إذا كان الملف مفتوحًا بالفعل أو إذا نُفذت في الوقت نفسه عمليات إدارة مثل DeleteFile أو RecoverFile أو ResetFile على اسم الملف نفسه [SWS_PER_00431].

في حالة حدوث خطأ، يتم إرجاع رمز خطأ مطابق من PerErrc أو خطأ خاص بالشركة المصنعة في النتيجة [SWS_PER_00431]:

  • PerErrc::kResourceBusy: الملف مفتوح بالفعل أو مشغول بعملية ملف أخرى [SWS_PER_00431].
  • PerErrc::kIllegalWriteAccess: وحدة File Storage محمية ضد الكتابة أو مهيأة كـ write-only-once والملف موجود بالفعل [SWS_PER_00431].
  • PerErrc::kInvalidOpenMode: تركيبة الأوضاع الممررة غير صالحة [SWS_PER_00431].
  • PerErrc::kOutOfStorageSpace أو PerErrc::kTooManyFiles: مساحة التخزين غير كافية أو تم تجاوز الحد الأقصى لعدد الملفات المكونة [SWS_PER_00431].
  • PerErrc::kPhysicalStorageFailure، أو PerErrc::kIntegrityCorrupted، أو PerErrc::kValidationFailed، أو PerErrc::kEncryptionFailed، أو PerErrc::kAuthenticationFailed: خطأ في الوصول الفعلي، أو السلامة، أو التحقق من الصحة، أو فك التشفير، أو المصادقة [SWS_PER_00431].

في سياق التفاعل مع الواجهات الأخرى، توسع الدالة الطرق الأساسية [SWS_PER_00377] (fileName فقط) و[SWS_PER_00115] (مع mode) بشكل مستهدف لتشمل دعم المخزن المؤقت لعمليات الكتابة المحسنة [SWS_PER_00431].

تم إنشاء ملاحظة الاستخدام هذه تلقائيًا استنادًا إلى مواصفات AUTOSAR R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.
modeMode with which the file shall be opened.
bufferMemory to be used for block-wise writing.

Rückgabewert

TypBeschreibung
ara::core::Result<UniqueHandle< WriteAccessor > >A Result containing a UniqueHandle for the file. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
PerErrc::kIllegalWriteAccessrollback_semantics Returned if the File Storage is configured as read-only, or if it is configured as write-only-once and the key already exists.
PerErrc::kPhysicalStorageFailureno_rollback_semantics Returned if access to the physical storage fails.
PerErrc::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted.
PerErrc::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured.
PerErrc::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails.
PerErrc::kResourceBusyrollback_semantics Returned if the file is already open, or if DeleteFile, RecoverFile, or ResetFile with the same file name is currently being executed.
PerErrc::kOutOfStorageSpaceno_rollback_semantics Returned if the available physical storage space is insufficient for a new file.
PerErrc::kInvalidOpenModerollback_semantics Returned if the passed mode contains an invalid combination of modes.
PerErrc::kTooManyFilesrollback_semantics Returned if the number of files would get larger than the configured maxNumberOfFiles when the file is created.
PerErrc::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00431
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00431@rel:R25-11#2844ef68
Content hash
2844ef68
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00431
Status: valid/unmigrated Version: rel:R25-11#3f1ccf51 Versionshistorie & Revisions (1 transition, 7 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_PER_00431@rel:R25-11#3f1ccf51
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#4a5239432026-09-30
  • R20-11rel:R20-11#cee86b4c2026-10-14
  • R21-11rel:R21-11#97f9954b2026-10-14
  • R22-11rel:R22-11#950e84fd2026-10-14
  • R23-11rel:R23-11#26aeb4402026-10-14
  • R24-11rel:R24-11#e7c640db2026-10-14
  • R25-11rel:R25-11#3f1ccf512026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة RecoverFile [SWS_PER_00337] Upstream: RS_PER_00001, RS_PER_00004, RS_PER_00009, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< void > RecoverFile (ara::core::StringView fileName) noexcept;

Recovers a file of this File Storage. This method allows to recover a single file when the redundancy checks fail. It will fail with kResourceBusy when the file is currently open. This method does a best-effort recovery of the file. After recovery, the file might show outdated or initial content, or might be lost.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 1adb8f07ad8e المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تُنفذ الطريقة المتزامنة RecoverFile للفئة ara::per::FileStorage استعادة بأقصى جهد لملف فردي عند فشل عمليات التحقق من التكرار التشغيلي [SWS_PER_00337]. ويتم تمرير معرّف الملف المعني عبر المعامل fileName كـ ara::core::StringView. وبعد الاستعادة، قد يحتوي الملف على إصدارات قديمة أو على المحتوى الأولي، أو قد يُفقد في أسوأ الحالات [SWS_PER_00337].

التزامن والتفاعل

تم تحديد العملية على أنها آمنة بالنسبة للخيوط وآمنة من الاستثناءات [SWS_PER_00337]. ومع ذلك، لا يجوز تنفيذها على ملفات مفتوحة: فقبل الاستدعاء، يجب إغلاق جميع نُسخ UniqueHandle التي تم الحصول عليها مسبقًا عبر طرق فتح الملفات مثل [SWS_PER_00113]، أو [SWS_PER_00114]، أو [SWS_PER_00375] [SWS_PER_00337]. وإلا، فسيفشل الاستدعاء مع PerErrc::kResourceBusy. ويُبلّغ عن الخطأ ذاته إذا نُفّذ [SWS_PER_00111] (DeleteFile) أو [SWS_PER_00338] (ResetFile) في الوقت نفسه لنفس اسم الملف [SWS_PER_00337].

معالجة الأخطاء

تُرجع الدالة ara::core::Result<void> [SWS_PER_00337]. وبصرف النظر عن PerErrc::kResourceBusy، يمكن أن تحدث الأخطاء المعيارية التالية:

  • PerErrc::kFileNotFound: الملف المحدد غير موجود في وحدة تخزين الملفات [SWS_PER_00337].
  • PerErrc::kPhysicalStorageFailure: فشل الوصول إلى وسيط التخزين الفعلي [SWS_PER_00337].
  • PerErrc::kOutOfStorageSpace: مساحة التخزين الفعلية المتاحة غير كافية للملف المستعاد [SWS_PER_00337].
  • PerErrc::kQuotaExceeded: الملف المستعاد سيتجاوز الحد المكوّن maximumAllowedSize [SWS_PER_00337].
  • PerErrc::kEncryptionFailed وPerErrc::kAuthenticationFailed: فشل فك التشفير التشفيري أو التحقق من صحة MAC للبيانات المخزنة [SWS_PER_00337].

تم إنشاء إشعار الاستخدام هذا آليًا بناءً على مواصفة AUTOSAR R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I2)

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe PerErrc::kPhysical no_rollback_semantics

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.

Rückgabewert

TypBeschreibung
ara::core::Result< void >A Result of void. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kEncryptionFailedrollback_semantics Returned if the encryption or decryption of stored data fails.
PerErrc::kResourceBusyrollback_semantics Returned if the file is open, or if DeleteFile or ResetFile with the same file name is currently being executed.
PerErrc::kOutOfStorageSpaceno_rollback_semantics Returned if the available physical storage space is insufficient for the recovered file.
PerErrc::kFileNotFoundrollback_semantics Returned if the provided file does not exist in the File Storage.
PerErrc::kQuotaExceededrollback_semantics Returned if the recovered file would exceed the configured maximumAllowedSize of the File Storage.
PerErrc::kAuthenticationFailedrollback_semantics Returned if calculating or checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00337
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00337@rel:R25-11#870ebce5
Content hash
870ebce5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00337
Status: valid/unmigrated Version: rel:R25-11#bc734b10 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_PER_00337@rel:R25-11#bc734b10
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#197d86622026-09-30
  • R19-11rel:R19-11#c81267f62026-10-14
  • R20-11rel:R20-11#e1325f5e2026-10-14
  • R21-11rel:R21-11#7b0aeab52026-10-14
  • R22-11rel:R22-11#55f9192b2026-10-14
  • R23-11rel:R23-11#44af99602026-10-14
  • R24-11rel:R24-11#b7a26e732026-10-14
  • R25-11rel:R25-11#bc734b102026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة ResetFile [SWS_PER_00338] Upstream: RS_PER_00001, RS_PER_00004, RS_PER_00009, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< void > ResetFile (ara::core::StringView fileName) noexcept;

Resets a file of this File Storage to its initial content. ResetFile allows to reset a single file to its initial content. If the file is currently not available in the File Storage, it is re-created. Afterwards, the file will appear in both cases as if it was newly installed from the current Target Configuration. It will fail with kResourceBusy when the file is currently open, and with kInitValueNotAvailable when neither Application Design nor Target Configuration define an initial content for the file.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 16bebc8c99d8 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تُعيد الطريقة المتزامنة ResetFile للفئة ara::per::FileStorage تعيين ملف فردي إلى حالته الأولية المُهيأة مسبقًا [SWS_PER_00338]. وإذا لم يكن الملف المحدد عبر fileName موجودًا بالفعل في التخزين، فإنه يُنشأ من جديد [SWS_PER_00338]. وفي كلتا الحالتين، يحتوي الملف بعد ذلك على المحتوى نفسه كما بعد التثبيت الجديد من Target Configuration الحالية [SWS_PER_00338]؛ وتتم إدارة حالة التعديل الخاصة به في FileModificationState بوصفها kModifiedDuringReset [SWS_PER_00436].

العملية آمنة بالنسبة للخيوط وكذلك آمنة من الاستثناءات وتُرجع ara::core::Result<void> بشكل متزامن [SWS_PER_00338]. وتفشل مع PerErrc::kResourceBusy إذا كان الملف مفتوحًا حاليًا – مثلًا عبر [SWS_PER_00113] – أو إذا كان تنفيذ [SWS_PER_00111] أو [SWS_PER_00337] بنفس اسم الملف يجري في الوقت نفسه [SWS_PER_00338].

علاوة على ذلك، تُحدد الواجهة حالات خطأ محددة [SWS_PER_00338]:

  • PerErrc::kInitValueNotAvailable: لم يتم تكوين أي قيمة أولية لا في Application Design ولا في Target Configuration [SWS_PER_00338].
  • PerErrc::kQuotaExceeded أو PerErrc::kTooManyFiles: الملف المستعاد سيتجاوز الحد AllowedSize أو maxNumberOfFiles [SWS_PER_00338].
  • PerErrc::kOutOfStorageSpace أو StorageFailure: مساحة التخزين الفعلية غير كافية أو فشل الوصول الفعلي [SWS_PER_00338].
  • PerErrc::kEncryptionFailed أو PerErrc::kAuthenticationFailed: فشل التشفير أو فك التشفير أو التحقق من MAC للبيانات المخزنة [SWS_PER_00338].

تم إعداد ملاحظة الاستخدام هذه بواسطة ذكاء اصطناعي بالاستناد إلى مواصفة AUTOSAR Adaptive R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I2)

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe PerErrc::kPhysical no_rollback_semantics

Parameter (in)

ParameterBeschreibung
fileNameFile name of the file. May correspond to the PersistencyFile.file Name of a configured file.

Rückgabewert

TypBeschreibung
ara::core::Result< void >A Result of void. In case of an error, it contains any of the errors defined below, or a vendor specific error.

Fehler

FehlercodeBeschreibung
StorageFailureReturned if access to the physical storage fails.
PerErrc::kEncryptionFailedrollback_semantics Returned if the encryption or decryption of stored data fails.
PerErrc::kInitValueNotAvailablerollback_semantics Returned if no intitial value was configured for this file.
PerErrc::kResourceBusyrollback_semantics Returned if the file is open, or if DeleteFile or RecoverFile with the same file name is currently being executed.
PerErrc::kOutOfStorageSpaceno_rollback_semantics Returned if the available physical storage space is insufficient for the initial file.
PerErrc::kTooManyFilesrollback_semantics Returned if the number of files would get larger than the configured maxNumberOfFiles when the file is restored.
PerErrc::kQuotaExceededrollback_semantics Returned if the initial file would exceed the configured maximum AllowedSize of the File Storage.
PerErrc::kAuthenticationFailedrollback_semantics Returned if calculating or checking the MAC of stored data fails.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00338
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00338@rel:R25-11#e92219ca
Content hash
e92219ca
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00338
Status: valid/unmigrated Version: rel:R25-11#0e854863 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_PER_00338@rel:R25-11#0e854863
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e0bc7dbf2026-09-30
  • R19-11rel:R19-11#374792432026-10-14
  • R20-11rel:R20-11#447c2e0a2026-10-14
  • R21-11rel:R21-11#3249eca82026-10-14
  • R22-11rel:R22-11#5318b4ac2026-10-14
  • R23-11rel:R23-11#7d4afee22026-10-14
  • R24-11rel:R24-11#e91250742026-10-14
  • R25-11rel:R25-11#0e8548632026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة operator= [SWS_PER_00327] Upstream: RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00145, RS_AP_00159

FileStorage & operator= (FileStorage &&fs)=delete;

The move assignment operator for FileStorage shall not be used.

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00327
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00327@rel:R25-11#fb2a8a5f
Content hash
fb2a8a5f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00327
Status: valid/unmigrated Version: rel:R25-11#cfa00f65 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_PER_00327@rel:R25-11#cfa00f65
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d0dd99c82026-09-30
  • R19-11rel:R19-11#c719ee8c2026-10-14
  • R20-11rel:R20-11#dbca66992026-10-14
  • R21-11rel:R21-11#b28a2eda2026-10-14
  • R22-11rel:R22-11#07630f652026-10-14
  • R23-11rel:R23-11#61a2cece2026-10-14
  • R24-11rel:R24-11#cfa00f652026-10-14
  • R25-11rel:R25-11#cfa00f652026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة operator= [SWS_PER_00329] Upstream: RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_AP_00145

FileStorage & operator= (const FileStorage &)=delete;

The copy assignment operator for FileStorage shall not be used.

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00329
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00329@rel:R25-11#2c6f58c1
Content hash
2c6f58c1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00329
Status: valid/unmigrated Version: rel:R25-11#b7444c9a 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_PER_00329@rel:R25-11#b7444c9a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#24fb36102026-09-30
  • R19-11rel:R19-11#08d210462026-10-14
  • R20-11rel:R20-11#b39d46862026-10-14
  • R21-11rel:R21-11#b39d46862026-10-14
  • R22-11rel:R22-11#8e424eeb2026-10-14
  • R23-11rel:R23-11#9211a8ba2026-10-14
  • R24-11rel:R24-11#b7444c9a2026-10-14
  • R25-11rel:R25-11#b7444c9a2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة ~FileStorage [SWS_PER_00330] Upstream: RS_PER_00004, RS_AP_00120, RS_AP_00129, RS_AP_00134, RS_AP_00145, RS_AP_00159

~FileStorage () noexcept;

Destructor for FileStorage.

Header-Datei#include "ara/per/file_storage.h"
Scopeclass ara::per::FileStorage
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00330
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00330@rel:R25-11#5a106df1
Content hash
5a106df1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00330
Status: valid/unmigrated Version: rel:R25-11#406daa83 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_PER_00330@rel:R25-11#406daa83
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a52467262026-09-30
  • R19-11rel:R19-11#f78017fc2026-10-14
  • R20-11rel:R20-11#0c5e9d812026-10-14
  • R21-11rel:R21-11#0c5e9d812026-10-14
  • R22-11rel:R22-11#888777422026-10-14
  • R23-11rel:R23-11#83343bdb2026-10-14
  • R24-11rel:R24-11#406daa832026-10-14
  • R25-11rel:R25-11#406daa832026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill