DEENESPTFRRUARHIKOZHNL

struct ara::per::FileInfo

[SWS_PER_00437] Upstream: RS_PER_00004, RS_AP_00122

struct FileInfo {...};

This structure contains additional information on a file returned by GetFileInfo.

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

User GuideAI-GENERATED

Bundles timestamps and state information about the origin and modifications of a file in the adaptive Persistency module.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: c3acbafda95f Provenance Open questions (3)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Bundles timestamps and state information about the origin and modifications of a file in the adaptive Persistency module.

The structure ara::per::FileInfo serves as a metadata container for persistent files and is returned by GetFileInfo. It provides UTC-based timestamps in nanoseconds for creation [SWS_PER_00441], modification [SWS_PER_00442], and access [SWS_PER_00443] as well as status information regarding creation [SWS_PER_00444] and last modification [SWS_PER_00445]. As a passive data type, it is subject to the value semantics of the application and does not provide its own thread synchronization.

Context

In the per (Persistency) module of the AUTOSAR Adaptive Platform, the structure ara::per::FileInfo serves as a structured data carrier for administrative file metadata. For file operations handled via the interfaces of header file ara/per/file_storage.h, the Persistency module separates administrative information from the actual file contents. The structure is provided as the result of the operation GetFileInfo and assumes the function of a data transfer object between the Persistency layer and the calling application.

In terms of content, FileInfo combines two categories of attributes: precise temporal logging data and qualitative status information about the creation and maintenance of a file. The temporal specifications include the creation time [SWS_PER_00441], the modification time [SWS_PER_00442], and the time of last access [SWS_PER_00443]. These metadata are supplemented by descriptive status attributes that describe how and by whom the file was created [SWS_PER_00444] and last modified [SWS_PER_00445].

Lifecycle

As a passive C++ structure (struct), FileInfo has no independent state logic and no active runtime lifecycle. Instantiation typically occurs within the Persistency implementation during the execution of GetFileInfo. In this process, the metadata are read from the underlying file system and transferred into the data fields of the structure. Delivery to the application presumably occurs as a copy of the value or wrapped in a result type, whereby ownership and responsibility for the lifecycle are completely transferred to the calling component. Question Q-f5a9cf72c47f805e (open)

The lifetime of a FileInfo instance is tied to the scope in which the application declares the variable; upon leaving the scope, the structure is automatically deallocated. Because FileInfo encapsulates pure data fields and does not provide internal synchronization mechanisms, the structure is not thread-safe: In case of concurrent access by multiple threads to the same instance, explicit synchronization is likely required on the application side if at least one access is a write. Question Q-139f5e8f58d3fe07 (open)

Usage Path

The typical sequence for using FileInfo comprises querying the file information via the file storage interface and the subsequent evaluation of the attributes by the application. The application initiates the query by calling GetFileInfo, specifying the target file. After a successful return, all metadata are directly available via the public member variables.

Retrieval and evaluation of file metadataApplicationFileStorageFileInfoGetFileInfo(fileName)Create instance and populate fieldsReturn FileInfoCheck timestamps and state fields

Sequence diagram: Typical sequence for retrieving and evaluating file metadata via GetFileInfo. Sources: [SWS_PER_00441], [SWS_PER_00442], [SWS_PER_00443], [SWS_PER_00444], [SWS_PER_00445].

During evaluation, the application reads out the timestamps:

  • creationTime represents the time of file creation in nanoseconds since 1970-01-01 UTC (Unix epoch) [SWS_PER_00441].
  • modificationTime indicates the time of the last content modification in the same nanosecond format [SWS_PER_00442].
  • accessTime documents the time of the last read or write access in nanoseconds since 1970-01-01 UTC [SWS_PER_00443].

In addition to temporal classification, the application checks the attributes fileCreationState [SWS_PER_00444] and fileModificationState [SWS_PER_00445]. These enumeration values indicate under which conditions and by whom the file was created or modified. This allows the application to verify whether a file was created regularly in productive operation, during a recovery process, or by an update procedure before performing further read or write operations on the file content.

This class guide was generated by an AI assistant based on the AUTOSAR specification for Release R25-11.

Member map

Class diagram

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

G nara__per__FileInfo503 «struct» FileInfo + accessTime + creationTime + fileCreationState + fileModificationState + modificationTime

Detail view

Select an entry in the outline.

Constants

accessTime variable

Time in nanoseconds since midnight 1970-01-01 UTC at which the file was last accessed.

std::uint64_t accessTime;
creationTime variable

Time in nanoseconds since midnight 1970-01-01 UTC at which the file was created.

std::uint64_t creationTime;

Information on how and by whom the file was created.

FileCreationState fileCreationState;

Information on how and by whom the file was last modified.

FileModificationState fileModificationState;

Time in nanoseconds since midnight 1970-01-01 UTC at which the file was last modified.

std::uint64_t modificationTime;

Documentation of constants / variables

variable accessTime [SWS_PER_00443] Upstream: RS_PER_00004

std::uint64_t accessTime;

