DEENESPTFRRUARHIKOZHNL

class ara::per::FileAccessor

[SWS_PER_00588] Upstream: RS_PER_00004, RS_AP_00122, RS_AP_00146

class FileAccessor {...};

FileAccessor contains a common basis for ReadAccessor and WriteAccessor. It provides methods for checking and setting the current position in the file (GetPosition, Set Position, MovePosition, IsEof) and for checking the current size of the file (GetSize).

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

User GuideKI-GENERIERT

Dient als gemeinsame Basisklasse zur Dateigrößenabfrage und Positionsnavigation für spezialisierte Dateizugriffe.
KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: e1768b56d42c Herkunft Offene Fragen (2)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Dient als gemeinsame Basisklasse zur Dateigrößenabfrage und Positionsnavigation für spezialisierte Dateizugriffe.

Die Klasse ara::per::FileAccessor dient im AUTOSAR-Persistenzmodul als gemeinsame Basisklasse zur Positionsnavigation und Größenprüfung geordneter Dateizugriffe ([SWS_PER_00424]). Sie unterbindet direkte Instanziierung sowie Kopiervorgänge durch gelöschte Konstruktoren ([SWS_PER_00589]). Bei ungültigen Positionsangaben greift eine Rollback-Semantik, die die aktuelle Zeigerposition schützt. Alle Operationen sind ausnahmesicher, verlangen jedoch bei nebenläufigem Einsatz eine externe Synchronisation.

Kontext

Die Klasse ara::per::FileAccessor dient im Persistenz-Modul (ara::per) der AUTOSAR Adaptive Platform als gemeinsame abstrakte Basisklasse für Dateizugriffsobjekte wie ReadAccessor und WriteAccessor. Ihre zentrale Verantwortung ist die einheitliche Schnittstelle zur dateibezogenen Positionsverwaltung und Größenprüfung. Die Klasse fungiert als Kontrollinstanz für den Lese- und Schreibcursor innerhalb einer geöffneten Datei, enthält jedoch selbst keine Methoden zur eigentlichen Datenübertragung (wie Lesen oder Schreiben von Bytes). Die Navigation erfolgt entweder absolut ab Dateianfang oder relativ zu definierten Bezugspunkten.

Lebenszyklus

Die Klasse ara::per::FileAccessor kann nicht direkt instanziiert oder frei kopiert werden. Der Standardkonstruktor ist gelöscht ([SWS_PER_00589]), ebenso wie der Kopierkonstruktor ([SWS_PER_00592]) und der Kopierzuweisungsoperator ([SWS_PER_00593]). Auch Move-Semantiken sind explizit unterbunden: Sowohl der Move-Konstruktor ([SWS_PER_00590]) als auch der Move-Zuweisungsoperator ([SWS_PER_00591]) sind gelöscht. Daraus ergibt sich die Interpretation, dass Instanzen ausschließlich im Kontext konkreter Subklassen erzeugt und verwaltet werden.

Für eine sichere Freigabe sorgt der virtuelle Destruktor ~FileAccessor() ([SWS_PER_00594]), der eine polymorphe Zerstörung über Basisklassenzeiger ermöglicht. Bezüglich der Nebenläufigkeit sind sämtliche Memberfunktionen als nicht threadsicher spezifiziert ([SWS_PER_00162], [SWS_PER_00424], [SWS_PER_00107], [SWS_PER_00163], [SWS_PER_00164]). Konkurrierende Zugriffe verschiedener Threads auf dieselbe Instanz müssen folglich durch die Anwendung synchronisiert werden.

Nutzungspfad

Der typische Einsatz von FileAccessor umfasst die Abfrage der Dateigröße, die Ermittlung der momentanen Position sowie gezielte Positionsverschiebungen zur Vorbereitung von Lese- oder Schreibzugriffen:

  • Größenabfrage: Über GetSize() wird die aktuelle Dateigröße in Bytes ermittelt ([SWS_PER_00424]).
  • Positionsabfrage: Mit GetPosition() fragt die Anwendung den aktuellen Byte-Offset ab Dateianfang ab, der auch genau am Dateiende liegen kann ([SWS_PER_00162]).
  • Absolute Positionierung: SetPosition() setzt den Cursor auf einen absoluten Offset ab Dateianfang ([SWS_PER_00163]).
  • Relative Verschiebung: MovePosition() verschiebt den Cursor ausgehend von Origin::kBeginning, Origin::kCurrent oder Origin::kEnd um einen vorzeichenbehafteten Offset ([SWS_PER_00164]).
  • Dateiende-Prüfung: Die Methode IsEof() gibt an, ob die aktuelle Position das Dateiende erreicht hat ([SWS_PER_00107]).
