Class CServiceServer

Class Documentation

class eCAL::CServiceServer

Service Server wrapper class.

Public Functions

CServiceServer()

Constructor.

CServiceServer(const std::string &service_name_)

Constructor.

Parameters
  • service_name_: Unique service name.

~CServiceServer()

Destructor.

CServiceServer(const CServiceServer&) = delete

CServiceServers are non-copyable.

CServiceServer &operator=(const CServiceServer&) = delete

CServiceServers are non-copyable.

bool Create(const std::string &service_name_)

Creates this object.

Return

True if successful.

Parameters
  • service_name_: Unique service name.

bool Destroy()

Destroys this object.

Return

True if successful.

bool AddMethodCallback(const std::string &method_, const std::string &req_type_, const std::string &resp_type_, const MethodCallbackT &callback_)

Add method callback for server response.

Return

True if successful.

Parameters
  • method_: Service method name.

  • req_type_: Service method request type.

  • resp_type_: Service method response type.

  • callback_: Callback function for client request.

bool RemMethodCallback(const std::string &method_)

Remove client request callback.

Return

True if successful.

Parameters
  • method_: Service method name.

std::string GetServiceName()

Retrieve service name.

Return

The service name.