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

उपयोगकर्ता गाइडएआई जनित

अनुकूली पर्सिस्टेंसी मॉड्यूल में किसी फ़ाइल की उत्पत्ति और परिवर्तनों के बारे में टाइमस्टैम्प और स्थिति जानकारी को बंडल करता है।
एआई-जनित असत्यापित मॉडल: 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 लौटानाटाइमस्टैम्प और स्थिति फ़ील्ड की जांच करें

अनुक्रम आरेख (Sequence diagram): GetFileInfo के माध्यम से फ़ाइल मेटाडेटा प्राप्त करने और मूल्यांकन करने का विशिष्ट वर्कफ़्लो। स्रोत: [SWS_PER_00441], [SWS_PER_00442], [SWS_PER_00443], [SWS_PER_00444], [SWS_PER_00445]।

मूल्यांकन के दौरान, एप्लिकेशन टाइमस्टैम्प्स को पढ़ता है:

  • creationTime 01.01.1970 UTC (Unix-युग) से नैनोसेकंड में फ़ाइल निर्माण के समय को दर्शाता है [SWS_PER_00441]।
  • modificationTime उसी नैनोसेकंड प्रारूप में सामग्री के अंतिम संशोधन का समय निर्दिष्ट करता है [SWS_PER_00442]।
  • accessTime 1970-01-01 UTC से नैनोसेकंड में अंतिम रीड या राइट एक्सेस के समय को दस्तावेज़ित करता है [SWS_PER_00443]।

समय-आधारित वर्गीकरण के अतिरिक्त, एप्लिकेशन एट्रिब्यूट्स fileCreationState [SWS_PER_00444] और fileModificationState [SWS_PER_00445] की जाँच करता है। ये एन्यूमिरेशन मान इंगित करते हैं कि फ़ाइल किन परिस्थितियों में और किसके द्वारा बनाई या संशोधित की गई थी। यह एप्लिकेशन को फ़ाइल सामग्री पर आगे के रीड या राइट ऑपरेशंस निष्पादित करने से पहले यह सत्यापित करने की अनुमति देता है कि क्या फ़ाइल सामान्य रूप से उत्पादक संचालन (production operation) में, पुनर्प्राप्ति प्रक्रिया (recovery process) के दौरान या किसी अपडेट प्रक्रिया के माध्यम से बनाई गई थी।

यह क्लास गाइड AI-सहायक द्वारा रिलीज़ R25-11 के लिए AUTOSAR विनिर्देश के आधार पर तैयार किया गया था।

सदस्य मानचित्र

क्लास आरेख

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#16ff132c
Content hash
16ff132c
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#87a56ab6
Content hash
87a56ab6
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#bb4a2779
Content hash
bb4a2779
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#7ffd32f1
Content hash
7ffd32f1
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#e8934770
Content hash
e8934770
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