Navigieren und Abfragen der DateipositionAnwendungFileAccessorGetSize()Dateigröße (Bytes)SetPosition(position)altposition <= DateigrößeResult<void> (Erfolg)position > DateigrößeResult mit PerErrc::kInvalidPositionMovePosition(Origin::kCurrent, offset)Result<uint64_t> (neue Position)IsEof()bool (EOF-Status)

Sequenzdiagramm: Typische Abfolge von Positionsabfragen und Navigationsschritten inklusive Fehlerprüfung. Quellen: [SWS_PER_00424], [SWS_PER_00162], [SWS_PER_00163], [SWS_PER_00164], [SWS_PER_00107]

Fehlerszenarien

Sämtliche Operationen von FileAccessor sind ausnahmesicher deklariert (noexcept). Potenzielle Fehlerzustände bei Navigationsaufrufen werden über ara::core::Result zurückgegeben:

Versucht eine Anwendung über SetPosition() eine Position jenseits des Dateiendes anzusteuern, schlägt der Aufruf mit dem Fehlercode PerErrc::kInvalidPosition fehl ([SWS_PER_00163]). Gleiches gilt für MovePosition(), falls die berechnete Zielposition negativ ausfallen würde oder hinter dem Dateiende liegt ([SWS_PER_00164]). Für beide Methoden ist eine strikte Rollback-Semantik verbindlich vorgeschrieben: Tritt ein Fehler auf, bleibt die zuvor gültige Position der Datei unverändert erhalten ([SWS_PER_00163], [SWS_PER_00164]).

Die abfragenden Methoden GetSize() ([SWS_PER_00424]), GetPosition() ([SWS_PER_00162]) und IsEof() ([SWS_PER_00107]) geben unmittelbar Basisdatentypen zurück und erzeugen keine spezifischen Fehlercodes.

Diesen Text hat eine KI auf Basis der AUTOSAR-Spezifikation R25-11 verfasst. Er ergänzt die normative Dokumentation um ein Gesamtbild der Navigationsabstraktion.

Mitgliederkarte

Klassendiagramm

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

G nara__per__FileAccessor932 FileAccessor + FileAccessor() + operator=() + ~FileAccessor() + GetPosition() + GetSize() + IsEof() + MovePosition() + SetPosition() nara__per__ReadAccessor956 ReadAccessor nara__per__ReadAccessor956->nara__per__FileAccessor932 nara__per__WriteAccessor940 WriteAccessor nara__per__WriteAccessor940->nara__per__FileAccessor932

Detailansicht

Wähle in der Gliederung einen Eintrag aus.

Konstruktoren und Destruktor

FileAccessor function 3

The default constructor for FileAccessor shall not be used.

Überladungen FileAccessor 3
FileAccessor ()=delete; SWS_PER_00589
FileAccessor (FileAccessor &&ra)=delete; SWS_PER_00590
FileAccessor (const FileAccessor &)=delete; SWS_PER_00592
~FileAccessor function

Destructor for FileAccessor.

virtual ~FileAccessor () noexcept;

Methoden

GetPosition function

Returns the current position relative to the beginning of the file. The returned position may be at the end of the file.

std::uint64_t GetPosition () const noexcept;
GetSize function

Returns the current size of a file in bytes.

std::uint64_t GetSize () const noexcept;
IsEof function

Checks if the current position is at end of file.

bool IsEof () const noexcept;
MovePosition function

Moves the current position in the file relative to the Origin. In case of an error, the current position is not changed.

ara::core::Result< std::uint64_t > MovePosition (Origin origin, std::int64_t offset) noexcept;
SetPosition function

Sets the current position relative to the beginning of the file. In case of an error, the current position is not changed.

ara::core::Result< void > SetPosition (std::uint64_t position) noexcept;

