DEENESPTFRRUARHIKOZHNL

클래스 ara::com::ServiceVersionType

[SWS_CM_11515] Upstream: RS_CM_00200, RS_CM_00500

class ServiceVersionType {...};

Specifies a Service Version. The exact type may be overridden by the Communication Management software provider. but shall at least satisfy the [equalitycomparable] ([SWS_CM_11516]), [lessthancomparable] ([SWS_CM_11517]) and [copyassignable] ([SWS_CM_11518]) requirements as per [30] to allow for logging, storing and managing ara:: com::ServiceVersionTypes by the application.

Literaturverzeichnis SWS CommunicationManagement: [30] ISO/IEC 14882:2014, Information technology – Programming languages – C++ – www.iso.org

Header-Datei#include "ara/com/service/service_version.h"
Forwarding-Header#include "ara/com/com_fwd.h"
Scopenamespace ara::com

사용자 가이드AI 생성

애플리케이션에서 서비스 버전의 표현, 로깅 및 비교 관리를 위해 사용됩니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: abf1d9197db7 출처 열린 질문 (2)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

애플리케이션에서 서비스 버전의 표현, 로깅 및 비교 관리를 위해 사용됩니다.

클래스 ara::com::ServiceVersionType은 AUTOSAR Adaptive Platform([SWS_CM_11515])에서 서비스 버전의 표준화된 표현 및 관리에 사용됩니다. 애플리케이션은 동등성 및 순서 비교를 통한 호환성 검사, 컨테이너 내 저장, ToString()([SWS_CM_11519])를 통한 로깅에 인스턴스를 활용합니다. 정확한 타입은 Communication Management 제공업체에 의해 오버라이드될 수 있으나, 기본적인 C++ 비교 및 할당 요구사항을 충족해야 합니다. 사용 시 클래스의 모든 멤버 함수가 명세상 예외 안전하지 않은 것으로 분류되어 있다는 점에 유의해야 합니다.

컨텍스트

클래스 ara::com::ServiceVersionType은 헤더 ara/com/service/service_version.h(AUTOSAR_AP_SWS_CommunicationManagement §8.11 “Header: ara/com/service/service_version.h”)에서 통신 서비스의 버전([SWS_CM_11515])을 정의합니다. 기본 책임은 응용 소프트웨어가 서비스 버전을 다룰 수 있도록 하여, 이러한 버전 정보를 저장, 관리, 비교 및 로깅할 수 있게 하는 것입니다([SWS_CM_11515]).

아키텍처적 특성은 플랫폼의 유연성에 있습니다. [SWS_CM_11515]에 따라 구체적인 데이터 타입은 Communication Management의 소프트웨어 제공업체에 의해 오버라이드되거나 확장될 수 있습니다. 그럼에도 불구하고 이식 가능한 애플리케이션에서 일관된 처리를 보장하기 위해, 명세에서는 이 타입이 ISO/IEC 14882:2014에 따른 C++ 표준 개념인 [equalitycomparable]([SWS_CM_11516]), [lessthancomparable]([SWS_CM_11517]) 및 [copyassignable]([SWS_CM_11518])을 최소한 충족할 것을 요구합니다.

상호작용 파트너에는 Communication Management Software Provider 외에도 버전을 정적 상수 serviceVersion으로 제공하는 서비스 인터페이스(AUTOSAR_AP_SWS_CommunicationManagement 320쪽) 및 버전 비교를 수행하는 응용 소프트웨어가 포함됩니다.

diag_serviceversion_kontext provider Communication Management Software Provider service_version ara::com::ServiceVersionType provider->service_version 정의함 / 재정의함 service_interface Service-Schnittstelle (serviceVersion) service_interface->service_version exponiert application Anwendungssoftware (Application) application->service_interface liest Version application->service_version speichert, vergleicht, protokolliert

컨텍스트 다이어그램: Software Provider, 서비스 인터페이스 및 애플리케이션 사이의 ara::com::ServiceVersionType 임베딩. 출처: [SWS_CM_11515], AUTOSAR_AP_SWS_CommunicationManagement 320쪽, AUTOSAR_AP_SWS_CommunicationManagement §8.11.1 “Class: ServiceVersionType”.

수명 주기

ara::com::ServiceVersionType의 인스턴스는 정규 값 타입(Value Types)으로 설계되었습니다. 생성 및 값 인수는 복사 및 할당을 통해 이루어집니다. 할당 연산자 operator=을 통해 [copyassignable] 요구사항이 충족되어([SWS_CM_11518]), 인스턴스가 새로운 값을 인수할 수 있습니다.

소유권 관계 측면에서 ara::com::ServiceVersionType은 해당 호출자의 스코프에 종속되거나 서비스 정의의 상수로 유지됩니다(AUTOSAR_AP_SWS_CommunicationManagement 320쪽). 이 타입은 복잡한 내부 상태 머신을 갖지 않고 개별 버전 값을 캡슐화합니다. 파괴는 스코프를 벗어날 때 자동으로 수행됩니다.

