DEENESPTFRRUARHIKOZHNL

klasse ara::com::ServiceIdentifierType

[SWS_CM_11510] Upstream: RS_CM_00200, RS_CM_00500

class ServiceIdentifierType {...};

Specifies a Service Identifier The exact type may be overridden by the Communication Management software provider. but shall at least satisfy the [equalitycomparable] ([SWS_CM_11511]), [lessthancomparable] ([SWS_CM_11512]) and [copyassignable] ([SWS_CM_11513]) requirements as per [30] to allow for logging, storing and managing ara:: com::ServiceIdentifierTypes 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_identifier.h"
Forwarding-Header#include "ara/com/com_fwd.h"
Scopenamespace ara::com

User GuideAI-GEGENEREERD

Dient voor de unieke identificatie van services voor beheer, sortering en logging in Adaptive-toepassingen.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 6478b06ad565 Herkomst Open vragen (2)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Dient voor de unieke identificatie van services voor beheer, sortering en logging in Adaptive-toepassingen.

De klasse ara::com::ServiceIdentifierType dient voor de unieke identificatie van services binnen het AUTOSAR Adaptive Communication Management [SWS_CM_11510]. Deze stelt toepassingen in staat om service-identifiers te beheren, kopiëren en sorteren, en tekstuitvoer te verzorgen voor loggingdoeleinden via gestandaardiseerde C++-concepten en -operatoren SWS CommunicationManagement §8.10.1 “Class: ServiceIdentifierType”. De concrete type-implementatie wordt voorgeschreven door de softwareprovider, waarbij alle aangeboden lidfuncties volgens de specificatie zijn geclassificeerd als niet exception-safe.

Context

De klasse ara::com::ServiceIdentifierType specificeert de unieke identifier van een service in het Communication Management van het AUTOSAR Adaptive Platform [SWS_CM_11510]. De concrete type-implementatie is ter discretie van de betreffende softwareleverancier van het Communication Management en mag providerspecifiek worden overschreven SWS CommunicationManagement §8.10.1 “Class: ServiceIdentifierType”. Op interfaces van concrete services verschijnt de klasse onder andere als statische constante serviceIdentifier SWS CommunicationManagement p. 319. Applicatiesoftware gebruikt deze identifier om instanties te loggen, op te slaan en te beheren SWS CommunicationManagement §8.10.1 “Class: ServiceIdentifierType”.

Context Provider Communication Management Software Provider ServiceId ara::com::ServiceIdentifierType Provider->ServiceId definieert / overschrijft Service Service-Schnittstelle (serviceIdentifier) Service->ServiceId deklariert statische Instanz App Applikation App->ServiceId gebruikt voor beheer en logging

Contextdiagram: Inbedding van de ServiceIdentifierType tussen providerimplementatie, service-interface en applicatie. Bronnen: [SWS_CM_11510], SWS CommunicationManagement §8.10.1, p. 319

Levenscyclus

Als identifier fungeert ara::com::ServiceIdentifierType als waardetype zonder eigen complexe toestandsmachine. De creatie en waardetoekenning richten zich naar het C++-concept copyassignable, dat wordt gerealiseerd via de toekenningsoperator operator= [SWS_CM_11513]. Hierdoor kunnen identifierinstanties probleemloos worden gekopieerd en intern binnen de applicatie worden doorgegeven.

Het eigenaarschap blijft hetzij statisch bij de interfacedefinitie SWS CommunicationManagement p. 319, hetzij als een zelfstandige kopie binnen de verantwoordelijkheid van de aanroepende applicatie. Vaste levensfasen of overgangen zijn niet gedefinieerd. Aangezien alle lidfuncties volgens de specificatie niet exception-safe zijn, zullen gelijktijdige schrijvende toewijzingen aan dezelfde instantie zonder externe synchronisatie door de applicatie vermoedelijk niet thread-safe zijn. Vraag Q-f6569be429992e62 (open)

Gebruikspad

Het typische gebruik van ara::com::ServiceIdentifierType omvat de volgende stappen:

  • Verkrijging en toewijzing: De applicatie neemt de identifier over van de statische service-interface SWS CommunicationManagement p. 319 en wijst deze via kopieertoewijzing operator= toe aan een lokale variabele of opslagstructuur [SWS_CM_11513].
  • Vergelijking en sortering: Voor opslag in gesorteerde of associatieve containers biedt de klasse operator== conform equalitycomparable [SWS_CM_11511] en operator< conform lessthancomparable [SWS_CM_11512]. Hiermee kunnen identifiers op gelijkheid worden gecontroleerd en in een strikte ordening worden gebracht.
  • Serialisatie voor diagnose: Voor logging- en traceerdoeleinden levert de methode toString() een tekstuele representatie in de vorm van een ara::core::StringView [SWS_CM_11514].

Foutscenario's

De interface definieert geen speciale foutcodes of retourwaarden van het type ara::core::ErrorCode. Alle lidfuncties (operator=, operator<, operator==, toString) zijn in de vereisten expliciet geclassificeerd als not exception safe [SWS_CM_11511] [SWS_CM_11512] [SWS_CM_11513] [SWS_CM_11514].

Als voorwaarde voor vergelijkingsoperaties moeten de betrokken instanties geldig geïnitialiseerd zijn. De door toString() geretourneerde ara::core::StringView heeft geen eigen geheugen; de geldigheid ervan zal daarom vermoedelijk gebonden zijn aan de levensduur van de onderliggende geheugenbuffer of instantie (interpretatie). Vraag Q-60373784c6a80c99 (open)

