DEENESPTFRRUARHIKOZHNL

क्लास ara::diag::DiagnosticSovdContentElementDataWithKey

[SWS_DM_02375] Upstream: RS_Diag_04260

class DiagnosticSovdContentElementDataWithKey {...};

A DiagnosticSovdContentElementData with associated key.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Forwarding-Header#include "ara/diag/diag_fwd.h"
Scopenamespace ara::diag

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

पठन और लेखन संचालन के लिए एक कुंजी पहचानकर्ता के साथ एक SOVD नैदानिक सामग्री तत्व को इनकैप्सुलेट करता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 816c129f74ba उद्गम खुले प्रश्न (2)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

पठन और लेखन संचालन के लिए एक कुंजी पहचानकर्ता के साथ एक SOVD नैदानिक सामग्री तत्व को इनकैप्सुलेट करता है।

यह वर्ग एक अद्वितीय कुंजी पहचानकर्ता [SWS_DM_02375] के साथ एक SOVD नैदानिक सामग्री तत्व को इनकैप्सुलेट करने का कार्य करता है। इसे ASAM SOVD के अनुसार लेखन एक्सेस के दौरान Diagnostic Management द्वारा भरा जाता है और GenericDiagnosticSovdContent::Write को अग्रेषित किया जाता है [SWS_DM_02166]। सभी सदस्य फलन थ्रेड-सुरक्षित और अपवाद-सुरक्षित निर्दिष्ट हैं, जहाँ त्रुटिपूर्ण असाइनमेंट की रिपोर्ट DiagErrc::kInvalidArgument के साथ ara::core::Result के माध्यम से की जाती है [SWS_DM_02381]।

संदर्भ

वर्ग ara::diag::DiagnosticSovdContentElementDataWithKey Adaptive Platform के भीतर ASAM SOVD (Service-Oriented Vehicle Diagnostics) के संदर्भ में एकल डायग्नोस्टिक्स सामग्री तत्व के लिए डेटा कैप्सूल के रूप में कार्य करता है और पेलोड ऑब्जेक्ट को एक अद्वितीय कुंजी पहचानकर्ता निर्दिष्ट करता है [SWS_DM_02375]। SOVD डेटा को मॉडल तत्व DiagnosticSovdContent के माध्यम से संरचित किया जाता है, जो कम से कम एक DiagnosticSovdContentElement से बना होता है AUTOSAR_AP_SWS_Diagnostics §7.3.3.3.2 “SOVD Data – Conversion”। जबकि पठन क्वेरीज़ को GenericDiagnosticSovdContent::Read के माध्यम से प्रबंधित किया जाता है [SWS_DM_01432], यह वर्ग डेटा संसाधनों पर संरचित लेखन एक्सेस निष्पादित करने के लिए मुख्य रूप से Diagnostic Management (DM) और सेवा इंटरफ़ेस GenericDiagnosticSovdContent::Write के साथ इंटरैक्ट करता है [SWS_DM_01431], [SWS_DM_02166]।

जीवनचक्र

ara::diag::DiagnosticSovdContentElementDataWithKey का इंस्टेंसिएशन और विनाश RAII सिद्धांत के अनुपालन में होता है। डिस्ट्रक्टर और संबंधित कॉपी और मूव ऑपरेशन (Move/Copy कंस्ट्रक्टर और असाइनमेंट ऑपरेटर) स्पष्ट रूप से noexcept के रूप में घोषित किए गए हैं [SWS_DM_02376]। स्वामित्व संबंधों के संबंध में, वर्ग SetContent में मान द्वारा पास करके पेलोड सामग्री को संभालता है [SWS_DM_02381], जबकि कुंजी नाम को ara::core::StringView के रूप में पास किया जाता है [SWS_DM_02378]। Diagnostic Management संभवतः आंतरिक रूप से यह सुनिश्चित करेगा कि एक्सेस के दौरान अंतर्निहित स्ट्रिंग मान्य रहे या आंतरिक मेमोरी में कॉपी हो जाए। प्रश्न Q-f00f62f43629a773 (खुला) विनिर्देश के अनुसार वर्ग के सभी सदस्य फलन थ्रेड-सुरक्षित और अपवाद-सुरक्षित डिज़ाइन किए गए हैं [SWS_DM_02376], [SWS_DM_02377], [SWS_DM_02378], [SWS_DM_02379], [SWS_DM_02380], [SWS_DM_02381]।

