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.

Parameters

service – the service

Returns

true if depends.

vector<string> getDependencies()

Retrieve service dependencies as list of strings.

Returns

vector of dependency definitions.

const string &getLibrary() const

Retrieve the library.

Returns

library name

bool getMandatory() const

Retrieve the mandatory status, i.e.

whether everyting should fail if accessing this service fails

Returns

true if this service is marked as mandatory.

const string &getName() const

Retrieve the configured name.

Returns

name

Security &getSecurity()

Retrieve security information related to a service.