फ़ंक्शन Create [SWS_CORE_08032] Upstream: RS_AP_00137, RS_AP_00136
static ara::core::Result< InstanceSpecifier > Create ( ara::core::StringView qualifiedShortName) noexcept;
Create a new instance of this class ara::core::InstanceSpecifier, according to the syntax rules given by [SWS_CORE_10200] and [SWS_CORE_10203].
स्टैटिक फ़ैक्टरी मेथड ara::core::InstanceSpecifier::Create [SWS_CORE_08032] के अनुसार [SWS_CORE_10200] और [SWS_CORE_10203] के सिंटैक्स नियमों के आधार पर ara::core::InstanceSpecifier का एक नया इंस्टेंस सिंक्रोनस रूप से बनाती है। पैरामीटर के रूप में, qualifiedShortName को ara::core::StringView के रूप में पास किया जाता है, जो मॉडल-आधारित पाथ का प्रतिनिधित्व करता है [SWS_CORE_08032]।
रिटर्न मान और त्रुटि प्रबंधन
कॉल एक ara::core::Result<InstanceSpecifier> लौटाती है, जिसमें सफलता की स्थिति में सिंटैक्टिक रूप से मान्य ऑब्जेक्ट होता है [SWS_CORE_08032]। यदि निर्माण विफल हो जाता है, तो Result ऑब्जेक्ट में CoreErrc से एक त्रुटि कोड होता है, जो [SWS_CORE_05290] के माध्यम से ara::core::CoreErrorDomain से संबद्ध होता है:
CoreErrc::kInvalidMetaModelShortname: तब घटित होता है जबqualifiedShortNameमें पाथ तत्व गायब हों या उनमें अमान्य वर्ण शामिल हों [SWS_CORE_08032]।CoreErrc::kInvalidMetaModelPath: तब लौटाया जाता है यदिqualifiedShortNameकिसी मॉडल तत्व के लिए मान्य पाथ का वर्णन नहीं करता है [SWS_CORE_08032]।
कनकंरेंसी और सुरक्षा
फ़ंक्शन को noexcept के रूप में घोषित किया गया है और अपवाद-सुरक्षित (exception safe) तथा थ्रेड-सुरक्षित (thread-safe) के रूप में निर्दिष्ट किया गया है [SWS_CORE_08032]। इसलिए कॉलर्स बाहरी सिंक्रोनाइज़ेशन के बिना एकाधिक निष्पादन संदर्भों से समवर्ती रूप से इसका उपयोग कर सकते हैं। चूँकि यह एक Result लौटाता है, इसलिए संभवतः इसे रनटाइम पर अपवाद प्रबंधन के बिना मॉडल पाथ के रक्षात्मक सत्यापन के लिए डिज़ाइन किया गया है। प्रश्न Q-7cfe36e0657a0008 (खुला)
यह पाठ एक AI द्वारा तैयार किया गया था। यह मार्गदर्शन के रूप में कार्य करता है और संदर्भित AUTOSAR विनिर्देशों के अध्ययन का विकल्प नहीं है।
| Header-Datei | #include "ara/core/instance_specifier.h" |
|---|---|
| Scope | class ara::core::InstanceSpecifier |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| qualifiedShortName | string representation of a valid |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result<InstanceSpecifier > | a Result, containing either a syntactically valid ara::core:: InstanceSpecifier, or an ErrorCode |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| CoreErrc::kInvalidMetaModelShortname | rollback_semantics if any of the path elements of qualifiedShortName is missing or contains invalid characters |
| CoreErrc::kInvalidMetaModelPath | rollback_semantics if the qualifiedShortName is not a valid path to a model element |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CORE_08032- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CORE_08032@rel:R25-11#1973844b- Content hash
1973844b- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_08032
Status: valid/unmigrated
Version: rel:R25-11#3ec7aee3
Versionshistorie & Revisions (1 transition, 8 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_CORE_08032@rel:R25-11#3ec7aee3
Recorded Revisions (8):
- R25-11
rel:R25-11#0c0f55ea2026-09-30 - R19-11
rel:R19-11#b273f0182026-10-14 - R20-11
rel:R20-11#725941852026-10-14 - R21-11
rel:R21-11#55f872cf2026-10-14 - R22-11
rel:R22-11#f8a1eb752026-10-14 - R23-11
rel:R23-11#3cfe23cb2026-10-14 - R24-11
rel:R24-11#e790477f2026-10-14 - R25-11
rel:R25-11#3ec7aee32026-10-14 active
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 · जर्मन मूल