फ़ंक्शन Add [SWS_DM_02288] Upstream: RS_Diag_04260
auto Add (ara::core::StringView key, std::int64_t content_element) noexcept -> ara::core::Result< void >;
Adds an element with the specified key with signed integer as primitive value. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData
उपयोग
समकालिक फ़ंक्शन [SWS_DM_02288] निर्दिष्ट कुंजी key (ara::core::StringView) के तहत एक हस्ताक्षरित पूर्णांक मान (std::int64_t) को SOVD डेटा संरचना में सम्मिलित करता है। इसे क्लास ara::diag::DiagnosticSovdRecordContentElementDataView की एक मेथड के रूप में डिक्लेयर किया गया है और हेडर ara/diag/diagnostic_sovd_content_element_data.h के माध्यम से शामिल किया गया है।
पूर्वापेक्षाएँ और त्रुटि प्रबंधन
[SWS_DM_02288] के अनुसार, अंतर्निहित DiagnosticSovdContentElementData ऑब्जेक्ट RecordContentElementData या ContentData प्रकार का होना चाहिए, जबकि जोड़ा जाने वाला तत्व स्वयं एक ContentData नहीं हो सकता है। फ़ंक्शन को noexcept के रूप में परिभाषित किया गया है और यह एक ara::core::Result<void> लौटाता है। यदि ऑपरेशन विफल हो जाता है - उदाहरण के लिए क्योंकि लक्ष्य कंटेनर में एक असंगत प्रकार है या तत्व जोड़ा नहीं जा सकता है - तो परिणाम में एक त्रुटि कोड शामिल होता है; व्याख्या: यह आमतौर पर कुंजी टकराव (key collision) के मामले में भी होने की संभावना है। प्रश्न Q-524c832a794559b7 (खुला)
समवर्तीता और परस्पर क्रिया
निष्पादन को थ्रेड-सुरक्षित और एक्सेप्शन-सुरक्षित निर्दिष्ट किया गया है [SWS_DM_02288]। इंटरफ़ेस के भीतर अहस्ताक्षरित पूर्णांकों ([SWS_DM_02289]), फ़्लोटिंग-पॉइंट संख्याओं ([SWS_DM_02290]), बूलियन मानों ([SWS_DM_02291]), स्ट्रिंग्स ([SWS_DM_02292]) और साथ ही नेस्टेड डेटा तत्वों ([SWS_DM_02293]) के लिए समान-प्रकार के ओवरलोड मौजूद हैं। यही मेथड धारक क्लास (carrier class) DiagnosticSovdContentElementData पर भी प्रदान की जाती है ([SWS_DM_02368])।
यह उपयोग नोट स्वचालित रूप से तैयार किया गया था और AUTOSAR R25-11 विनिर्देश पर आधारित है।
इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)
| Header-Datei | #include "ara/diag/diagnostic_sovd_content_element_data.h" |
|---|---|
| Scope | class ara::diag::DiagnosticSovdRecordContentElementDataView |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| key | The key |
| content_element | The content element to add |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< void > | void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element cannot be added |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_02288- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_02288@rel:R25-11#4d4904fe- Content hash
4d4904fe- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02288
Status: valid/unmigrated
Version: rel:R25-11#904cfff5
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_02288@rel:R25-11#904cfff5
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · जर्मन मूल