InscoperAPI/API/Base/Utils/Utils.h¶
Namespaces¶
| Name |
|---|
| Inscoper Inscoper namespace. |
Classes¶
| Name | |
|---|---|
| class | Inscoper::Utils Utils class provides utility functions. |
Source code¶
#ifndef UTILS_H
#define UTILS_H
#include <Global.h>
#include <Base/Box/EBoxType.h>
#include <Base/Description/EConnectionTypeDesc.h>
#include <Base/Description/ESubDeviceLabel.h>
#include <Base/Device/EDeviceType.h>
#include <Base/Device/EFunctionType.h>
#include <Base/Device/EParamType.h>
#include <Base/Diag/EFunctionStatus.h>
#include <Base/Diag/ESubDeviceStatus.h>
#include <Base/Driver/EDriverType.h>
#include <NBO/NBO/ENBOType.h>
#include <Shared/Log/ELogLevel.h>
#include <string>
#include <vector>
namespace Inscoper {
class INSCOPER_EXPORT Utils {
public:
static std::string deviceTypeToString(Inscoper::EDeviceType deviceType);
static Inscoper::NBO::ENBOType deviceTypeToNBOType(Inscoper::EDeviceType deviceType);
static Inscoper::EDeviceType stringToDeviceType(const std::string &deviceTypeStr);
static std::string driverTypeToString(Inscoper::EDriverType driverType);
static Inscoper::EDriverType stringToDriverType(const std::string &driverTypeStr);
static std::string functionTypeToString(Inscoper::EFunctionType functionType);
static Inscoper::EFunctionType stringToFunctionType(const std::string &functionTypeStr);
static std::string paramTypeToString(Inscoper::EParamType paramType);
static Inscoper::EParamType stringToParamType(const std::string ¶mTypeStr);
static std::string subDeviceLabelToString(Inscoper::ESubDeviceLabel label);
static Inscoper::ESubDeviceLabel stringToSubDeviceLabel(const std::string &labelStr);
static std::string subDeviceStatusToString(Inscoper::ESubDeviceStatus status);
static Inscoper::ESubDeviceStatus stringToSubDeviceStatus(const std::string &statusStr);
static std::string functionStatusToString(Inscoper::EFunctionStatus status);
static Inscoper::EFunctionStatus stringToFunctionStatus(const std::string &statusStr);
static std::string connectionTypeDescToString(Inscoper::EConnectionTypeDesc connectionTypeDesc);
static Inscoper::EConnectionTypeDesc stringToConnectionTypeDesc(const std::string &connectionTypeDescStr);
static std::string logLevelToString(Inscoper::ELogLevel logLevel);
static Inscoper::ELogLevel stringToLogLevel(const std::string &logLevelStr);
static std::string dataToString(const std::vector<unsigned char> &data);
static int dataToInt(const std::vector<unsigned char> &data);
static double dataToDouble(const std::vector<unsigned char> &data);
static std::string boxTypeToString(Inscoper::EBoxType type);
static Inscoper::EBoxType stringToBoxType(const std::string &boxTypeStr);
static std::string stripAsTag(const std::string &str);
};
} // namespace Inscoper
#endif // UTILS_H
Updated on 2026-09-03 at 12:14:17 +0200