DEENESPTFRRUARHIKOZHNL

class 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 GuideKI-GENERIERT

Kapselt ein SOVD-Diagnoseinhaltselement zusammen mit einem Schlüsselbezeichner für Lese- und Schreiboperationen.
KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 816c129f74ba Herkunft Offene Fragen (2)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Kapselt ein SOVD-Diagnoseinhaltselement zusammen mit einem Schlüsselbezeichner für Lese- und Schreiboperationen.

Die Klasse dient der Kapselung eines SOVD-Diagnoseinhaltselements zusammen mit einem eindeutigen Schlüsselbezeichner [SWS_DM_02375]. Sie wird vom Diagnostic Management bei Schreibzugriffen nach ASAM SOVD befüllt und an GenericDiagnosticSovdContent::Write weitergereicht [SWS_DM_02166]. Alle Elementfunktionen sind threadsicher und exceptionsicher spezifiziert, wobei fehlerhafte Zuweisungen über ara::core::Result mit DiagErrc::kInvalidArgument gemeldet werden [SWS_DM_02381].

Kontext

Die Klasse ara::diag::DiagnosticSovdContentElementDataWithKey dient innerhalb der Adaptive Platform als Datenkapsel für ein einzelnes Diagnose-Inhaltselement im Kontext von ASAM SOVD (Service-Oriented Vehicle Diagnostics) und ordnet einem Nutzdatenobjekt einen eindeutigen Schlüsselbezeichner zu [SWS_DM_02375]. SOVD-Daten werden über das Modellelement DiagnosticSovdContent strukturiert, welches sich aus mindestens einem DiagnosticSovdContentElement zusammensetzt AUTOSAR_AP_SWS_Diagnostics §7.3.3.3.2 „SOVD Data – Conversion“. Während Leseabfragen über GenericDiagnosticSovdContent::Read abgewickelt werden [SWS_DM_01432], interagiert die Klasse primär mit dem Diagnostic Management (DM) und der Serviceschnittstelle GenericDiagnosticSovdContent::Write, um strukturierte Schreibzugriffe auf Datenressourcen auszuführen [SWS_DM_01431], [SWS_DM_02166].

Lebenszyklus

Die Instanziierung und Zerstörung von ara::diag::DiagnosticSovdContentElementDataWithKey erfolgt unter Einhaltung des RAII-Prinzips. Der Destruktor sowie die zugehörigen Kopier- und Verschiebeoperationen (Move-/Copy-Konstruktoren und Zuweisungsoperatoren) sind explizit als noexcept deklariert [SWS_DM_02376]. Bezüglich des Besitzverhältnisses übernimmt die Klasse den Nutzdateninhalt per Wertübergabe in SetContent [SWS_DM_02381], während der Schlüsselname als ara::core::StringView übergeben wird [SWS_DM_02378]. Das Diagnostic Management dürfte intern sicherstellen, dass die zugrunde liegende Zeichenkette während des Zugriffs gültig bleibt oder in internen Speicher kopiert wird. Frage Q-f00f62f43629a773 (offen) Alle Elementfunktionen der Klasse sind laut Spezifikation threadsicher und exceptionsicher ausgelegt [SWS_DM_02376], [SWS_DM_02377], [SWS_DM_02378], [SWS_DM_02379], [SWS_DM_02380], [SWS_DM_02381].

Nutzungspfad

Der typische Nutzungspfad tritt beim Empfang einer SOVD-Schreibanforderung für eine Entitäts-Datenressource auf [SWS_DM_01431]. Das Diagnostic Management erzeugt oder nutzt eine Instanz und setzt zunächst mit SetName den shortName des jeweiligen DiagnosticSovdContentElement [SWS_DM_02166], [SWS_DM_02378]. Anschließend wird der eingehende Wert anhand der Konvertierungsregeln transformiert AUTOSAR_AP_SWS_Diagnostics §7.3.3.3.2 „SOVD Data – Conversion“ und über SetContent zugewiesen [SWS_DM_02166], [SWS_DM_02381]. Die auf diese Weise aggregierten Daten werden danach an GenericDiagnosticSovdContent::Write weitergereicht [SWS_DM_02166]. Konsumenten können den Schlüsselnamen über GetName abfragen [SWS_DM_02377] und den Dateninhalt über die konstante oder nicht-konstante Überladung von GetContent inspizieren bzw. manipulieren [SWS_DM_02379], [SWS_DM_02380].

Ablauf beim Schreiben von SOVD-Daten über DiagnosticSovdContentElementDataWithKeySOVD-ClientDiagnostic ManagementDiagnosticSovdContentElementDataWithKeyGenericDiagnosticSovdContentSOVD Write a data resourceSetName(shortName)SetContent(content)ara::core::Result<void>Write(DiagnosticSovdContentData)GetName() / GetContent()Schlüsselname & DatenreferenzSchreibstatusSOVD-Antwort

Sequenzdiagramm: Aufruf- und Datenfluss bei der Verarbeitung einer SOVD-Schreibanforderung unter Verwendung von DiagnosticSovdContentElementDataWithKey. Quellen: [SWS_DM_01431], [SWS_DM_02166], [SWS_DM_02378], [SWS_DM_02381].

Fehlerszenarien

Im Fehlerfall verzichtet die Klasse auf C++-Exceptions und meldet Fehlschläge stattdessen über den Rückgabetyp ara::core::Result<void> von SetContent [SWS_DM_02381]. Schlägt das Setzen des Inhalts fehl – beispielsweise wenn der übergebene Inhaltstyp nicht zur Zielstruktur passt oder ungültig ist –, wird der Fehlercode DiagErrc::kInvalidArgument zurückgegeben [SWS_DM_02381]. Der Aufrufer muss das zurückgegebene Ergebnis prüfen, bevor das Objekt an GenericDiagnosticSovdContent::Write übergeben wird [SWS_DM_02166].

Dieser Klassen-Leitfaden basiert auf der Spezifikation AUTOSAR AP Release R25-11. Alle Aussagen sind durch SWS-Anforderungen und Dokumentstellen der Schnittstelle ara::diag belegt.

Mitgliederkarte

Klassendiagramm

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

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

Detailansicht

Wähle in der Gliederung einen Eintrag aus.

Konstruktoren und Destruktor

Declare the Dtor and move/copy constructors/assignments .

Methoden

GetContent function 2

Gets the associated content.

Überladungen GetContent 2
auto GetContent () noexcept -> DiagnosticSovdContentElementData &; SWS_DM_02379
auto GetContent () const noexcept -> DiagnosticSovdContentElementData const &; SWS_DM_02380
GetName function

Gets the name of the key.

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

Sets the associated content.

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

Sets the name of the key.

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

Dokumentation der Methoden

function 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#9baa2f7d
Content hash
9baa2f7d
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

function 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#95b7050b
Content hash
95b7050b
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

function 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#70bc13b7
Content hash
70bc13b7
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

function 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#019a85d8
Content hash
019a85d8
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

function 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#f02ced67
Content hash
f02ced67
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

function ~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#c6febcde
Content hash
c6febcde
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