동시성과 관련하여 읽기 연산인 operator==([SWS_CM_11516]), operator<([SWS_CM_11517]) 및 ToString([SWS_CM_11519])는 const로 선언되어 있습니다. 해석: 여러 스레드에서 동일한 인스턴스에 대한 동시 읽기 접근은 동기화 없이도 안전할 것으로 추정되는 반면, 병렬 쓰기 및 할당 작업은 외부에서 보호되어야 합니다. 질문 Q-9582ce9a82b9b833 (열림)

사용 경로

애플리케이션에서 ara::com::ServiceVersionType을 사용하는 일반적인 절차는 다음 단계로 구성됩니다:

  1. 버전 조회: 애플리케이션은 예를 들어 인터페이스의 정적 상수 serviceVersion을 통해 서비스의 버전 정보에 접근합니다(AUTOSAR_AP_SWS_CommunicationManagement 320쪽).
  2. 호환성 검사: 애플리케이션은 operator==([SWS_CM_11516])을 통해 버전을 기대 버전과 비교합니다. 순서 검사나 정렬된 표준 컨테이너에 저장하기 위해 operator<가 사용됩니다([SWS_CM_11517]).
  3. 관리 및 저장: 버전 상태의 전달 또는 로컬 저장을 위해 애플리케이션은 할당 연산자 operator=([SWS_CM_11518])을 사용합니다.
  4. 로깅: 진단 메시지 또는 로그 출력을 위해 애플리케이션은 메서드 ToString()을 통해 ara::core::StringView 형태의 텍스트 표현을 생성합니다([SWS_CM_11519], AUTOSAR_AP_SWS_CommunicationManagement §8.11.1.1.2.1 “ToString”).

오류 시나리오

인터페이스 사용 시 특정 제약 조건을 준수해야 합니다:

  • 예외 안전성: 명세된 모든 함수(operator=([SWS_CM_11518]), operator==([SWS_CM_11516]), operator<([SWS_CM_11517]), ToString([SWS_CM_11519]))는 명세에서 명시적으로 not exception safe로 선언되어 있습니다. 애플리케이션은 오류 발생 시(예: 공급업체별 구현에서의 메모리 할당 시) 자동 복구 보장에 의존해서는 안 됩니다.
  • StringView 유효성: 메서드 ToString()은 ara::core::StringView을 반환합니다([SWS_CM_11519]). 해석: StringView는 자체 메모리를 관리하지 않으므로, 참조된 문자열의 수명은 기본 인스턴스 또는 정적 메모리에 연결되어 있을 것으로 추정되며, 데이터 소스의 유효성을 벗어난 사용은 정의되지 않은 동작으로 이어집니다. 질문 Q-fdb6e821db46af00 (열림)

이 가이드는 AUTOSAR 표준 릴리스 R25-11을 기반으로 하며 AUTOSAR_AP_SWS_CommunicationManagement의 요구사항만을 고려합니다.

멤버 맵

클래스 다이어그램

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__com__ServiceVersionType743 ServiceVersionType + operator=() + ToString() + operator<() + operator==()

상세 보기

개요에서 항목을 선택하세요.

메서드

ToString 함수

Stringification method for ara::com::ServiceVersionType

ara::core::StringView ToString () const;

연산자

operator< 함수

LessThan operator as per [lessthancomparable] in [30]

bool operator< (const ServiceVersionType &other) const;
operator= 함수

Copy assignment constructor

ServiceVersionType & operator= (const ServiceVersionType &other);
operator== 함수

Equality operator as per [equalitycomparable] in [30]

bool operator== (const ServiceVersionType &other) const;

메서드 문서

함수 ToString [SWS_CM_11519] Upstream: RS_CM_00200, RS_CM_00500

ara::core::StringView ToString () const;

Stringification method for ara::com::ServiceVersionType

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 6f062cc4edae 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

클래스 ara::com::ServiceVersionType의 동기 멤버 함수 ToString은(는) 버전 정보를 직렬화하고 사람이 읽을 수 있는 문자열 표현으로 제공하는 데 사용됩니다([SWS_CM_11519], SWS CommunicationManagement §8.11.1.1.2.1 “ToString”). 헤더 #include "ara/com/service/service_version.h"에 선언되어 있으며, const 메서드로서 매개변수를 받지 않고 서비스 버전의 문자열 표현에 대한 ara::core::StringView을(를) 반환합니다([SWS_CM_11519]).

매핑된 버전 정보는 [SWS_CM_99029]에 따라 각 ServiceInterface의 속성 majorVersion 및 minorVersion에서 파생됩니다(SWS CommunicationManagement §7.5.22.1 “Service Identifier Data Types”). 구체적인 문자열 형식은 [SWS_CM_00088]에 따라 Communication Management에 특화된 제조사별 형식을 따르며 AUTOSAR 전반에 걸쳐 표준화되어 있지 않습니다(SWS CommunicationManagement §7.5.22.1 “Service Identifier Data Types”).

