CIRCT 24.0.0git
Loading...
Searching...
No Matches
esi::services::ServiceRegistry Class Reference

Registry of services which can be instantiated directly by the Accelerator class if the backend doesn't do anything special with a service. More...

#include <Services.h>

Static Public Member Functions

static Service * createService (AcceleratorConnection *acc, Service::Type svcType, AppIDPath id, std::string implName, ServiceImplDetails details, HWClientDetails clients)
 Create a service instance from the given details.
static Service::Type lookupServiceType (const std::string &)
 Resolve a service type from a string.

Detailed Description

Registry of services which can be instantiated directly by the Accelerator class if the backend doesn't do anything special with a service.

Definition at line 544 of file Services.h.

Member Function Documentation

◆ createService()

Service * ServiceRegistry::createService ( AcceleratorConnection * acc,
Service::Type svcType,
AppIDPath id,
std::string implName,
ServiceImplDetails details,
HWClientDetails clients )
static

Create a service instance from the given details.

Returns nullptr if 'svcType' isn't registered.

Definition at line 509 of file Services.cpp.

References esi::services::TelemetryService::TelemetryService().

Referenced by esi::AcceleratorConnection::getService().

◆ lookupServiceType()

Service::Type ServiceRegistry::lookupServiceType ( const std::string & svcName)
static

Resolve a service type from a string.

If the string isn't recognized, default to CustomService.

Definition at line 528 of file Services.cpp.

References esi::services::HostMem::StdName, esi::services::MMIO::StdName, and esi::services::TelemetryService::StdName.


The documentation for this class was generated from the following files: