Generic template class for skeleton fields, that unifies common behavior.

notice

Note: This class template is private and may change with updates. To access the class templates features, use the provided member functions.

Member functions

notice

The following API are not considered to be thread-safe against each other, or against any other API in this instance:

  1. RegisterGetHandler(),
  2. RegisterSetHandler() Further, the APIs of this instance are not threadsafe against
  3. Skeleton::OfferService(),
  4. Skeleton::StopOfferService() of the Skeleton instance that contains this instance as a member. ()

Name

Description

Access

Update()

Update the current field value.

Public

Send()

Update the current field value.

Public

RegisterSetHandler()

Register a handler called if any remote proxy tries to set the current field value.

Public

RegisterGetHandler()

Register an optional handler called if any remote proxy requests the current field value.

Public

Example

// Create a skeleton instance 
ConstructionResult token_result =
  ExampleServiceSkeleton::Preconstruct(ara::core::InstanceSpecifier{"ExampleServer/rootSwc/ExampleServerPort"_sv});
ExampleServiceSkeleton exampleservice{std::move(token_result.Value())};

// Access field 'exampleFieldUINT8' as a member of the created skeleton instance (and update the field value).
exampleservice.exampleFieldUINT8.Update(0xA5U);