function 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].
Die statische Fabrikmethode ara::core::InstanceSpecifier::Create erzeugt synchron eine neue Instanz von ara::core::InstanceSpecifier anhand der Syntaxregeln aus [SWS_CORE_10200] und [SWS_CORE_10203] gemäß [SWS_CORE_08032]. Als Parameter wird qualifiedShortName als ara::core::StringView übergeben, der den modellbasierten Pfad repräsentiert [SWS_CORE_08032].
Rückgabewert und Fehlerbehandlung
Der Aufruf liefert ein ara::core::Result<InstanceSpecifier> zurück, das im Erfolgsfall das syntaktisch valide Objekt enthält [SWS_CORE_08032]. Schlägt das Erzeugen fehl, enthält das Result-Objekt einen Fehlercode aus CoreErrc, der über [SWS_CORE_05290] der ara::core::CoreErrorDomain zugeordnet ist:
CoreErrc::kInvalidMetaModelShortname: Tritt auf, wenn Pfadelemente inqualifiedShortNamefehlen oder unzulässige Zeichen beinhalten [SWS_CORE_08032].CoreErrc::kInvalidMetaModelPath: Wird zurückgegeben, fallsqualifiedShortNamekeinen gültigen Pfad zu einem Modellelement beschreibt [SWS_CORE_08032].
Nebenläufigkeit und Sicherheit
Die Funktion ist als noexcept deklariert und als ausnahmesicher (exception safe) sowie threadsicher (thread-safe) spezifiziert [SWS_CORE_08032]. Aufrufer können sie somit ohne externe Synchronisation nebenläufig aus mehreren Ausführungskontexten verwenden. Da sie ein Result zurückgibt, dürfte sie für defensive Validierungen von Modellpfaden zur Laufzeit ohne Ausnahmebehandlung vorgesehen sein. Frage Q-7cfe36e0657a0008 (offen)
Dieser Text wurde von einer KI erstellt. Er dient als Orientierung und ersetzt nicht das Studium der referenzierten AUTOSAR-Spezifikationen.
| 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#0c0f55ea- Content hash
0c0f55ea- 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-medium· 2026-10-13