CIRCT  19.0.0git
Static Public Member Functions | List of all members
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 ServicecreateService (AcceleratorConnection *acc, Service::Type svcType, AppIDPath id, std::string implName, ServiceImplDetails details, HWClientDetails clients)
 Create a service instance from the given details. More...
 
static Service::Type lookupServiceType (const std::string &)
 Resolve a service type from a string. More...
 

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 147 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 122 of file Services.cpp.

References esi::services::FuncService::FuncService().

◆ 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 133 of file Services.cpp.

References esi::services::FuncService::FuncService().


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