Time in nanoseconds since midnight 1970-01-01 UTC at which the file was last accessed.

Header-Datei#include "ara/per/file_storage.h"
Scopestruct ara::per::FileInfo
SymbolaccessTime
Typstd::uint64_t

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

Record
AUTOSAR/AP/record/SWS_PER_00443
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00443@rel:R25-11#a52f457e
Content hash
a52f457e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00443
Status: valid/unmigrated Version: rel:R25-11#0c3b2ea7 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_00443@rel:R25-11#0c3b2ea7
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#a52f457e2026-09-30
  • R20-11rel:R20-11#c3c78f402026-10-14
  • R21-11rel:R21-11#1fd0675a2026-10-14
  • R22-11rel:R22-11#4d72990b2026-10-14
  • R23-11rel:R23-11#0c3b2ea72026-10-14
  • R24-11rel:R24-11#0c3b2ea72026-10-14
  • R25-11rel:R25-11#0c3b2ea72026-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

variable creationTime [SWS_PER_00441] Upstream: RS_PER_00004

std::uint64_t creationTime;

Time in nanoseconds since midnight 1970-01-01 UTC at which the file was created.

Header-Datei#include "ara/per/file_storage.h"
Scopestruct ara::per::FileInfo
SymbolcreationTime
Typstd::uint64_t

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

Record
AUTOSAR/AP/record/SWS_PER_00441
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00441@rel:R25-11#87034c82
Content hash
87034c82
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00441
Status: valid/unmigrated Version: rel:R25-11#128ec43c 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_00441@rel:R25-11#128ec43c
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#87034c822026-09-30
  • R20-11rel:R20-11#abb3400d2026-10-14
  • R21-11rel:R21-11#406c80992026-10-14
  • R22-11rel:R22-11#9868f2512026-10-14
  • R23-11rel:R23-11#3b4c30052026-10-14
  • R24-11rel:R24-11#3b4c30052026-10-14
  • R25-11rel:R25-11#128ec43c2026-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

variable fileCreationState [SWS_PER_00444] Upstream: RS_PER_00004

FileCreationState fileCreationState;

Information on how and by whom the file was created.

Header-Datei#include "ara/per/file_storage.h"
Scopestruct ara::per::FileInfo
SymbolfileCreationState
TypFileCreationState

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

Record
AUTOSAR/AP/record/SWS_PER_00444
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00444@rel:R25-11#24e1cc7d
Content hash
24e1cc7d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00444
Status: valid/unmigrated Version: rel:R25-11#c8568e53 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_00444@rel:R25-11#c8568e53
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#24e1cc7d2026-09-30
  • R20-11rel:R20-11#3a13cd782026-10-14
  • R21-11rel:R21-11#3a13cd782026-10-14
  • R22-11rel:R22-11#cb985c4a2026-10-14
  • R23-11rel:R23-11#c8568e532026-10-14
  • R24-11rel:R24-11#c8568e532026-10-14
  • R25-11rel:R25-11#c8568e532026-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

variable fileModificationState [SWS_PER_00445] Upstream: RS_PER_00004

FileModificationState fileModificationState;

Information on how and by whom the file was last modified.

Header-Datei#include "ara/per/file_storage.h"
Scopestruct ara::per::FileInfo
SymbolfileModificationState
TypFileModificationState

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

Record
AUTOSAR/AP/record/SWS_PER_00445
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00445@rel:R25-11#2450e463
Content hash
2450e463
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00445
Status: valid/unmigrated Version: rel:R25-11#6371f418 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_00445@rel:R25-11#6371f418
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#2450e4632026-09-30
  • R20-11rel:R20-11#c2a6b5522026-10-14
  • R21-11rel:R21-11#c2a6b5522026-10-14
  • R22-11rel:R22-11#5d73b03d2026-10-14
  • R23-11rel:R23-11#6371f4182026-10-14
  • R24-11rel:R24-11#6371f4182026-10-14
  • R25-11rel:R25-11#6371f4182026-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

variable modificationTime [SWS_PER_00442] Upstream: RS_PER_00004

std::uint64_t modificationTime;

Time in nanoseconds since midnight 1970-01-01 UTC at which the file was last modified.

Header-Datei#include "ara/per/file_storage.h"
Scopestruct ara::per::FileInfo
SymbolmodificationTime
Typstd::uint64_t

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

Record
AUTOSAR/AP/record/SWS_PER_00442
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00442@rel:R25-11#0ee0f8de
Content hash
0ee0f8de
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00442
Status: valid/unmigrated Version: rel:R25-11#58665943 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_00442@rel:R25-11#58665943
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#0ee0f8de2026-09-30
  • R20-11rel:R20-11#1094540b2026-10-14
  • R21-11rel:R21-11#2f2714482026-10-14
  • R22-11rel:R22-11#620d66d02026-10-14
  • R23-11rel:R23-11#586659432026-10-14
  • R24-11rel:R24-11#586659432026-10-14
  • R25-11rel:R25-11#586659432026-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