Skip to main content
Version: 1.0.13

ecdev::IProfileFactory

Builds the device-class profile for one slave. More...

#include <profile_registry.hpp>

Public Functions​

Name
virtual~IProfileFactory() =default
virtual const char *name() const =0
virtual std::unique_ptr< IDeviceProfile >create(const ProfileSelectionInput & in) const =0
virtual intclaim(const eni::SlaveConfig & slave) const =0
Claim strength for slave: claim_score::kNone = does not handle this slave; a positive value = this factory serves the slave (see claim_score).

Detailed Description​

class ecdev::IProfileFactory;

Builds the device-class profile for one slave.

A new device class is supported by adding a new factory (typically via [makeIdentityProfileFactory] + LXMASTER_REGISTER_DEVICE); the generic device and orchestration layer never change.

Public Functions Documentation​

function ~IProfileFactory​

virtual ~IProfileFactory() =default

function name​

virtual const char * name() const =0

function create​

virtual std::unique_ptr< IDeviceProfile > create(
const ProfileSelectionInput & in
) const =0

function claim​

virtual int claim(
const eni::SlaveConfig & slave
) const =0

Claim strength for slave: claim_score::kNone = does not handle this slave; a positive value = this factory serves the slave (see claim_score).

The registry picks the highest-claiming factory (deterministic by registration order on ties).


Updated on 2026-07-04 at 22:59:44 +0000