方法文档
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.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 4416a2cc7c72
来源
本文本由 AI 生成,仅供参考。唯一具有约束力的是 AUTOSAR 文档规范。
实现者指南即将推出(复杂度 I2)
Header-Datei #include "ara/per/file_storage.h" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file.
Rückgabewert
Typ Beschreibung 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
Fehlercode Beschreibung 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.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#9014bbf32026-09-30 Inspect R19-11 rel:R19-11#878a9ae32026-10-14 Inspect R20-11 rel:R20-11#c8f140db2026-10-14 Inspect R21-11 rel:R21-11#35984aa22026-10-14 Inspect R22-11 rel:R22-11#86df5bb02026-10-14 Inspect R23-11 rel:R23-11#a507e2692026-10-14 Inspect R24-11 rel:R24-11#5c96fd1e2026-10-14 Inspect R25-11 rel:R25-11#54be3f242026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: f0bea0a79212
来源
本使用说明基于 AUTOSAR R25-11 自动生成。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "ara/per/file_storage.h" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kPhysical rollback_semantics
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file.
Rückgabewert
Typ Beschreibung 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
Fehlercode Beschreibung StorageFailure 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 ::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#b7ca36222026-09-30 Inspect R19-11 rel:R19-11#bb51dd332026-10-14 Inspect R20-11 rel:R20-11#69021fcb2026-10-14 Inspect R21-11 rel:R21-11#a1fece9f2026-10-14 Inspect R22-11 rel:R22-11#2147fabd2026-10-14 Inspect R23-11 rel:R23-11#cd2da2ba2026-10-14 Inspect R24-11 rel:R24-11#421ba73d2026-10-14 Inspect R25-11 rel:R25-11#eff770fd2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
FileStorage (FileStorage &&fs)=delete;
The move constructor for FileStorage shall not be used.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#201fb7f12026-09-30 Inspect R19-11 rel:R19-11#ee041ade2026-10-14 Inspect R20-11 rel:R20-11#b225c72d2026-10-14 Inspect R21-11 rel:R21-11#805cfb8b2026-10-14 Inspect R22-11 rel:R22-11#a9c3021b2026-10-14 Inspect R23-11 rel:R23-11#4fc6a3d12026-10-14 Inspect R24-11 rel:R24-11#62da63ae2026-10-14 Inspect R25-11 rel:R25-11#62da63ae2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
FileStorage (const FileStorage &)=delete;
The copy constructor for FileStorage shall not be used.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#210f83712026-09-30 Inspect R19-11 rel:R19-11#b53f0afb2026-10-14 Inspect R20-11 rel:R20-11#4fbd234e2026-10-14 Inspect R21-11 rel:R21-11#4fbd234e2026-10-14 Inspect R22-11 rel:R22-11#3d9e304b2026-10-14 Inspect R23-11 rel:R23-11#9edf14a62026-10-14 Inspect R24-11 rel:R24-11#4f3e23582026-10-14 Inspect R25-11 rel:R25-11#457a8c692026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
FileStorage ()=delete;
The default constructor for FileStorage shall not be used.
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:
Release:
R25-11 (Current / Active) R21-11 R22-11 R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (6):
R25-11 rel:R25-11#9eb415912026-09-30 Inspect R21-11 rel:R21-11#f93f78842026-10-14 Inspect R22-11 rel:R22-11#1e2c76302026-10-14 Inspect R23-11 rel:R23-11#dd525b8f2026-10-14 Inspect R24-11 rel:R24-11#11aa63012026-10-14 Inspect R25-11 rel:R25-11#11aa63012026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kPhysical rollback_semantics
Rückgabewert
Fehler
Fehlercode Beschreibung StorageFailure 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 ::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#2ea4c0b72026-09-30 Inspect R19-11 rel:R19-11#2c8803ba2026-10-14 Inspect R20-11 rel:R20-11#6c4ecd642026-10-14 Inspect R21-11 rel:R21-11#7a8244992026-10-14 Inspect R22-11 rel:R22-11#1e3bc0af2026-10-14 Inspect R23-11 rel:R23-11#0cb5785b2026-10-14 Inspect R24-11 rel:R24-11#2a355aef2026-10-14 Inspect R25-11 rel:R25-11#2a355aef2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file.
Rückgabewert
Typ Beschreibung 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
Fehlercode Beschreibung 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.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#071859e92026-09-30 Inspect R19-11 rel:R19-11#033eba912026-10-14 Inspect R20-11 rel:R20-11#3966ef4c2026-10-14 Inspect R21-11 rel:R21-11#d10d2b0b2026-10-14 Inspect R22-11 rel:R22-11#8dd5feab2026-10-14 Inspect R23-11 rel:R23-11#9f29c68f2026-10-14 Inspect R24-11 rel:R24-11#179f149b2026-10-14 Inspect R25-11 rel:R25-11#179f149b2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file.
Rückgabewert
Typ Beschreibung 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
Fehlercode Beschreibung 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.
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:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#54615ca12026-09-30 Inspect R20-11 rel:R20-11#3e42a8462026-10-14 Inspect R21-11 rel:R21-11#2ca508bf2026-10-14 Inspect R22-11 rel:R22-11#374465322026-10-14 Inspect R23-11 rel:R23-11#57dca30b2026-10-14 Inspect R24-11 rel:R24-11#87296ea62026-10-14 Inspect R25-11 rel:R25-11#ac6ae9db2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b7f6df93c4d9
来源
类 ara::per::FileStorage 的方法 OpenFileReadOnly(在 #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" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
PerErrc ::kPhysical rollback_semantics
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file. mode Mode with which the file shall be opened.
Rückgabewert
Typ Beschreibung 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
Fehlercode Beschreibung StorageFailure 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 ::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.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#56472e6d2026-09-30 Inspect R19-11 rel:R19-11#68c3cec42026-10-14 Inspect R20-11 rel:R20-11#70976e3f2026-10-14 Inspect R21-11 rel:R21-11#2c5ff8412026-10-14 Inspect R22-11 rel:R22-11#2b3b319d2026-10-14 Inspect R23-11 rel:R23-11#e52382f02026-10-14 Inspect R24-11 rel:R24-11#f80914872026-10-14 Inspect R25-11 rel:R25-11#d387e5662026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 4286b0e81322
来源
使用
类 ara::per::FileStorage 的方法 OpenFileReadOnly 以只读方式打开持久化文件以供读取 [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" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kPhysical rollback_semantics
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file.
Rückgabewert
Typ Beschreibung 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
Fehlercode Beschreibung StorageFailure 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 ::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.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#f25323df2026-09-30 Inspect R19-11 rel:R19-11#630d35ad2026-10-14 Inspect R20-11 rel:R20-11#c212e2fc2026-10-14 Inspect R21-11 rel:R21-11#d617d2d22026-10-14 Inspect R22-11 rel:R22-11#88f516892026-10-14 Inspect R23-11 rel:R23-11#eab160e12026-10-14 Inspect R24-11 rel:R24-11#6b07bd902026-10-14 Inspect R25-11 rel:R25-11#c1cc1c732026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: f3a0884b9d84
来源
类 ara::per::FileStorage 的同步方法 OpenFileReadOnly 使用调用方提供的缓冲区打开持久化文件以供读取访问 [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" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kPhysical rollback_semantics
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file. mode Mode with which the file shall be opened. buffer Memory to be used for block-wise reading.
Rückgabewert
Typ Beschreibung 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
Fehlercode Beschreibung StorageFailure 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 ::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.
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:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#d5ddc0d92026-09-30 Inspect R20-11 rel:R20-11#a9e488522026-10-14 Inspect R21-11 rel:R21-11#f7bf78f42026-10-14 Inspect R22-11 rel:R22-11#668067d82026-10-14 Inspect R23-11 rel:R23-11#bc8680862026-10-14 Inspect R24-11 rel:R24-11#062cbdd82026-10-14 Inspect R25-11 rel:R25-11#6f001bfd2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: cf05039b8020
来源
使用
类 ara::per::FileStorage 的同步方法 OpenFileReadWrite 在指定模式下打开文件以进行读写访问 mode [SWS_PER_00113] 。若在模式中未另作说明,文件指针默认设置在开头(kAtTheBeginning)。若文件尚不存在,则会自动创建 [SWS_PER_00113] 。该函数返回带有 UniqueHandle<ReadWriteAccessor> 的 ara::core::Result,一旦该句柄离开其作用域,就会自动关闭文件 [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:硬件访问错误、数据结构损坏或加密校验失败。
相互作用
作为简化变体,提供了一个不带模式参数的重载,该重载默认在开头打开文件 [SWS_PER_00375] 。为了在大量微小访问时优化性能,还提供了一个带有自定义缓冲区(buffer)的重载,用于分块读写 [SWS_PER_00429] 。
本使用说明由人工智能基于 AUTOSAR Adaptive Release R25-11 规范生成。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "ara/per/file_storage.h" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kIllegalWrite rollback_semantics
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file. mode Mode with which the file shall be opened.
Rückgabewert
Fehler
Fehlercode Beschreibung Access 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.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#b7812ac62026-09-30 Inspect R19-11 rel:R19-11#29f193992026-10-14 Inspect R20-11 rel:R20-11#705aebbc2026-10-14 Inspect R21-11 rel:R21-11#3e1bef852026-10-14 Inspect R22-11 rel:R22-11#8b90a8c62026-10-14 Inspect R23-11 rel:R23-11#9d0c90192026-10-14 Inspect R24-11 rel:R24-11#c88f05782026-10-14 Inspect R25-11 rel:R25-11#64fa2a802026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: e0c7dc90877b
来源
类 ara::per::FileStorage 的同步成员函数 OpenFileReadWrite 用于打开文件以进行读写组合访问 [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] :
配置和访问错误,例如在只读存储或 Write-Once 配置下已存在数据时的 Access [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] 。
此文本由 AI 生成并根据 AUTOSAR 规范进行了验证。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "ara/per/file_storage.h" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kIllegalWrite rollback_semantics
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file.
Rückgabewert
Fehler
Fehlercode Beschreibung Access 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 ::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.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#ff96f9722026-09-30 Inspect R19-11 rel:R19-11#cc81c63c2026-10-14 Inspect R20-11 rel:R20-11#1cfd91622026-10-14 Inspect R21-11 rel:R21-11#32976f732026-10-14 Inspect R22-11 rel:R22-11#8a4213d62026-10-14 Inspect R23-11 rel:R23-11#c423d7112026-10-14 Inspect R24-11 rel:R24-11#0b6d7d9b2026-10-14 Inspect R25-11 rel:R25-11#f465ec052026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 06577277e905
来源
未决问题(1)
使用
类 ara::per::FileStorage 的方法 OpenFileReadWrite 在提供用户定义缓冲区的情况下同步打开文件以进行组合读写 [SWS_PER_00429] 。传递的存储区 buffer(作为 ara::core::Span<ara::core::Byte>)由 ReadWriteAccessor 在内部用于分块读写操作,以便高性能地处理一系列小访问。如果指定的文件尚不存在,它将自动新建;除非在传入的 mode 中另有指定,否则文件位置默认位于开头(kAtTheBeginning) [SWS_PER_00429] 。一旦在 ara::core::Result 中返回的 UniqueHandle 离开其作用域,文件即被关闭。Interpretation:传入的缓冲区 span 的底层内存大概必须在 UniqueHandle 的整个生命周期内保持有效,因为访问器会引用它来进行分块访问。 问题 Q-e0009b7de17e3597 (未决)
错误处理与并发
该函数被指定为 noexcept、异常安全(exception safe)且线程安全 [SWS_PER_00429] 。在发生失败时,Result 提供制造商特定错误或定义的错误代码:
PerErrc::kResourceBusy:文件已打开,或正在由具有相同名称的 DeleteFile、RecoverFile 或 ResetFile 同时处理 [SWS_PER_00429] 。
Access:存储区被配置为只读,或被设定为只写一次且已被占用 [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] 允许通过显式内存缓冲区有针对性地加速小 I/O 访问。
本段文本由 AI 生成,基于 AUTOSAR 规范的要求。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "ara/per/file_storage.h" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kIllegalWrite rollback_semantics
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file. mode Mode with which the file shall be opened. buffer Memory to be used for block-wise reading/writing.
Rückgabewert
Fehler
Fehlercode Beschreibung Access 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.
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:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#380d9a532026-09-30 Inspect R20-11 rel:R20-11#38b6d4692026-10-14 Inspect R21-11 rel:R21-11#a276c7642026-10-14 Inspect R22-11 rel:R22-11#359642092026-10-14 Inspect R23-11 rel:R23-11#09bac95b2026-10-14 Inspect R24-11 rel:R24-11#7891475a2026-10-14 Inspect R25-11 rel:R25-11#e9dd40b82026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: cf72b60c71fb
来源
使用
类 ara::per::FileStorage 的方法 OpenFileWriteOnly 使用定义的访问模式同步打开文件以进行排他性写入 [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] 。如果文件已打开,或者同时正在对同一文件名执行诸如 DeleteFile、RecoverFile 或 ResetFile 之类的操作,则对同一文件的并行访问将失败并出现错误代码 PerErrc::kResourceBusy [SWS_PER_00115] 。
相互作用
除了该函数外,该接口还提供了一个不带模式参数的简化重载(默认使用 kTruncate 运行 [SWS_PER_00377] ),以及一个带有用户定义缓冲区的重载,以允许按块写入从而加速多次小规模访问 [SWS_PER_00431] 。
本使用说明由 AI 基于规范生成。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "ara/per/file_storage.h" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kIllegalWrite rollback_semantics
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file. mode Mode with which the file shall be opened.
Rückgabewert
Fehler
Fehlercode Beschreibung Access 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.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#947090352026-09-30 Inspect R19-11 rel:R19-11#a8c3f2cb2026-10-14 Inspect R20-11 rel:R20-11#a4a01e002026-10-14 Inspect R21-11 rel:R21-11#9d4cb3182026-10-14 Inspect R22-11 rel:R22-11#94711d402026-10-14 Inspect R23-11 rel:R23-11#e0aa47d82026-10-14 Inspect R24-11 rel:R24-11#6c8c32a92026-10-14 Inspect R25-11 rel:R25-11#8d570d7b2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: fa6d3b80cd05
来源
使用
类 ara::per::FileStorage 的同步方法 OpenFileWriteOnly 根据 [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] 。
本文由 AI 基于 AUTOSAR Adaptive R25-11 规范生成。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "ara/per/file_storage.h" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kIllegalWrite rollback_semantics
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file.
Rückgabewert
Fehler
Fehlercode Beschreibung Access 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 ::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.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#425765882026-09-30 Inspect R19-11 rel:R19-11#19dcafc12026-10-14 Inspect R20-11 rel:R20-11#65cfdd922026-10-14 Inspect R21-11 rel:R21-11#070ae0fe2026-10-14 Inspect R22-11 rel:R22-11#8d2829d82026-10-14 Inspect R23-11 rel:R23-11#f1d4f46e2026-10-14 Inspect R24-11 rel:R24-11#06a2d0b72026-10-14 Inspect R25-11 rel:R25-11#b93b741b2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 37dc6b2848d7
来源
类 ara::per::FileStorage 的同步方法 OpenFileWriteOnly 打开文件以进行独占写入,并在成功时返回 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:文件存储为只读或配置为 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" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file. mode Mode with which the file shall be opened. buffer Memory to be used for block-wise writing.
Rückgabewert
Fehler
Fehlercode Beschreibung 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.
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:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#4a5239432026-09-30 Inspect R20-11 rel:R20-11#cee86b4c2026-10-14 Inspect R21-11 rel:R21-11#97f9954b2026-10-14 Inspect R22-11 rel:R22-11#950e84fd2026-10-14 Inspect R23-11 rel:R23-11#26aeb4402026-10-14 Inspect R24-11 rel:R24-11#e7c640db2026-10-14 Inspect R25-11 rel:R25-11#3f1ccf512026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 1adb8f07ad8e
来源
本使用说明基于 AUTOSAR R25-11 规范自动生成。
实现者指南即将推出(复杂度 I2)
Header-Datei #include "ara/per/file_storage.h" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kPhysical no_rollback_semantics
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file.
Rückgabewert
Typ Beschreibung 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
Fehlercode Beschreibung StorageFailure Returned 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.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#197d86622026-09-30 Inspect R19-11 rel:R19-11#c81267f62026-10-14 Inspect R20-11 rel:R20-11#e1325f5e2026-10-14 Inspect R21-11 rel:R21-11#7b0aeab52026-10-14 Inspect R22-11 rel:R22-11#55f9192b2026-10-14 Inspect R23-11 rel:R23-11#44af99602026-10-14 Inspect R24-11 rel:R24-11#b7a26e732026-10-14 Inspect R25-11 rel:R25-11#bc734b102026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
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.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 16bebc8c99d8
来源
此使用说明由 AI 创建,基于 AUTOSAR Adaptive R25-11 规范。
实现者指南即将推出(复杂度 I2)
Header-Datei #include "ara/per/file_storage.h" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kPhysical no_rollback_semantics
Parameter (in)
Parameter Beschreibung fileName File name of the file. May correspond to the PersistencyFile.file Name of a configured file.
Rückgabewert
Typ Beschreibung 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
Fehlercode Beschreibung StorageFailure Returned 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.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#e0bc7dbf2026-09-30 Inspect R19-11 rel:R19-11#374792432026-10-14 Inspect R20-11 rel:R20-11#447c2e0a2026-10-14 Inspect R21-11 rel:R21-11#3249eca82026-10-14 Inspect R22-11 rel:R22-11#5318b4ac2026-10-14 Inspect R23-11 rel:R23-11#7d4afee22026-10-14 Inspect R24-11 rel:R24-11#e91250742026-10-14 Inspect R25-11 rel:R25-11#0e8548632026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
FileStorage & operator= (FileStorage &&fs)=delete;
The move assignment operator for FileStorage shall not be used.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#d0dd99c82026-09-30 Inspect R19-11 rel:R19-11#c719ee8c2026-10-14 Inspect R20-11 rel:R20-11#dbca66992026-10-14 Inspect R21-11 rel:R21-11#b28a2eda2026-10-14 Inspect R22-11 rel:R22-11#07630f652026-10-14 Inspect R23-11 rel:R23-11#61a2cece2026-10-14 Inspect R24-11 rel:R24-11#cfa00f652026-10-14 Inspect R25-11 rel:R25-11#cfa00f652026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
FileStorage & operator= (const FileStorage &)=delete;
The copy assignment operator for FileStorage shall not be used.
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#24fb36102026-09-30 Inspect R19-11 rel:R19-11#08d210462026-10-14 Inspect R20-11 rel:R20-11#b39d46862026-10-14 Inspect R21-11 rel:R21-11#b39d46862026-10-14 Inspect R22-11 rel:R22-11#8e424eeb2026-10-14 Inspect R23-11 rel:R23-11#9211a8ba2026-10-14 Inspect R24-11 rel:R24-11#b7444c9a2026-10-14 Inspect R25-11 rel:R25-11#b7444c9a2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
~FileStorage () noexcept;
Destructor for FileStorage.
Header-Datei #include "ara/per/file_storage.h" Scope class ara::per::FileStorage Exception-Sicherheit exception safe Thread-Sicherheit not thread-safe
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:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#a52467262026-09-30 Inspect R19-11 rel:R19-11#f78017fc2026-10-14 Inspect R20-11 rel:R20-11#0c5e9d812026-10-14 Inspect R21-11 rel:R21-11#0c5e9d812026-10-14 Inspect R22-11 rel:R22-11#888777422026-10-14 Inspect R23-11 rel:R23-11#83343bdb2026-10-14 Inspect R24-11 rel:R24-11#406daa832026-10-14 Inspect R25-11 rel:R25-11#406daa832026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
gemini-3.8-flash-low· 2026-10-13 · 德文原文