Operatoren

operator= function 2

The move assignment operator for FileAccessor shall not be used.

Überladungen = 2
FileAccessor & operator= (FileAccessor &&ra)=delete; SWS_PER_00591
FileAccessor & operator= (const FileAccessor &)=delete; SWS_PER_00593

Dokumentation der Methoden

function FileAccessor [SWS_PER_00589] Upstream: RS_PER_00004, RS_AP_00120, RS_AP_00129, RS_AP_00146

FileAccessor ()=delete;

The default constructor for FileAccessor shall not be used.

Header-Datei#include "ara/per/file_accessor.h"
Scopeclass ara::per::FileAccessor

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

Record
AUTOSAR/AP/record/SWS_PER_00589
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00589@rel:R25-11#f2d5e1fc
Content hash
f2d5e1fc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00589
Status: valid/unmigrated Version: rel:R25-11#f2d5e1fc Versionshistorie & Revisions (1 transition)
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_00589@rel:R25-11#f2d5e1fc
Point-in-Time History:
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

function FileAccessor [SWS_PER_00590] Upstream: RS_PER_00004, RS_AP_00120, RS_AP_00121, RS_AP_00129, RS_AP_00145, RS_AP_00159

FileAccessor (FileAccessor &&ra)=delete;

The move constructor for FileAccessor shall not be used.

Header-Datei#include "ara/per/file_accessor.h"
Scopeclass ara::per::FileAccessor

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

Record
AUTOSAR/AP/record/SWS_PER_00590
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00590@rel:R25-11#08b3d49a
Content hash
08b3d49a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00590
Status: valid/unmigrated Version: rel:R25-11#08b3d49a Versionshistorie & Revisions (1 transition)
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_00590@rel:R25-11#08b3d49a
Point-in-Time History:
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

function FileAccessor [SWS_PER_00592] Upstream: RS_PER_00004, RS_AP_00120, RS_AP_00145

FileAccessor (const FileAccessor &)=delete;

The copy constructor for FileAccessor shall not be used.

Header-Datei#include "ara/per/file_accessor.h"
Scopeclass ara::per::FileAccessor

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

Record
AUTOSAR/AP/record/SWS_PER_00592
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00592@rel:R25-11#d27604ed
Content hash
d27604ed
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00592
Status: valid/unmigrated Version: rel:R25-11#d27604ed Versionshistorie & Revisions (1 transition)
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_00592@rel:R25-11#d27604ed
Point-in-Time History:
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

function GetPosition [SWS_PER_00162] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00159

std::uint64_t GetPosition () const noexcept;

Returns the current position relative to the beginning of the file. The returned position may be at the end of the file.

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

Rückgabewert

TypBeschreibung
std::uint64_tThe current position in the file in bytes from the beginning of the file.

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

Record
AUTOSAR/AP/record/SWS_PER_00162
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00162@rel:R25-11#416e7a9c
Content hash
416e7a9c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00162
Status: valid/unmigrated Version: rel:R25-11#f20dc3e3 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_00162@rel:R25-11#f20dc3e3
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#416e7a9c2026-09-30
  • R19-11rel:R19-11#ae38b90b2026-10-14
  • R20-11rel:R20-11#a53d148f2026-10-14
  • R21-11rel:R21-11#b0fecce62026-10-14
  • R22-11rel:R22-11#0f4d44d22026-10-14
  • R23-11rel:R23-11#912ecabe2026-10-14
  • R24-11rel:R24-11#eb8d26992026-10-14
  • R25-11rel:R25-11#f20dc3e32026-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

function GetSize [SWS_PER_00424] Upstream: RS_PER_00017, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00127, RS_AP_00128, RS_AP_00129, RS_AP_00159

std::uint64_t GetSize () const noexcept;

Returns the current size of a file in bytes.

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

Rückgabewert

TypBeschreibung
std::uint64_tThe current size of the file in bytes.

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

Record
AUTOSAR/AP/record/SWS_PER_00424
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00424@rel:R25-11#212e3e74
Content hash
212e3e74
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00424
Status: valid/unmigrated Version: rel:R25-11#0403ec61 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_00424@rel:R25-11#0403ec61
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#212e3e742026-09-30
  • R20-11rel:R20-11#4d8b55b62026-10-14
  • R21-11rel:R21-11#ea1c0d632026-10-14
  • R22-11rel:R22-11#20de23fe2026-10-14
  • R23-11rel:R23-11#ef0c633f2026-10-14
  • R24-11rel:R24-11#5d07b21d2026-10-14
  • R25-11rel:R25-11#0403ec612026-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