उपयोग पथ

विशिष्ट उपयोग पथ किसी निकाय डेटा संसाधन के लिए SOVD लेखन अनुरोध प्राप्त होने पर होता है [SWS_DM_01431]। Diagnostic Management एक इंस्टेंस बनाता है या उसका उपयोग करता है और पहले संबंधित DiagnosticSovdContentElement के shortName को SetName के साथ सेट करता है [SWS_DM_02166], [SWS_DM_02378]। फिर आने वाले मान को रूपांतरण नियमों के आधार पर रूपांतरित किया जाता है AUTOSAR_AP_SWS_Diagnostics §7.3.3.3.2 “SOVD Data – Conversion” और SetContent के माध्यम से असाइन किया जाता है [SWS_DM_02166], [SWS_DM_02381]। इस प्रकार एकत्रित डेटा को फिर GenericDiagnosticSovdContent::Write पर अग्रेषित किया जाता है [SWS_DM_02166]। उपभोक्ता GetName के माध्यम से कुंजी नाम की जाँच कर सकते हैं [SWS_DM_02377] और GetContent के स्थिर या गैर-स्थिर ओवरलोड के माध्यम से डेटा सामग्री का निरीक्षण या हेरफेर कर सकते हैं [SWS_DM_02379], [SWS_DM_02380]।

DiagnosticSovdContentElementDataWithKey के माध्यम से SOVD डेटा लिखते समय प्रवाहSOVD-Clientनिदान प्रबंधनDiagnosticSovdContentElementDataWithKeyGenericDiagnosticSovdContentSOVD Write a data resourceSetName(shortName)SetContent(content)ara::core::Result<void>Write(DiagnosticSovdContentData)GetName() / GetContent()कुंजी नाम और डेटा संदर्भSchreibstatusSOVD-Antwort

अनुक्रम आरेख: DiagnosticSovdContentElementDataWithKey का उपयोग करके SOVD लेखन अनुरोध को संसाधित करते समय कॉल और डेटा प्रवाह। स्रोत: [SWS_DM_01431], [SWS_DM_02166], [SWS_DM_02378], [SWS_DM_02381]।

त्रुटि परिदृश्य

त्रुटि के मामले में, वर्ग C++ अपवादों से बचता है और इसके बजाय SetContent के रिटर्न प्रकार ara::core::Result<void> के माध्यम से विफलताओं की रिपोर्ट करता है [SWS_DM_02381]। यदि सामग्री सेट करना विफल रहता है - उदाहरण के लिए यदि पास किया गया सामग्री प्रकार लक्ष्य संरचना से मेल नहीं खाता है या अमान्य है -, तो त्रुटि कोड DiagErrc::kInvalidArgument लौटाया जाता है [SWS_DM_02381]। ऑब्जेक्ट को GenericDiagnosticSovdContent::Write में पास करने से पहले कॉलर को लौटाए गए परिणाम की जाँच करनी चाहिए [SWS_DM_02166]।

यह वर्ग गाइड विनिर्देश AUTOSAR AP Release R25-11 पर आधारित है। सभी कथन ara::diag इंटरफ़ेस की SWS आवश्यकताओं और दस्तावेज़ अंशों द्वारा समर्थित हैं।

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

कंस्ट्रक्टर और डिस्ट्रक्टर

1

क्लास आरेख

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

G nara__diag__DiagnosticSovdContentElementDataWithKey42 DiagnosticSovdContentElementDataWithKey + ~DiagnosticSovdContentElementDataWithKey() + GetContent() + GetName() + SetContent() + SetName()

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

कंस्ट्रक्टर और डिस्ट्रक्टर

Declare the Dtor and move/copy constructors/assignments .

मेथड

GetContent फ़ंक्शन 2

Gets the associated content.