사용 및 동시성에 대해 다음 경계 조건이 적용됩니다:

  • 예외 안전성: 이 함수는 사양에서 명시적으로 예외 안전하지 않음(not exception safe)(으)로 분류되어 있습니다([SWS_CM_11519]). DET 또는 DEM에 대한 특정 오류 코드나 메시지는 정의되어 있지 않습니다.
  • 반환값의 수명: ara::core::StringView이(가) 반환되므로, 참조되는 버퍼는 ServiceVersionType 객체의 수명 또는 정적 메모리에 바인딩되어 있을 것으로 추정됩니다(해석). 질문 Q-dc38956a7fe0476a (열림) 따라서 이 뷰를 소스 인스턴스의 수명을 넘어 사용해서는 안 됩니다.
  • 호출 컨텍스트: 부작용이 없는 const 작업으로서 호출 시 객체를 수정하지 않으며, 별도의 재진입성 규격은 명시되어 있지 않습니다.

이 텍스트는 AUTOSAR 사양 R25-11을 기반으로 AI에 의해 생성되었습니다.

구현자 가이드 준비 중 (복잡도 I1)

Header-Datei#include "ara/com/service/service_version.h"
Scopeclass ara::com::ServiceVersionType
Exception-Sicherheitnot exception safe

Rückgabewert

TypBeschreibung
ara::core::StringViewString representation of a ara::com::ServiceVersionType

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_11519
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11519@rel:R25-11#6531c184
Content hash
6531c184
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11519
Status: valid/unmigrated Version: rel:R25-11#abf5021f Versionshistorie & Revisions (1 transition, 3 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_CM_11519@rel:R25-11#abf5021f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0f392a642026-09-30
  • R24-11rel:R24-11#2df22b872026-10-14
  • R25-11rel:R25-11#abf5021f2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

함수 operator< [SWS_CM_11517] Upstream: RS_CM_00200, RS_CM_00500

bool operator< (const ServiceVersionType &other) const;

LessThan operator as per [lessthancomparable] in [30]

Literaturverzeichnis SWS CommunicationManagement: [30] ISO/IEC 14882:2014, Information technology – Programming languages – C++ – www.iso.org

Header-Datei#include "ara/com/service/service_version.h"
Scopeclass ara::com::ServiceVersionType
Exception-Sicherheitnot exception safe

Parameter (in)

ParameterBeschreibung
otherara::com::ServiceVersionType to compare

Rückgabewert

TypBeschreibung
boolTRUE if other is less than *this, FALSE otherwise.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_11517
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11517@rel:R25-11#8fe1d305
Content hash
8fe1d305
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11517
Status: valid/unmigrated Version: rel:R25-11#2d7b1db2 Versionshistorie & Revisions (1 transition, 3 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_CM_11517@rel:R25-11#2d7b1db2
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f371b0f02026-09-30
  • R24-11rel:R24-11#abc475902026-10-14
  • R25-11rel:R25-11#2d7b1db22026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

함수 operator= [SWS_CM_11518] Upstream: RS_CM_00200, RS_CM_00500

ServiceVersionType & operator= (const ServiceVersionType &other);

Copy assignment constructor

Header-Datei#include "ara/com/service/service_version.h"
Scopeclass ara::com::ServiceVersionType
Exception-Sicherheitnot exception safe

Parameter (in)

ParameterBeschreibung
otherara::com::ServiceVersionType to copy

Rückgabewert

TypBeschreibung
ServiceVersionType &New ara::com::ServiceVersionType

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_11518
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11518@rel:R25-11#a65f05f3
Content hash
a65f05f3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11518
Status: valid/unmigrated Version: rel:R25-11#b8a11cec Versionshistorie & Revisions (1 transition, 3 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_CM_11518@rel:R25-11#b8a11cec
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a7abbb5e2026-09-30
  • R24-11rel:R24-11#31f02ac92026-10-14
  • R25-11rel:R25-11#b8a11cec2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

함수 operator== [SWS_CM_11516] Upstream: RS_CM_00200, RS_CM_00500

bool operator== (const ServiceVersionType &other) const;

Equality operator as per [equalitycomparable] in [30]

Literaturverzeichnis SWS CommunicationManagement: [30] ISO/IEC 14882:2014, Information technology – Programming languages – C++ – www.iso.org

Header-Datei#include "ara/com/service/service_version.h"
Scopeclass ara::com::ServiceVersionType
Exception-Sicherheitnot exception safe

Parameter (in)

ParameterBeschreibung
otherara::com::ServiceVersionType to compare

Rückgabewert

TypBeschreibung
boolTRUE if other is equal to *this, FALSE otherwise.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_11516
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11516@rel:R25-11#e1c2286b
Content hash
e1c2286b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11516
Status: valid/unmigrated Version: rel:R25-11#8e598b1d Versionshistorie & Revisions (1 transition, 3 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_CM_11516@rel:R25-11#8e598b1d
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#b31c22602026-09-30
  • R24-11rel:R24-11#38d0957c2026-10-14
  • R25-11rel:R25-11#8e598b1d2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill