DEENESPTFRRUARHIKOZHNL

classe 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

Guia do utilizadorGERADO POR IA

Serve como classe base comum para consulta de tamanho de arquivo e navegação de posição para acessos a arquivos especializados.
GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: e1768b56d42c Procedência Perguntas em aberto (2)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

Serve como classe base comum para consulta de tamanho de arquivo e navegação de posição para acessos a arquivos especializados.

A classe ara::per::FileAccessor serve no módulo de persistência AUTOSAR como classe base comum para navegação de posição e verificação de tamanho de acessos ordenados a arquivos ([SWS_PER_00424]). Ela impede a instanciação direta, bem como operações de cópia, por meio de construtores excluídos ([SWS_PER_00589]). Em caso de especificações de posição inválidas, entra em ação uma semântica de rollback que protege a posição atual do ponteiro. Todas as operações são seguras contra exceções, mas exigem sincronização externa em caso de uso concorrente.

Contexto

A classe ara::per::FileAccessor serve no módulo de persistência (ara::per) da AUTOSAR Adaptive Platform como classe base abstrata comum para objetos de acesso a arquivos como ReadAccessor e WriteAccessor. Sua responsabilidade central é a interface uniforme para o gerenciamento de posição relacionado ao arquivo e a verificação de tamanho. A classe atua como instância de controle para o cursor de leitura e escrita dentro de um arquivo aberto, mas ela própria não contém métodos para a transferência de dados propriamente dita (como leitura ou escrita de bytes). A navegação ocorre de forma absoluta a partir do início do arquivo ou de forma relativa a pontos de referência definidos.

Ciclo de vida

A classe ara::per::FileAccessor não pode ser instanciada diretamente ou copiada livremente. O construtor padrão está excluído ([SWS_PER_00589]), assim como o construtor de cópia ([SWS_PER_00592]) e o operador de atribuição por cópia ([SWS_PER_00593]). As semânticas de movimentação também estão explicitamente impedidas: tanto o construtor de movimentação ([SWS_PER_00590]) quanto o operador de atribuição por movimentação ([SWS_PER_00591]) estão excluídos. Disso decorre a interpretação de que as instâncias são criadas e gerenciadas exclusivamente no contexto de subclasses concretas.

Para uma liberação segura, o destrutor virtual ~FileAccessor() ([SWS_PER_00594]) possibilita uma destruição polimórfica por meio de ponteiros de classe base. Quanto à concorrência, todas as funções-membro são especificadas como não seguras para threads ([SWS_PER_00162], [SWS_PER_00424], [SWS_PER_00107], [SWS_PER_00163], [SWS_PER_00164]). Acessos concorrentes de diferentes threads à mesma instância devem, portanto, ser sincronizados pela aplicação.

Caminho de utilização

O uso típico de FileAccessor abrange a consulta do tamanho do arquivo, a determinação da posição momentânea, bem como deslocamentos direcionados de posição para a preparação de acessos de leitura ou de escrita:

  • Consulta de tamanho: por meio de GetSize(), o tamanho atual do arquivo em bytes é determinado ([SWS_PER_00424]).
  • Consulta de posição: com GetPosition(), a aplicação consulta o deslocamento atual de bytes a partir do início do arquivo, que também pode estar exatamente no final do arquivo ([SWS_PER_00162]).
  • Posicionamento absoluto: SetPosition() define o cursor para um deslocamento absoluto a partir do início do arquivo ([SWS_PER_00163]).
  • Deslocamento relativo: MovePosition() desloca o cursor a partir de Origin::kBeginning, Origin::kCurrent ou Origin::kEnd por um deslocamento com sinal ([SWS_PER_00164]).
  • Verificação de fim de arquivo: o método IsEof() indica se a posição atual atingiu o final do arquivo ([SWS_PER_00107]).
Navegar e consultar a posição do arquivoAplicaçãoFileAccessorGetSize()Tamanho do arquivo (bytes)SetPosition(position)altposition <= tamanho do arquivoResult<void> (Erfolg)position > tamanho do arquivoResult com PerErrc::kInvalidPositionMovePosition(Origin::kCurrent, offset)Result<uint64_t> (neue Position)IsEof()bool (EOF-Status)

Diagrama de sequência: Sequência típica de consultas de posição e etapas de navegação, incluindo verificação de erros. Fontes: [SWS_PER_00424], [SWS_PER_00162], [SWS_PER_00163], [SWS_PER_00164], [SWS_PER_00107]

Cenários de erro

Todas as operações de FileAccessor são declaradas como seguras contra exceções (noexcept). Potenciais condições de erro em chamadas de navegação são retornadas por meio de ara::core::Result:

