DEENESPTFRRUARHIKOZHNL

klasse 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

User GuideAI-GEGENEREERD

Kapselt een SOVD-diagnose-inhoudselement in samen met een sleutel-identifier voor lees- en schrijfoperaties.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 816c129f74ba Herkomst Open vragen (2)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Kapselt een SOVD-diagnose-inhoudselement in samen met een sleutel-identifier voor lees- en schrijfoperaties.

De klasse dient voor het inkapselen van een SOVD-diagnose-inhoudselement samen met een unieke sleutel-identifier [SWS_DM_02375]. Zij wordt door Diagnostic Management bij schrijftoegang conform ASAM SOVD gevuld en doorgegeven aan GenericDiagnosticSovdContent::Write [SWS_DM_02166]. Alle memberfuncties zijn thread-safe en uitzonderingsveilig gespecificeerd, waarbij foutieve toewijzingen via ara::core::Result met DiagErrc::kInvalidArgument worden gemeld [SWS_DM_02381].

Context

De klasse ara::diag::DiagnosticSovdContentElementDataWithKey dient binnen het Adaptive Platform als datakapsel voor een afzonderlijk diagnose-inhoudselement in de context van ASAM SOVD (Service-Oriented Vehicle Diagnostics) en koppelt een unieke sleutel-identifier aan een payload-object [SWS_DM_02375]. SOVD-data worden gestructureerd via het modelelement DiagnosticSovdContent, dat is samengesteld uit ten minste één DiagnosticSovdContentElement AUTOSAR_AP_SWS_Diagnostics §7.3.3.3.2 “SOVD Data – Conversion”. Terwijl leesopvragingen via GenericDiagnosticSovdContent::Read worden afgehandeld [SWS_DM_01432], interacteert de klasse primair met Diagnostic Management (DM) en de service-interface GenericDiagnosticSovdContent::Write om gestructureerde schrijftoegang tot databronnen uit te voeren [SWS_DM_01431], [SWS_DM_02166].

Levenscyclus

De instantiëring en vernietiging van ara::diag::DiagnosticSovdContentElementDataWithKey vinden plaats met inachtneming van het RAII-principe. Zowel de destructor als de bijbehorende kopieer- en verplaatsoperaties (move-/copy-constructors en toewijzingsoperatoren) zijn expliciet als noexcept gedeclareerd [SWS_DM_02376]. Wat de eigendomsverhouding betreft, neemt de klasse de payload-inhoud over via doorgifte per waarde in SetContent [SWS_DM_02381], terwijl de sleutelnaam als ara::core::StringView wordt doorgegeven [SWS_DM_02378]. Diagnostic Management zal intern vermoedelijk waarborgen dat de onderliggende tekenreeks gedurende de toegang geldig blijft of naar intern geheugen wordt gekopieerd. Vraag Q-f00f62f43629a773 (open) Alle memberfuncties van de klasse zijn volgens de specificatie thread-safe en uitzonderingsveilig ontworpen [SWS_DM_02376], [SWS_DM_02377], [SWS_DM_02378], [SWS_DM_02379], [SWS_DM_02380], [SWS_DM_02381].

Gebruikspad

Het typische gebruikspad treedt op bij ontvangst van een SOVD-schrijfverzoek voor een entiteits-databron [SWS_DM_01431]. Diagnostic Management maakt of gebruikt een instantie en stelt eerst met SetName de shortName van het betreffende DiagnosticSovdContentElement in [SWS_DM_02166], [SWS_DM_02378]. Vervolgens wordt de binnenkomende waarde aan de hand van de conversieregels getransformeerd AUTOSAR_AP_SWS_Diagnostics §7.3.3.3.2 “SOVD Data – Conversion” en via SetContent toegewezen [SWS_DM_02166], [SWS_DM_02381]. De op deze wijze geaggregeerde data worden daarna doorgegeven aan GenericDiagnosticSovdContent::Write [SWS_DM_02166]. Afnemers kunnen de sleutelnaam via GetName opvragen [SWS_DM_02377] en de data-inhoud via de constante of niet-constante overload van GetContent inspecteren respectievelijk manipuleren [SWS_DM_02379], [SWS_DM_02380].

Verloop bij het schrijven van SOVD-gegevens via DiagnosticSovdContentElementDataWithKeySOVD-ClientDiagnostic ManagementDiagnosticSovdContentElementDataWithKeyGenericDiagnosticSovdContentSOVD Write a data resourceSetName(shortName)SetContent(content)ara::core::Result<void>Write(DiagnosticSovdContentData)GetName() / GetContent()Sleutelnaam & gegevensreferentieSchreibstatusSOVD-Antwort

Sequentiediagram: Aanroep- en datastroom bij de verwerking van een SOVD-schrijfverzoek met gebruik van DiagnosticSovdContentElementDataWithKey. Bronnen: [SWS_DM_01431], [SWS_DM_02166], [SWS_DM_02378], [SWS_DM_02381].

Foutscenario's

In geval van fouten maakt de klasse geen gebruik van C++-exceptions en meldt mislukkingen in plaats daarvan via het retourtype ara::core::Result<void> van SetContent [SWS_DM_02381]. Mislukt het instellen van de inhoud – bijvoorbeeld wanneer het doorgegeven inhoudstype niet past bij de doelstructuur of ongeldig is –, dan wordt de foutcode DiagErrc::kInvalidArgument geretourneerd [SWS_DM_02381]. De aanroeper moet het geretourneerde resultaat controleren voordat het object aan GenericDiagnosticSovdContent::Write wordt overgedragen [SWS_DM_02166].

Deze klassehandleiding is gebaseerd op de specificatie AUTOSAR AP Release R25-11. Alle beweringen zijn onderbouwd door SWS-eisen en documentpassages van de interface ara::diag.

Ledenkaart

Klassendiagram

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

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

Detailweergave

Kies een item in de inhoudsopgave.

Constructors en destructor

Declare the Dtor and move/copy constructors/assignments .

Methoden

GetContent functie 2

Gets the associated content.

Overloads GetContent 2
auto GetContent () noexcept -> DiagnosticSovdContentElementData &; SWS_DM_02379
auto GetContent () const noexcept -> DiagnosticSovdContentElementData const &; SWS_DM_02380
GetName functie

Gets the name of the key.

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

Sets the associated content.

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

Sets the name of the key.

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

Documentatie van de methoden

functie 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#080751ba
Content hash
080751ba
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

functie 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#293c0705
Content hash
293c0705
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

functie 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#d17f6861
Content hash
d17f6861
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

functie 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#0cf0459d
Content hash
0cf0459d
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

functie 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#5b027e1c
Content hash
5b027e1c
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

functie ~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#bf1dbfd1
Content hash
bf1dbfd1
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