Deze handleiding is gebaseerd op de specificatie AUTOSAR Adaptive R25-11 en is automatisch samengesteld.

Ledenkaart

Klassendiagram

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

G nara__com__ServiceIdentifierType24 ServiceIdentifierType + operator=() + operator<() + operator==() + toString()

Detailweergave

Kies een item in de inhoudsopgave.

Methoden

toString functie

Stringification method for ara::com::ServiceIdentifierType

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

Operatoren

operator< functie

LessThan operator as per [lessthancomparable] in [30] LessThan operator as per [lessthancomparable] in [30]

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

Copy assignment constructor

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

Equality operator as per [equalitycomparable] in [30]

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

Documentatie van de methoden

functie operator< [SWS_CM_11512] Upstream: RS_CM_00200, RS_CM_00500

bool operator< (const ServiceIdentifierType &other) const;

LessThan operator as per [lessthancomparable] in [30] 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_identifier.h"
Scopeclass ara::com::ServiceIdentifierType
Exception-Sicherheitnot exception safe

Parameter (in)

ParameterBeschreibung
otherOther ara::com::ServiceIdentifierType 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_11512
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11512@rel:R25-11#85f0e179
Content hash
85f0e179
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11512
Status: valid/unmigrated Version: rel:R25-11#e5fa89ba 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_11512@rel:R25-11#e5fa89ba
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#1c25fbcd2026-09-30
  • R24-11rel:R24-11#5a9cbdb02026-10-14
  • R25-11rel:R25-11#e5fa89ba2026-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_11513] Upstream: RS_CM_00200, RS_CM_00500

ServiceIdentifierType & operator= (const ServiceIdentifierType &other);

Copy assignment constructor

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

Parameter (in)

ParameterBeschreibung
otherara::com::ServiceIdentifierType to copy

Rückgabewert

TypBeschreibung
ServiceIdentifierType &New ara::com::ServiceIdentifierType

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

Record
AUTOSAR/AP/record/SWS_CM_11513
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11513@rel:R25-11#2e9886e0
Content hash
2e9886e0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11513
Status: valid/unmigrated Version: rel:R25-11#5c10ce0a 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_11513@rel:R25-11#5c10ce0a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d0d051232026-09-30
  • R24-11rel:R24-11#311f46172026-10-14
  • R25-11rel:R25-11#5c10ce0a2026-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_11511] Upstream: RS_CM_00200, RS_CM_00500

bool operator== (const ServiceIdentifierType &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_identifier.h"
Scopeclass ara::com::ServiceIdentifierType
Exception-Sicherheitnot exception safe

Parameter (in)

ParameterBeschreibung
otherara::com::ServiceIdentifierType 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_11511
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11511@rel:R25-11#1edd2987
Content hash
1edd2987
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11511
Status: valid/unmigrated Version: rel:R25-11#278988fc 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_11511@rel:R25-11#278988fc
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#6cf83e6e2026-09-30
  • R24-11rel:R24-11#65c2c63e2026-10-14
  • R25-11rel:R25-11#278988fc2026-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 toString [SWS_CM_11514] Upstream: RS_CM_00200, RS_CM_00500

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

Stringification method for ara::com::ServiceIdentifierType

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

De synchrone lidfunctie toString van de klasse ara::com::ServiceIdentifierType genereert een tekstuele representatie van de service-identifier als ara::core::StringView ([SWS_CM_11514], SWS CommunicationManagement §8.10.1.1.2.3 “toString”). Deze wordt gedeclareerd via de header #include "ara/com/service/service_identifier.h", accepteert geen parameters en wijzigt de toestand van het object niet ([SWS_CM_11514]).

Wat betreft foutveiligheid is de functie in de specificatie uitdrukkelijk geclassificeerd als not exception safe ([SWS_CM_11514]). Specifieke foutcodes, foutretourwaarden of DET-/DEM-meldingen worden in de bronnen niet vermeld; aanroepers moeten er bijgevolg rekening mee houden dat tijdens de aanroep uitzonderingen kunnen optreden.

Aangezien als retourtype ara::core::StringView is gedefinieerd, verwijst dit vermoedelijk naar de interne tekengegevens van het identifierobject. Vraag Q-54e93f60d3b6a2b4 (open) De geldigheid van de geleverde view is daarom vermoedelijk gebonden aan de levensduur van de onderliggende ServiceIdentifierType-instantie en mag na afloop daarvan niet verder worden gederefereerd.

In interactie met verwante interfaces bestaat er een analoge methode toString voor de instantie-identificatie ara::com::InstanceIdentifier ([SWS_CM_11522], SWS CommunicationManagement §8.8.1.1.3.4 “toString”). In tegenstelling tot die functie, die als noexcept en uitzonderingsveilig is gespecificeerd, biedt ServiceIdentifierType::toString geen garantie voor uitzonderingsvrijheid ([SWS_CM_11514], [SWS_CM_11522]).

Deze tekst is opgesteld door een AI en is uitsluitend gebaseerd op de specificatiegegevens uit AUTOSAR R25-11.

Implementer's Guide volgt (complexiteit I1)

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

Rückgabewert

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

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

Record
AUTOSAR/AP/record/SWS_CM_11514
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11514@rel:R25-11#8b9b4a46
Content hash
8b9b4a46
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11514
Status: valid/unmigrated Version: rel:R25-11#00f1cc2e 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_11514@rel:R25-11#00f1cc2e
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f8f8e1d02026-09-30
  • R24-11rel:R24-11#68f3452d2026-10-14
  • R25-11rel:R25-11#00f1cc2e2026-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