DEENESPTFRRUARHIKOZHNL

klasse 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

User GuideAI-GEGENEREERD

Dient voor de representatie, logging en vergelijkende administratie van serviceversies in toepassingen.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: abf1d9197db7 Herkomst Open vragen (2)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Dient voor de representatie, logging en vergelijkende administratie van serviceversies in toepassingen.

De klasse ara::com::ServiceVersionType dient voor de gestandaardiseerde representatie en het beheer van serviceversies in het AUTOSAR Adaptive Platform ([SWS_CM_11515]). Toepassingen gebruiken de instanties voor compatibiliteitscontrole via gelijkheids- en volgordevergelijkingen, voor opslag in containers en voor logging via ToString() ([SWS_CM_11519]). Het exacte type mag door de Communication Management-provider worden overschreven, maar moet wel voldoen aan elementaire C++-vergelijkings- en toewijzingsvereisten. Bij gebruik moet er rekening mee worden gehouden dat alle lidfuncties van de klasse volgens de specificatie zijn geclassificeerd als niet exception-safe.

Context

De klasse ara::com::ServiceVersionType definieert in de header ara/com/service/service_version.h (AUTOSAR_AP_SWS_CommunicationManagement §8.11 “Header: ara/com/service/service_version.h”) de versie van een communicatieservice ([SWS_CM_11515]). Haar primaire verantwoordelijkheid bestaat erin serviceversies hanteerbaar te maken voor applicatiesoftware, zodat deze versiegegevens kan opslaan, beheren, vergelijken en loggen ([SWS_CM_11515]).

Een architectonische bijzonderheid ligt in de flexibiliteit van het platform: conform [SWS_CM_11515] mag het concrete datatype worden overschreven of uitgebreid door de softwareprovider van Communication Management. Om desondanks een consistente hantering in draagbare toepassingen te waarborgen, vereist de specificatie dat het type ten minste voldoet aan de C++-standaardconcepten [equalitycomparable] ([SWS_CM_11516]), [lessthancomparable] ([SWS_CM_11517]) en [copyassignable] ([SWS_CM_11518]) conform ISO/IEC 14882:2014.

Tot de interactiepartners behoren naast de Communication Management Software Provider ook service-interfaces, die versies als statische constante serviceVersion beschikbaar stellen (AUTOSAR_AP_SWS_CommunicationManagement p. 320), evenals de toepassingssoftware, die versiecontroles uitvoert.

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

Contextdiagram: Inbedding van ara::com::ServiceVersionType tussen softwareprovider, service-interface en toepassing. Bronnen: [SWS_CM_11515], AUTOSAR_AP_SWS_CommunicationManagement p. 320, AUTOSAR_AP_SWS_CommunicationManagement §8.11.1 “Class: ServiceVersionType”.

Levenscyclus

Instanties van ara::com::ServiceVersionType zijn ontworpen als reguliere waardetypes (value types). De aanmaak en overname van waarden gebeurt via kopiëren en toewijzen: via de toewijzingsoperator operator= wordt voldaan aan de eis [copyassignable] ([SWS_CM_11518]), zodat instanties nieuwe waarden kunnen overnemen.

Wat betreft eigendomsverhoudingen valt ara::com::ServiceVersionType binnen de scope van de respectievelijke aanroeper of wordt aangehouden als constante van een servicedefinitie (AUTOSAR_AP_SWS_CommunicationManagement p. 320). Het type heeft geen complexe interne toestandsmachine, maar kapselt een discrete versiewaarde in. De vernietiging vindt automatisch plaats bij het verlaten van de scope.

Met betrekking tot gelijktijdigheid zijn de leesoperaties operator== ([SWS_CM_11516]), operator< ([SWS_CM_11517]) en ToString ([SWS_CM_11519]) gedeclareerd als const. Interpretation: Gelijktijdige leestoegangen tot dezelfde instantie vanuit meerdere threads zullen vermoedelijk veilig zijn zonder synchronisatie, terwijl parallelle schrijf- en toewijzingsbewerkingen extern moeten worden beschermd. Vraag Q-9582ce9a82b9b833 (open)

Gebruikspad

Het typische verloop voor het gebruik van ara::com::ServiceVersionType in een toepassing is onderverdeeld in de volgende stappen:

  1. Versie opvragen: De toepassing benadert de versie-informatie van een service, bijvoorbeeld via de statische constante serviceVersion van een interface (AUTOSAR_AP_SWS_CommunicationManagement p. 320).
  2. Compatibiliteitscontrole: De toepassing vergelijkt de versie met een verwachte versie via operator== ([SWS_CM_11516]). Voor volgordevergelijkingen of voor opslag in gesorteerde standaardcontainers wordt operator< gebruikt ([SWS_CM_11517]).
  3. Beheer en opslag: Voor het doorgeven of lokaal opslaan van versiestanden gebruikt de toepassing de toewijzingsoperator operator= ([SWS_CM_11518]).
  4. Logging: Voor diagnoseberichten of log-uitvoer genereert de toepassing via de methode ToString() een tekstuele representatie als ara::core::StringView ([SWS_CM_11519], AUTOSAR_AP_SWS_CommunicationManagement §8.11.1.1.2.1 “ToString”).