ओवरलोड GetContent 2
auto GetContent () noexcept -> DiagnosticSovdContentElementData &; SWS_DM_02379
auto GetContent () const noexcept -> DiagnosticSovdContentElementData const &; SWS_DM_02380
GetName फ़ंक्शन

Gets the name of the key.

auto GetName () const noexcept -> ara::core::StringView;
SetContent फ़ंक्शन

Sets the associated content.

auto SetContent (DiagnosticSovdContentElementData content) noexcept -> ara::core::Result< void >;
SetName फ़ंक्शन

Sets the name of the key.

void SetName (ara::core::StringView name) noexcept;

मेथड का प्रलेखन

फ़ंक्शन GetContent [SWS_DM_02379] Upstream: RS_Diag_04260

auto GetContent () noexcept -> DiagnosticSovdContentElementData &;

Gets the associated content.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdContentElementDataWithKey
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
DiagnosticSovdContentElementDataReference to the associated content

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

Record
AUTOSAR/AP/record/SWS_DM_02379
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02379@rel:R25-11#12eb37f7
Content hash
12eb37f7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02379
Status: valid/unmigrated Version: rel:R25-11#9baa2f7d 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_DM_02379@rel:R25-11#9baa2f7d
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

फ़ंक्शन GetContent [SWS_DM_02380] Upstream: RS_Diag_04260

auto GetContent () const noexcept -> DiagnosticSovdContentElementData const &;

Gets the associated content.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdContentElementDataWithKey
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
DiagnosticSovdContentReference to the associated content ElementData const

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

Record
AUTOSAR/AP/record/SWS_DM_02380
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02380@rel:R25-11#5a24b0fa
Content hash
5a24b0fa
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02380
Status: valid/unmigrated Version: rel:R25-11#95b7050b 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_DM_02380@rel:R25-11#95b7050b
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

फ़ंक्शन GetName [SWS_DM_02377] Upstream: RS_Diag_04260

auto GetName () const noexcept -> ara::core::StringView;

Gets the name of the key.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdContentElementDataWithKey
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::StringViewThe name of the key

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

Record
AUTOSAR/AP/record/SWS_DM_02377
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02377@rel:R25-11#8d81cadb
Content hash
8d81cadb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02377
Status: valid/unmigrated Version: rel:R25-11#70bc13b7 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_DM_02377@rel:R25-11#70bc13b7
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

फ़ंक्शन SetContent [SWS_DM_02381] Upstream: RS_Diag_04260

auto SetContent (DiagnosticSovdContentElementData content) noexcept -> ara::core::Result< void >;

Sets the associated content.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdContentElementDataWithKey
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
contentThe content to set

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or error if the content is of type ContentData

Fehler

FehlercodeBeschreibung
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing

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

Record
AUTOSAR/AP/record/SWS_DM_02381
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02381@rel:R25-11#eaf08647
Content hash
eaf08647
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02381
Status: valid/unmigrated Version: rel:R25-11#019a85d8 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_DM_02381@rel:R25-11#019a85d8
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

फ़ंक्शन SetName [SWS_DM_02378] Upstream: RS_Diag_04260

void SetName (ara::core::StringView name) noexcept;

Sets the name of the key.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdContentElementDataWithKey
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
nameThe name of the key

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_DM_02378
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02378@rel:R25-11#9585bed1
Content hash
9585bed1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02378
Status: valid/unmigrated Version: rel:R25-11#f02ced67 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_DM_02378@rel:R25-11#f02ced67
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

फ़ंक्शन ~DiagnosticSovdContentElementDataWithKey [SWS_DM_02376] Upstream: RS_Diag_04260

~DiagnosticSovdContentElementDataWithKey () noexcept;

Declare the Dtor and move/copy constructors/assignments .

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdContentElementDataWithKey
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

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

Record
AUTOSAR/AP/record/SWS_DM_02376
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02376@rel:R25-11#ac375f8d
Content hash
ac375f8d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02376
Status: valid/unmigrated Version: rel:R25-11#c6febcde 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_DM_02376@rel:R25-11#c6febcde
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