함수 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 객체에는 [SWS_CORE_05290]을(를) 통해 ara::core::CoreErrorDomain에 매핑된 CoreErrc의 오류 코드가 포함됩니다:
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#aa8175b4- Content hash
aa8175b4- 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 · 독일어 원문