DEENESPTFRRUARHIKOZHNL

struct ara::diag::GenericDataIdentifier::OperationOutput

[SWS_DM_00641] Upstream: RS_Diag_04169, RS_Diag_04172

struct OperationOutput {...};

Response data of positive respose message.

Header-Datei#include "ara/diag/generic_data_identifier.h"
Forwarding-Header#include "ara/diag/diag_fwd.h"
Scopeclass ara::diag::GenericDataIdentifier

User GuideAI-GENERATED

Serves as an output structure for payload of a positive diagnostic response for generic data identifiers.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 00159dc7defb Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Serves as an output structure for payload of a positive diagnostic response for generic data identifiers.

The data structure ara::diag::GenericDataIdentifier::OperationOutput encapsulates payload for positive response messages in the context of generic DID diagnostic operations ([SWS_DM_00641]). Upon an incoming diagnostic request, the application instantiates the structure and populates member responseData with the determined output data before passing it to Diagnostic Management ([SWS_DM_00631]). In doing so, the essential constraint applies that responseData must contain exclusively the pure payload and under no circumstances the actual Data Identifier. After transfer into the UDS response message, the lifecycle of the short-lived value object ends.

Context

The data structure ara::diag::GenericDataIdentifier::OperationOutput is part of the diag module in the AUTOSAR Adaptive Platform and is provided via header ara/diag/generic_data_identifier.h ([SWS_DM_00641], [SWS_DM_00631]). Within the diagnostic architecture, the structure acts as a specialized data container for the result data of a positive diagnostic response message regarding a generic data identifier (DID) (AUTOSAR_AP_SWS_Diagnostics §8.19.2 “Struct: OperationOutput”).

In the interaction of the participating architectural components, OperationOutput forms the link between the application-specific diagnostic service function and the central Diagnostic Management. While the application is responsible for reading and preparing payload, the diagnostic runtime system handles higher-level protocol processing toward the external diagnostic tester. To pass the response data, the structure declares the public member variable responseData of type ara::core::Vector<std::uint8_t> ([SWS_DM_00631], AUTOSAR_AP_SWS_Diagnostics §8.19.2.1.1 “responseData”). This byte vector transports the payload of the positive response message, whereby the data identifier itself must not be contained in the vector ([SWS_DM_00631]).

Lifecycle

As a lightweight data transfer struct without its own methods, ara::diag::GenericDataIdentifier::OperationOutput is subject to a simple, transient value lifecycle ([SWS_DM_00641]). Instantiation occurs on demand within the application-specific handler routine as soon as a corresponding read or query operation for a generic DID has been processed successfully. The contained vector responseData is populated with the requested diagnostic payload ([SWS_DM_00631]).

Ownership is strictly sequential: The creating application initially holds the instance locally and passes it to the diagnostic framework upon completion. The lifetime of the instance ends as soon as Diagnostic Management has incorporated payload into the outgoing diagnostic response message. The handover back to the runtime system presumably takes place in a resource-efficient manner via move semantics or packaged in an asynchronous container such as ara::core::Future or ara::core::Result. Question Q-6e8dadb21e01d4fb (open) The structure does not provide internal synchronization for concurrent access; however, because it is populated and passed transiently within the executing worker thread of the operation, interpretation: cross-thread protection is not required in regular operation.

Usage Path

The typical invocation sequence during the processing of a generic diagnostic data query is divided into the following steps:

  1. An external diagnostic tester initiates a query (for example, a UDS service for reading by data identifier) that is received by the Diagnostic Management of the vehicle.
  2. The diagnostic system delegates the read request to the responsible instance of ara::diag::GenericDataIdentifier of the application.
  3. The application determines the requested sensor data or internal parameters and instantiates ara::diag::GenericDataIdentifier::OperationOutput ([SWS_DM_00641]).
  4. The application assigns the determined bytes to vector responseData ([SWS_DM_00631]). In doing so, the DID value itself must not be stored in responseData (AUTOSAR_AP_SWS_Diagnostics §8.19.2.1.1 “responseData”).
  5. The populated instance is returned to Diagnostic Management, which prepends the DID, assembles the complete positive response message, and transmits it to the diagnostic tester.
Sequence of the provision of positive diagnostic dataDiagnosetesterDiagnostic ManagementApplicationDiagnoseanfrage (DID-Abfrage)Leseanforderung weiterleitenOperationOutput instanziierenPopulate responseData without DIDReturn OperationOutputDID voranstellen & positive Antwort bildenPositive UDS-Antwortnachricht

Sequence diagram: Processing sequence of a generic data query using OperationOutput. Sources: [SWS_DM_00641], [SWS_DM_00631], AUTOSAR_AP_SWS_Diagnostics §8.19.2 “Struct: OperationOutput”.

This class guide was generated automatically based on the AUTOSAR Adaptive Platform Release R25-11 specification.

UML class diagram

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

G nara__diag__GenericDataIdentifier__OperationOutput669 «struct» OperationOutput + responseData

Constants

responseData variable

Content of positive respose message (without DataIdentifier)

Documentation of constants / variables

variable responseData [SWS_DM_00631] Upstream: RS_AP_00137, RS_Diag_04169

ara::core::Vector<std::uint8_t> responseData;

Content of positive respose message (without DataIdentifier)

Header-Datei#include "ara/diag/generic_data_identifier.h"
Scopestruct ara::diag::GenericDataIdentifier::OperationOutput
SymbolresponseData
Typara::core::Vector< std::uint8_t >

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

Record
AUTOSAR/AP/record/SWS_DM_00631
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00631@rel:R25-11#b0f271fe
Content hash
b0f271fe
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00631
Status: valid/unmigrated Version: rel:R25-11#08f5ddb6 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_DM_00631@rel:R25-11#08f5ddb6
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#b0f271fe2026-09-30
  • R20-11rel:R20-11#45f2e5b92026-10-14
  • R21-11rel:R21-11#45f2e5b92026-10-14
  • R22-11rel:R22-11#843f570f2026-10-14
  • R23-11rel:R23-11#8c8c7ab82026-10-14
  • R24-11rel:R24-11#8c8c7ab82026-10-14
  • R25-11rel:R25-11#08f5ddb62026-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