46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
/**
|
|
* @file include/ActivOneApi/Constants/ServiceStatus.h
|
|
*
|
|
* @brief Header for the ServiceStatus definitions.
|
|
*/
|
|
|
|
#if (!defined ACTIV_ONE_API_CONSTANTS_SERVICE_STATUS_H)
|
|
#define ACTIV_ONE_API_CONSTANTS_SERVICE_STATUS_H
|
|
|
|
#include "ActivOneApi/External.h"
|
|
|
|
#include "ActivOneApi/TypeDefinitions.h"
|
|
|
|
//! Activ namespace.
|
|
namespace Activ
|
|
{
|
|
|
|
//! OneApi namespace.
|
|
namespace OneApi
|
|
{
|
|
|
|
// ServiceStatus values.
|
|
const ServiceStatus SERVICE_STATUS_OFFLINE = 0;
|
|
const ServiceStatus SERVICE_STATUS_MAINTENANCE = 1;
|
|
const ServiceStatus SERVICE_STATUS_ONLINE = 2;
|
|
const ServiceStatus SERVICE_STATUS_STOPPING = 3;
|
|
const ServiceStatus SERVICE_STATUS_PARTIALLY_UP = 4;
|
|
const ServiceStatus SERVICE_STATUS_DISABLED = 5;
|
|
|
|
// ---------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
/**
|
|
* @brief Convert a ServiceStatus to a string.
|
|
*
|
|
* @param serviceStatus
|
|
*
|
|
* @return String representation of @a serviceStatus.
|
|
*/
|
|
ACTIV_ONE_API String ServiceStatusToString(const ServiceStatus serviceStatus);
|
|
|
|
} // namespace OneApi
|
|
|
|
} // namespace Activ
|
|
|
|
#endif // (!defined ACTIV_ONE_API_CONSTANTS_SERVICE_STATUS_H)
|