3#ifndef ICEBOX_SERVICE_H
4#define ICEBOX_SERVICE_H
9# if defined(ICEBOX_API_EXPORTS)
10# define ICEBOX_API ICE_DECLSPEC_EXPORT
12# define ICEBOX_API ICE_DECLSPEC_IMPORT
27 [[nodiscard]]
const char*
ice_id() const noexcept final;
const char * ice_id() const noexcept final
Returns the type ID of this exception.
The exception that is thrown when an IceBox service fails to start.
virtual void start(const std::string &name, const Ice::CommunicatorPtr &communicator, const Ice::StringSeq &args)=0
Starts the service.
virtual void stop()=0
Stops the service.
Represents an IceBox service that you implement and that the IceBox service manager starts and later ...
LocalException(const char *file, int line, std::string message)
Constructs a local exception.
Base class for all Ice exceptions not defined in Slice.
std::shared_ptr< Service > ServicePtr
A shared pointer to a Service.
Host multiple independent services in the same Ice server.
std::shared_ptr< Communicator > CommunicatorPtr
A shared pointer to a Communicator.
std::vector< std::string > StringSeq
A sequence of strings.