Foutscenario's

Bij het gebruik van de interface moeten specifieke randvoorwaarden in acht worden genomen:

  • Exceptieveiligheid: Alle gespecificeerde functies – operator= ([SWS_CM_11518]), operator== ([SWS_CM_11516]), operator< ([SWS_CM_11517]) en ToString ([SWS_CM_11519]) – zijn in de specificatie expliciet gedeclareerd als not exception safe. Toepassingen mogen in geval van fouten (zoals bij geheugenallocaties in providerspecifieke implementaties) niet vertrouwen op automatische herstelgaranties.
  • Geldigheid van de string-view: De methode ToString() levert een ara::core::StringView ([SWS_CM_11519]). Interpretation: Aangezien een StringView geen eigen geheugen beheert, zal de levensduur van de gerefereerde tekenreeks vermoedelijk gekoppeld zijn aan de onderliggende instantie of aan statisch geheugen; gebruik na afloop van de geldigheid van de gegevensbron leidt tot ongedefinieerd gedrag. Vraag Q-fdb6e821db46af00 (open)

Deze handleiding is gebaseerd op de AUTOSAR-standaard Release R25-11 en houdt uitsluitend rekening met eisen uit AUTOSAR_AP_SWS_CommunicationManagement.

Ledenkaart

Klassendiagram

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

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

Detailweergave

Kies een item in de inhoudsopgave.

Methoden

ToString functie

Stringification method for ara::com::ServiceVersionType

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

Operatoren

operator< functie

LessThan operator as per [lessthancomparable] in [30]

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

Copy assignment constructor

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

Equality operator as per [equalitycomparable] in [30]

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

Documentatie van de methoden

functie ToString [SWS_CM_11519] Upstream: RS_CM_00200, RS_CM_00500

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

Stringification method for ara::com::ServiceVersionType

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 6f062cc4edae Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De synchrone memberfunctie ToString van de klasse ara::com::ServiceVersionType dient voor de serialisatie en beschikbaarstelling van versie-informatie als leesbare tekenreeksrepresentatie ([SWS_CM_11519], SWS CommunicationManagement §8.11.1.1.2.1 “ToString”). Deze is gedeclareerd in header #include "ara/com/service/service_version.h", accepteert als const-methode geen parameters en geeft een ara::core::StringView naar de stringrepresentatie van de serviceversie terug ([SWS_CM_11519]).

De weergegeven versie-informatie is conform [SWS_CM_99029] afgeleid van de attributen majorVersion en minorVersion van de betreffende ServiceInterface (SWS CommunicationManagement §7.5.22.1 “Service Identifier Data Types”). Het concrete formaat van de tekenreeks is volgens [SWS_CM_00088] fabrikantspecifiek voor Communication Management en niet AUTOSAR-breed genormeerd (SWS CommunicationManagement §7.5.22.1 “Service Identifier Data Types”).

Voor het gebruik en de gelijktijdigheid gelden de volgende randvoorwaarden:

  • Exceptieveiligheid: De functie is in de specificatie expliciet geclassificeerd als niet exceptieveilig (not exception safe) ([SWS_CM_11519]). Specifieke foutcodes of meldingen aan DET of DEM zijn niet gedefinieerd.
  • Levensduur van de retourwaarde: Aangezien een ara::core::StringView wordt geretourneerd, is de gereferentieerde buffer vermoedelijk gebonden aan de levensduur van het ServiceVersionType-object of aan statisch geheugen (interpretatie). Vraag Q-dc38956a7fe0476a (open) De view mag daarom niet langer worden gebruikt dan de levensduur van de broninstantie.
  • Aanroepcontext: Als neveneffectvrije const-operatie wijzigt de aanroep het object niet; afzonderlijke re-entrantie-eisen worden niet gespecificeerd.

Deze tekst is gegenereerd door een AI op basis van de AUTOSAR-specificatie R25-11.

Implementer's Guide volgt (complexiteit 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#9254c5d0
Content hash
9254c5d0
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

functie 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#5740c1bd
Content hash
5740c1bd
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

functie 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#568789f3
Content hash
568789f3
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

functie 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#93ef3d5a
Content hash
93ef3d5a
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