Se uma aplicação tentar direcionar para uma posição além do final do arquivo por meio de SetPosition(), a chamada falhará com o código de erro PerErrc::kInvalidPosition ([SWS_PER_00163]). O mesmo se aplica a MovePosition() caso a posição de destino calculada resulte em um valor negativo ou esteja após o final do arquivo ([SWS_PER_00164]). Para ambos os métodos, prescreve-se obrigatoriamente uma semântica estrita de rollback: se ocorrer um erro, a posição anteriormente válida do arquivo permanece inalterada ([SWS_PER_00163], [SWS_PER_00164]).

Os métodos de consulta GetSize() ([SWS_PER_00424]), GetPosition() ([SWS_PER_00162]) e IsEof() ([SWS_PER_00107]) retornam diretamente tipos de dados primitivos e não geram códigos de erro específicos.

Este texto foi redigido por uma IA com base na especificação AUTOSAR R25-11. Ele complementa a documentação normativa com uma visão geral da abstração de navegação.

Mapa de membros

Diagrama de classes

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

Vista de detalhes

Selecione uma entrada no índice.

Construtores e destrutor

FileAccessor função 3

The default constructor for FileAccessor shall not be used.

Sobrecargas FileAccessor 3
FileAccessor ()=delete; SWS_PER_00589
FileAccessor (FileAccessor &&ra)=delete; SWS_PER_00590
FileAccessor (const FileAccessor &)=delete; SWS_PER_00592
~FileAccessor função

Destructor for FileAccessor.

virtual ~FileAccessor () noexcept;

Métodos

GetPosition função

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 função

Returns the current size of a file in bytes.

std::uint64_t GetSize () const noexcept;
IsEof função

Checks if the current position is at end of file.

bool IsEof () const noexcept;
MovePosition função

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 função

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;

Operadores

operator= função 2

The move assignment operator for FileAccessor shall not be used.

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

Documentação dos métodos

função 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#43dc2107
Content hash
43dc2107
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

função 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#5d23f0f4
Content hash
5d23f0f4
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

função 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#f3ce3ddd
Content hash
f3ce3ddd
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

função 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#73de120b
Content hash
73de120b
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

função 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#09b8d89d
Content hash
09b8d89d
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

função 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#8d395919
Content hash
8d395919
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

função 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.

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 436bd0736ae4 Procedência
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

usar

O método síncrono MovePosition da classe ara::per::FileAccessor desloca a posição atual do ficheiro relativamente a um ponto de referência definido [SWS_PER_00164]. A função está declarada como noexcept [SWS_PER_00164]. Como parâmetros, recebe o ponto de partida origin do tipo Origin bem como o deslocamento de bytes com sinal offset [SWS_PER_00164]. Em caso de execução bem-sucedida, o método devolve um ara::core::Result com a posição de byte absoluta resultante a partir do início do ficheiro [SWS_PER_00164].

Interação e valores de parâmetros

O ponto de referência origin é determinado pela enumeração Origin [SWS_PER_00146]:

  • Origin::kBeginning: deslocamento a partir do início do ficheiro; offset pode, neste caso, ser positivo [SWS_PER_00164], [SWS_PER_00146].
  • Origin::kCurrent: deslocamento a partir da posição atual do ficheiro; offset pode ser positivo ou negativo, sendo que um valor de zero não altera a posição [SWS_PER_00164], [SWS_PER_00146].
  • Origin::kEnd: deslocamento relativamente ao fim do ficheiro; offset pode ser negativo, enquanto um desvio de zero define a posição exatamente no fim do ficheiro [SWS_PER_00164], [SWS_PER_00146].

Tratamento de erros

Em caso de erro, a posição anterior do ficheiro não é alterada através de uma semântica de rollback [SWS_PER_00164]. Se o ponto de destino calculado resultar num valor inferior a zero ou se este se situar além do fim do ficheiro, é devolvido o código de erro PerErrc::kInvalidPosition [SWS_PER_00164]. Além disso, o resultado pode conter erros específicos do fabricante [SWS_PER_00164].

Simultaneidade e restrições

O método está especificado como exception safe [SWS_PER_00164]. Uma vez que a implementação está classificada como not thread-safe, acessos paralelos à mesma instância de FileAccessor têm de ser sincronizados do lado do chamador [SWS_PER_00164].

Este texto foi criado por um sistema de IA e com curadoria por autodocs.

Guia do implementador em breve (complexidade 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#0ad6fea4
Content hash
0ad6fea4
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

função 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#401206c2
Content hash
401206c2
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

função 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#63e0a83e
Content hash
63e0a83e
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

função 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#5e8ffe55
Content hash
5e8ffe55
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

função ~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#01212757
Content hash
01212757
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