function IsEof [SWS_PER_00107] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00159

bool IsEof () const noexcept;

Checks if the current position is at end of file.

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

Rückgabewert

TypBeschreibung
boolTrue if the current position is at the end of the file, false otherwise.

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

Record
AUTOSAR/AP/record/SWS_PER_00107
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00107@rel:R25-11#a72969de
Content hash
a72969de
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00107
Status: valid/unmigrated Version: rel:R25-11#1ea53dae 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_00107@rel:R25-11#1ea53dae
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a72969de2026-09-30
  • R19-11rel:R19-11#a79d80012026-10-14
  • R20-11rel:R20-11#6fb143982026-10-14
  • R21-11rel:R21-11#6fb143982026-10-14
  • R22-11rel:R22-11#a37547212026-10-14
  • R23-11rel:R23-11#a3e1b2842026-10-14
  • R24-11rel:R24-11#b7d2c0c02026-10-14
  • R25-11rel:R25-11#1ea53dae2026-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

function MovePosition [SWS_PER_00164] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00121, RS_AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< std::uint64_t > MovePosition (Origin origin, std::int64_t offset) noexcept;

Moves the current position in the file relative to the Origin. In case of an error, the current position is not changed.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 436bd0736ae4 Herkunft
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Verwendung

Die synchrone Methode MovePosition der Klasse ara::per::FileAccessor verschiebt die aktuelle Dateiposition relativ zu einem definierten Bezugspunkt [SWS_PER_00164]. Die Funktion ist als noexcept deklariert [SWS_PER_00164]. Als Parameter übernimmt sie den Ausgangspunkt origin vom Typ Origin sowie den vorzeichenbehafteten Byte-Versatz offset [SWS_PER_00164]. Bei erfolgreicher Ausführung liefert die Methode ein ara::core::Result mit der resultierenden absoluten Byte-Position ab Dateibeginn zurück [SWS_PER_00164].

Zusammenspiel und Parameterwerte

Der Referenzpunkt origin wird durch die Enumeration Origin festgelegt [SWS_PER_00146]:

  • Origin::kBeginning: Verschiebung ab Dateibeginn; offset kann hierbei positiv sein [SWS_PER_00164], [SWS_PER_00146].
  • Origin::kCurrent: Verschiebung ab der aktuellen Dateiposition; offset darf positiv oder negativ sein, wobei ein Wert von null die Position nicht ändert [SWS_PER_00164], [SWS_PER_00146].
  • Origin::kEnd: Verschiebung relativ zum Dateiende; offset darf negativ sein, während ein Versatz von null die Position exakt auf das Dateiende setzt [SWS_PER_00164], [SWS_PER_00146].

Fehlerbehandlung

Im Fehlerfall wird die bisherige Dateiposition durch eine Rollback-Semantik nicht verändert [SWS_PER_00164]. Ergibt der berechnete Zielpunkt einen Wert kleiner als null oder liegt dieser jenseits des Dateiendens, wird der Fehlercode PerErrc::kInvalidPosition zurückgegeben [SWS_PER_00164]. Zudem kann das Ergebnis herstellerspezifische Fehler enthalten [SWS_PER_00164].

Nebenläufigkeit und Einschränkungen

Die Methode ist als exception safe spezifiziert [SWS_PER_00164]. Da die Implementierung als not thread-safe eingestuft ist, müssen parallele Zugriffe auf dieselbe Instanz von FileAccessor aufruferseitig synchronisiert werden [SWS_PER_00164].

Dieser Text wurde durch ein KI-System erstellt und durch autodocs kuratiert.

Implementer's Guide folgt (Komplexität I1)

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

Parameter (in)

ParameterBeschreibung
originStarting point from which to move ’offset’ bytes.
offsetOffset in bytes relative to ’origin’. Can be positive in case of k Beginning and kCurrent and negative in case of kCurrent and k End. In case of kCurrent, an offset of zero will not change the current position. In case of kEnd, an offset of zero will set the position to the end of the file.

