CIRCT  20.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 310 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 286 of file Services.cpp.

References esi::services::CallService::CallService().

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

References esi::services::CallService::CallService(), esiaccel.accelerator::MMIO, and esi::services::MMIO::StdName.


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