DEENESPTFRRUARHIKOZHNL

구조체 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

사용자 가이드AI 생성

적응형 영속성 모듈에서 파일의 출처 및 변경에 대한 타임스탬프와 상태 정보를 묶어 제공합니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: c3acbafda95f 출처 열린 질문 (3)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

적응형 영속성 모듈에서 파일의 출처 및 변경에 대한 타임스탬프와 상태 정보를 묶어 제공합니다.

구조체 ara::per::FileInfo은 영속 파일의 메타데이터 컨테이너 역할을 하며 GetFileInfo에 의해 반환됩니다. 생성 [SWS_PER_00441], 수정 [SWS_PER_00442] 및 접근 [SWS_PER_00443]에 대한 나노초 단위의 UTC 기반 타임스탬프와 생성 [SWS_PER_00444] 및 최종 편집 [SWS_PER_00445]에 대한 상태 정보를 제공합니다. 수동적 데이터 타입으로서 애플리케이션의 값 시맨틱을 따르며 자체 스레드 동기화를 제공하지 않습니다.

컨텍스트

구조체 ara::per::FileInfo은 AUTOSAR Adaptive Platform의 per(Persistency) 모듈에서 관리 파일 메타데이터를 위한 구조화된 데이터 캐리어 역할을 합니다. 헤더 파일 ara/per/file_storage.h의 인터페이스를 통해 처리되는 파일 오퍼레이션에서 영속성 모듈은 관리 정보를 실제 파일 내용과 분리합니다. 이 구조체는 GetFileInfo 오퍼레이션의 결과로 제공되며 영속성 계층과 호출 애플리케이션 간의 데이터 전송 객체(Data Transfer Object) 기능을 수행합니다.

내용 측면에서 FileInfo은 정밀한 시계열 로그 데이터와 파일 생성 및 유지 관리에 대한 정성적 상태 정보라는 두 가지 범주의 속성을 통합합니다. 시간 정보에는 생성 시점 [SWS_PER_00441], 수정 시점 [SWS_PER_00442] 및 최종 접근 시점 [SWS_PER_00443]이 포함됩니다. 이러한 메타데이터는 파일이 어떻게 누구에 의해 생성되었는지[SWS_PER_00444] 그리고 마지막으로 어떻게 수정되었는지[SWS_PER_00445]를 설명하는 서술적 상태 특성에 의해 보완됩니다.

수명 주기

수동적 C++ 구조체(struct)로서 FileInfo은 독립적인 상태 로직이나 활성 런타임 수명 주기를 갖지 않습니다. 인스턴스화는 일반적으로 GetFileInfo 실행 중 영속성 구현 내에서 발생합니다. 이때 기본 파일 시스템에서 메타데이터를 읽어 구조체의 데이터 필드로 전송합니다. 애플리케이션으로의 전달은 값 복사로 이루어지거나 결과 타입에 래핑되어 이루어질 것으로 추정되며, 이에 따라 소유권과 수명 주기에 대한 책임이 호출 컴포넌트로 완전히 넘어갑니다. 질문 Q-f5a9cf72c47f805e (열림)

FileInfo 인스턴스의 수명은 애플리케이션이 변수를 선언한 유효 범위에 바인딩되며, 유효 범위를 벗어나면 구조체가 자동으로 해제됩니다. FileInfo은 순수 데이터 필드만 캡슐화하고 내부 동기화 메커니즘을 제공하지 않으므로 구조체가 스레드 안전하지 않습니다: 동일 인스턴스에 여러 스레드가 동시에 접근하는 경우 최소 하나의 접근이 쓰기 작업이라면 애플리케이션 측에서 명시적인 동기화가 필요할 것으로 추정됩니다. 질문 Q-139f5e8f58d3fe07 (열림)

사용 경로

FileInfo을 사용하는 일반적인 흐름에는 파일 스토리지 인터페이스를 통한 파일 정보 쿼리와 애플리케이션에 의한 후속 속성 평가가 포함됩니다. 애플리케이션은 대상 파일을 지정하여 GetFileInfo 호출을 통해 쿼리를 시작합니다. 성공적으로 반환된 후 모든 메타데이터를 공개 멤버 변수를 통해 직접 사용할 수 있습니다.

파일 메타데이터 검색 및 평가애플리케이션FileStorageFileInfoGetFileInfo(fileName)인스턴스 생성 및 필드 채우기FileInfo 반환타임스탬프 및 상태 필드 확인

시퀀스 다이어그램: GetFileInfo를 통한 파일 메타데이터 검색 및 평가의 일반적인 흐름. 출처: [SWS_PER_00441], [SWS_PER_00442], [SWS_PER_00443], [SWS_PER_00444], [SWS_PER_00445].

평가 시 애플리케이션은 타임스탬프를 읽습니다:

  • creationTime은 1970년 1월 1일 UTC(Unix epoch) 이후의 나노초 단위 파일 생성 시점을 나타냅니다[SWS_PER_00441].
  • modificationTime은 동일한 나노초 형식으로 최종 내용 변경 시점을 나타냅니다[SWS_PER_00442].
  • accessTime은 1970-01-01 UTC 이후의 나노초 단위로 마지막 읽기 또는 쓰기 접근 시점을 기록합니다[SWS_PER_00443].

시간적 분류 외에도 애플리케이션은 fileCreationState [SWS_PER_00444] 및 fileModificationState [SWS_PER_00445] 속성을 검사합니다. 이러한 열거형 값은 파일이 어떤 조건에서 누구에 의해 생성되거나 수정되었는지를 나타냅니다. 이를 통해 애플리케이션은 파일 내용에 대한 추가 읽기 또는 쓰기 오퍼레이션을 수행하기 전에 파일이 프로덕션 작동 중에 정상적으로 생성되었는지, 복구 프로세스 중에 생성되었는지, 또는 업데이트 절차에 의해 생성되었는지를 검증할 수 있습니다.

이 클래스 가이드는 릴리스 R25-11용 AUTOSAR 사양을 바탕으로 AI 어시스턴트에 의해 생성되었습니다.

멤버 맵

클래스 다이어그램

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

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

상세 보기

개요에서 항목을 선택하세요.

상수

accessTime 변수

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

std::uint64_t accessTime;

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;

상수 / 변수 문서

변수 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#402e6b1c
Content hash
402e6b1c
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

변수 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#6f44a10c
Content hash
6f44a10c
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

변수 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#d2192177
Content hash
d2192177
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

변수 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#403d9fe9
Content hash
403d9fe9
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

변수 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#8d535f20
Content hash
8d535f20
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