Rückgabewert

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

Fehler

FehlercodeBeschreibung
PerErrc::kInvalidPositionrollback_semantics Returned if the resulting position is lower than zero or beyond the end of the file.

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

Record
AUTOSAR/AP/record/SWS_PER_00164
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00164@rel:R25-11#66a724ef
Content hash
66a724ef
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00164
Status: valid/unmigrated Version: rel:R25-11#ccd6513c 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_00164@rel:R25-11#ccd6513c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#66a724ef2026-09-30
  • R19-11rel:R19-11#73c3e07f2026-10-14
  • R20-11rel:R20-11#4c68dcef2026-10-14
  • R21-11rel:R21-11#824627d92026-10-14
  • R22-11rel:R22-11#838d6e5d2026-10-14
  • R23-11rel:R23-11#129626382026-10-14
  • R24-11rel:R24-11#8245580d2026-10-14
  • R25-11rel:R25-11#ccd6513c2026-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

function SetPosition [SWS_PER_00163] Upstream: RS_PER_00001, RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_ AP_00121, RS_AP_00135, RS_AP_00139, RS_AP_00159

ara::core::Result< void > SetPosition (std::uint64_t position) noexcept;

Sets the current position relative to the beginning of the file. In case of an error, the current position is not changed.

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

Parameter (in)

ParameterBeschreibung
positionCurrent position in the file in bytes from the beginning of the 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::kInvalidPositionrollback_semantics Returned if the given position is beyond the end of the file.

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

Record
AUTOSAR/AP/record/SWS_PER_00163
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00163@rel:R25-11#758322e0
Content hash
758322e0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00163
Status: valid/unmigrated Version: rel:R25-11#70153a82 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_00163@rel:R25-11#70153a82
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#758322e02026-09-30
  • R19-11rel:R19-11#1942368c2026-10-14
  • R20-11rel:R20-11#84c129222026-10-14
  • R21-11rel:R21-11#3b14f9b62026-10-14
  • R22-11rel:R22-11#932ec6d22026-10-14
  • R23-11rel:R23-11#f53627272026-10-14
  • R24-11rel:R24-11#b6f855cb2026-10-14
  • R25-11rel:R25-11#70153a822026-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

function operator= [SWS_PER_00591] Upstream: RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00145, RS_AP_00159

FileAccessor & operator= (FileAccessor &&ra)=delete;

The move assignment operator for FileAccessor shall not be used.

Header-Datei#include "ara/per/file_accessor.h"
Scopeclass ara::per::FileAccessor

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

Record
AUTOSAR/AP/record/SWS_PER_00591
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00591@rel:R25-11#74c045de
Content hash
74c045de
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00591
Status: valid/unmigrated Version: rel:R25-11#74c045de Versionshistorie & Revisions (1 transition)
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_00591@rel:R25-11#74c045de
Point-in-Time History:
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

function operator= [SWS_PER_00593] Upstream: RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_AP_00145

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

The copy assignment operator for FileAccessor shall not be used.

Header-Datei#include "ara/per/file_accessor.h"
Scopeclass ara::per::FileAccessor

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

Record
AUTOSAR/AP/record/SWS_PER_00593
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00593@rel:R25-11#01ebcde1
Content hash
01ebcde1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00593
Status: valid/unmigrated Version: rel:R25-11#01ebcde1 Versionshistorie & Revisions (1 transition)
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_00593@rel:R25-11#01ebcde1
Point-in-Time History:
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

function ~FileAccessor [SWS_PER_00594] Upstream: RS_PER_00004, RS_AP_00120, RS_AP_00129, RS_AP_00134, RS_AP_00145, RS_AP_00159

virtual ~FileAccessor () noexcept;

Destructor for FileAccessor.

Header-Datei#include "ara/per/file_accessor.h"
Scopeclass ara::per::FileAccessor
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_00594
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00594@rel:R25-11#f4cbf0b1
Content hash
f4cbf0b1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00594
Status: valid/unmigrated Version: rel:R25-11#f4cbf0b1 Versionshistorie & Revisions (1 transition)
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_00594@rel:R25-11#f4cbf0b1
Point-in-Time History:
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