functie 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].
De statische factory-methode ara::core::InstanceSpecifier::Create maakt synchroon een nieuwe instantie van ara::core::InstanceSpecifier aan aan de hand van de syntaxregels uit [SWS_CORE_10200] en [SWS_CORE_10203] volgens [SWS_CORE_08032]. Als parameter wordt qualifiedShortName als ara::core::StringView meegegeven, die het modelgebaseerde pad representeert [SWS_CORE_08032].
Retourwaarde en foutafhandeling
De aanroep levert een ara::core::Result<InstanceSpecifier> op, die in geval van succes het syntactisch geldige object bevat [SWS_CORE_08032]. Mislukt het aanmaken, dan bevat het Result-object een foutcode uit CoreErrc, die via [SWS_CORE_05290] aan ara::core::CoreErrorDomain is toegewezen:
CoreErrc::kInvalidMetaModelShortname: Doet zich voor wanneer padelementen inqualifiedShortNameontbreken of ontoelaatbare tekens bevatten [SWS_CORE_08032].CoreErrc::kInvalidMetaModelPath: Wordt geretourneerd indienqualifiedShortNamegeen geldig pad naar een modelelement beschrijft [SWS_CORE_08032].
Concurrency en veiligheid
De functie is gedeclareerd als noexcept en gespecificeerd als uitzonderingsveilig (exception safe) en thread-safe (thread-safe) [SWS_CORE_08032]. Aanroepers kunnen ze zodoende zonder externe synchronisatie gelijktijdig vanuit meerdere uitvoeringscontexten gebruiken. Aangezien ze een Result retourneert, is ze vermoedelijk bedoeld voor defensieve validaties van modelpaden tijdens runtime zonder uitzonderingsafhandeling. Vraag Q-7cfe36e0657a0008 (open)
Deze tekst is opgesteld door een AI. Hij dient ter oriëntatie en vervangt niet de bestudering van de gereferentieerde AUTOSAR-specificaties.
| 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#0abdcfc6- Content hash
0abdcfc6- 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 · Duits origineel