Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CEnumCommon Class Reference

#include <CEnumCommon.hpp>

Public Types

enum class  ECompare { Less = -1 , Equal = 0 , Greater = 1 }
 
enum class  eType { Title , Value }
 

Static Public Member Functions

static iv::tanks::eTanksSoundingUnits engineeringUnitsToTankSoundingUnits (iv::eMeasurementUnit engineeringUnits)
 
static iv::eMeasurementUnit tankSoundingUnitsToEngineeringUnits (iv::tanks::eTanksSoundingUnits tanksSoundingUnits)
 
static std::string strAnalogSensorType (iv::channels::eAnalogSensorType analogSensorType, bool shortName=false)
 
static std::string strCommTypeConfig (iv::comms::eInterfaceType eCommTypeConfig)
 
static std::string strLanguageValue (iv::eLanguage eLanguage)
 
static std::string strLanguageSuffix (iv::eLanguage eLanguage)
 
static std::string strChannelArea (iv::channels::eChannelArea channelArea)
 
static std::string strShipArea (iv::model::eShipArea eShipArea)
 
static std::string strUserProfileValue (iv::diamar::eUserProfileType eUserProfileType)
 
static std::string strUserProfileImage (iv::diamar::eUserProfileType eUserProfileType)
 
static std::string strTankContentsType (iv::tanks::eTankContentsType eTankContentsType)
 
static std::string strTankSoundingUnits (iv::tanks::eTanksSoundingUnits eTanksSoundingUnits)
 
static iv::comms::eHeartbeatState heartbeatCodeToState (uint8_t heartbeatCode)
 

Static Public Attributes

static const std::map< iv::channels::eAnalogSensorType, const std::pair< std::string, std::string > > stringsAnalogSensorType
 
static const std::map< iv::eLanguage, const std::pair< std::string, std::string > > stringsLanguage
 
static const std::map< iv::diamar::eUserProfileType, const std::pair< std::string, std::string > > stringsUserProfileType
 
static const std::map< iv::model::eShipArea, const std::pair< std::string, std::string > > stringsShipArea
 

Member Enumeration Documentation

◆ ECompare

enum class CEnumCommon::ECompare
strong
Enumerator
Less 
Equal 
Greater 

◆ eType

enum class CEnumCommon::eType
strong
Enumerator
Title 
Value 

Member Function Documentation

◆ engineeringUnitsToTankSoundingUnits()

iv::tanks::eTanksSoundingUnits CEnumCommon::engineeringUnitsToTankSoundingUnits ( iv::eMeasurementUnit engineeringUnits)
static

◆ heartbeatCodeToState()

iv::comms::eHeartbeatState CEnumCommon::heartbeatCodeToState ( uint8_t heartbeatCode)
static

◆ strAnalogSensorType()

std::string CEnumCommon::strAnalogSensorType ( iv::channels::eAnalogSensorType analogSensorType,
bool shortName = false )
static

◆ strChannelArea()

std::string CEnumCommon::strChannelArea ( iv::channels::eChannelArea channelArea)
static

◆ strCommTypeConfig()

std::string CEnumCommon::strCommTypeConfig ( iv::comms::eInterfaceType eCommTypeConfig)
static

◆ strLanguageSuffix()

std::string CEnumCommon::strLanguageSuffix ( iv::eLanguage eLanguage)
static

◆ strLanguageValue()

std::string CEnumCommon::strLanguageValue ( iv::eLanguage eLanguage)
static

◆ strShipArea()

std::string CEnumCommon::strShipArea ( iv::model::eShipArea eShipArea)
static

◆ strTankContentsType()

std::string CEnumCommon::strTankContentsType ( iv::tanks::eTankContentsType eTankContentsType)
static

◆ strTankSoundingUnits()

std::string CEnumCommon::strTankSoundingUnits ( iv::tanks::eTanksSoundingUnits eTanksSoundingUnits)
static

◆ strUserProfileImage()

std::string CEnumCommon::strUserProfileImage ( iv::diamar::eUserProfileType eUserProfileType)
static

◆ strUserProfileValue()

std::string CEnumCommon::strUserProfileValue ( iv::diamar::eUserProfileType eUserProfileType)
static

◆ tankSoundingUnitsToEngineeringUnits()

iv::eMeasurementUnit CEnumCommon::tankSoundingUnitsToEngineeringUnits ( iv::tanks::eTanksSoundingUnits tanksSoundingUnits)
static

Member Data Documentation

◆ stringsAnalogSensorType

const std::map<iv::channels::eAnalogSensorType, const std::pair<std::string, std::string> > CEnumCommon::stringsAnalogSensorType
inlinestatic
Initial value:
{iv::channels::eAnalogSensorType::ActiveIntensity, {"AInt", "ActiveIntensity"}},
{iv::channels::eAnalogSensorType::PassiveIntensity, {"PInt", "PassiveIntensity"}},
{iv::channels::eAnalogSensorType::TimeUtc, {"TimeUTC", "Time UTC"}}}

◆ stringsLanguage

const std::map<iv::eLanguage, const std::pair<std::string, std::string> > CEnumCommon::stringsLanguage
inlinestatic
Initial value:
{
{iv::eLanguage::English, {"en", _("English")}},
{iv::eLanguage::German, {"de", _("German")}},
{iv::eLanguage::French, {"fr", _("French")}},
{iv::eLanguage::Spanish, {"es", _("Spanish")}},
{iv::eLanguage::Portuguese, {"pt", _("Portuguese")}}}
#define _(string)
Definition defines.hpp:169

◆ stringsShipArea

const std::map<iv::model::eShipArea, const std::pair<std::string, std::string> > CEnumCommon::stringsShipArea
inlinestatic
Initial value:
{
{iv::model::eShipArea::Ecr, {"Ecr", _("ECR")}},
{iv::model::eShipArea::Bridge, {"Bridge", _("Bridge")}},
{iv::model::eShipArea::Accommodation, {"Accommodation", _("Accommodation")}},
{iv::model::eShipArea::Cargo, {"Cargo", _("Cargo")}}}

◆ stringsUserProfileType

const std::map<iv::diamar::eUserProfileType, const std::pair<std::string, std::string> > CEnumCommon::stringsUserProfileType
inlinestatic

The documentation for this class was generated from the following files: