#include <CUnitsRestrictions.hpp>
|
static std::set< uint16_t > | getExistingUnits () |
|
static std::map< iv::types::unitId, iv::units::eUnitType > | getExistingUnitsWithUnitType () |
|
static std::set< uint16_t > | getExistingUnitChannels (uint16_t unitId) |
|
static std::map< iv::types::channelOrder, iv::types::channelId > | getExistingUnitChannelsWithChannelId (uint16_t unitId) |
|
static bool | canAddUnit (iv::types::unitId unitId, iv::units::eUnitType unitType, std::string &returnMsg) |
|
static bool | canAddChannels (std::string &returnMsg) |
|
static bool | canAddChannel (iv::types::unitId unitId, iv::types::channelOrder channelOrder, iv::channels::eChannelBaseType channelBaseType, std::string &returnMsg) |
|
static bool | canDeleteChannel (iv::types::unitId unitId, iv::types::channelOrder channelId, std::string &returnMsg) |
|
static bool | isARestrictedUnit (iv::units::eUnitType unitType) |
|
static bool | isARestrictedChannel (iv::units::eUnitType unitType, iv::types::channelOrder channelOrder) |
|
static bool | hasCanAFail (iv::units::eUnitType unitType) |
|
static bool | hasCanBFail (iv::units::eUnitType unitType) |
|
static bool | hasCanCFail (iv::units::eUnitType unitType) |
|
static bool | canAddTanks (std::string &returnMsg) |
|
static bool | isValidUnitChannel (const TUnitChannel &unitChannel) |
|
static bool | isChannelWATankChangeable (uint16_t unitId, uint16_t channelId) |
|
◆ TUnitChannel
◆ CUnitsRestrictions() [1/3]
CUnitsRestrictions::CUnitsRestrictions |
( |
| ) |
|
|
default |
◆ CUnitsRestrictions() [2/3]
◆ CUnitsRestrictions() [3/3]
◆ ~CUnitsRestrictions()
CUnitsRestrictions::~CUnitsRestrictions |
( |
| ) |
|
|
default |
◆ canAddChannel()
canAddChannel returns true if there is no problem in adding the channel to the model; false otherwise.
- Parameters
-
[in] | unitId | unitId of the channel to add. |
[in] | channelOrder | m_channelId of the channel to add. |
[in] | channelBaseType | channel base type of the channel to add. |
[out] | returnMsg | message to return. |
◆ canAddChannels()
bool CUnitsRestrictions::canAddChannels |
( |
std::string & | returnMsg | ) |
|
|
static |
canAddChannels returns true if there are units added and are not of type 'Undefined'; false otherwise.
◆ canAddTanks()
bool CUnitsRestrictions::canAddTanks |
( |
std::string & | returnMsg | ) |
|
|
static |
◆ canAddUnit()
canAddChannel returns true if there is no problem in adding the unit to the model; false otherwise.
- Parameters
-
[in] | unitId | unitId of the unit to add. |
[in] | unitType | unitType of the unit to add. |
[out] | returnMsg | message to return. |
◆ canDeleteChannel()
canDeleteChannel returns true if the channel can be deleted; false otherwise.
- Parameters
-
[in] | unitId | unitId of the channel to delete. |
[in] | channelId | m_channelId of the channel to delete. |
[out] | returnMsg | message to return. |
◆ getExistingUnitChannels()
◆ getExistingUnitChannelsWithChannelId()
◆ getExistingUnits()
std::set< uint16_t > CUnitsRestrictions::getExistingUnits |
( |
| ) |
|
|
staticnodiscard |
◆ getExistingUnitsWithUnitType()
◆ getUsedUnitChannels()
std::set< uint16_t > CUnitsRestrictions::getUsedUnitChannels |
( |
uint16_t | unitId | ) |
const |
|
nodiscard |
◆ hasCanAFail()
◆ hasCanBFail()
◆ hasCanCFail()
◆ isARestrictedChannel()
◆ isARestrictedUnit()
◆ isChannelWATankChangeable()
bool CUnitsRestrictions::isChannelWATankChangeable |
( |
uint16_t | unitId, |
|
|
uint16_t | channelId ) |
|
staticnodiscard |
◆ isValidUnitChannel()
bool CUnitsRestrictions::isValidUnitChannel |
( |
const TUnitChannel & | unitChannel | ) |
|
|
staticnodiscard |
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following files: