ServerConfig::ServiceΒΆ

class kanzi::connect::ServerConfig::Service : public ServerConfig::AttributeProviderBase

Service configuration.

Public Functions

Service(const string &library, const string &name, const string mandatory = "")

C++ constructor.

initialize object

Parameters
  • library: the library for the service.

  • name: the name for the service

  • mandatory: if contains true|1 then this service is marked as mandatory.

bool depends(const string &service)

Does this service depend on some other service.

Return

true if depends.

Parameters
  • service: the service

vector<string> getDependencies()

Retrieve service dependencies as list of strings.

Return

vector of dependency definitions.

const string &getLibrary() const

Retrieve the library.

Return

library name

bool getMandatory() const

Retrieve the mandatory status, i.e.

whether everyting should fail if accessing this service fails

Return

true if this service is marked as mandatory.

const string &getName() const

Retrieve the configured name.

Return

name

Security &getSecurity()

Retrieve security information related to a service.