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

#include <CUnitPatterns.hpp>

Public Member Functions

const CUnitPatterngetPattern (iv::units::eUnitType unitType) const
 
const CUnitPattern::SChannelTypeWiredgetWiredChannelType (iv::units::eUnitType unitType, uint16_t channelId) const
 
std::vector< iv::channels::eChannelSpecificTypegetNonWiredChannelTypesAllowed (iv::units::eUnitType unitType) const
 
bool isWiredChannelWATankChangeable (iv::units::eUnitType unitType, uint16_t channelId) const
 
 CUnitPatterns (const CUnitPatterns &other)=delete
 
 CUnitPatterns (CUnitPatterns &&other)=delete
 
CUnitPatternsoperator= (const CUnitPatterns &other)=delete
 
CUnitPatternsoperator= (CUnitPatterns &&other)=delete
 

Static Public Member Functions

static const CUnitPatternsgetInstance ()
 
static std::pair< uint16_t, uint16_t > getEmptyUnitChannel ()
 
static std::pair< uint16_t, uint16_t > getDefaultUnitChannel ()
 

Static Public Attributes

static constexpr uint16_t kUnitsEmptyId = 0
 
static constexpr uint32_t kUnitsStartId = 1
 
static constexpr uint16_t kChannelsEmptyId = 0
 
static constexpr uint16_t kChannelsStartId = 1
 
static constexpr uint16_t kMaxChannelsAIM18 = 18
 
static constexpr uint16_t kMaxChannelsDIM36 = 36
 
static constexpr uint16_t kMaxChannelsDIOM24 = 24
 
static constexpr uint16_t kMaxChannelsPMM = 27
 
static constexpr uint16_t kMaxChannelsTIM28 = 32
 
static constexpr uint16_t kMaxChannelsSLIM = 4
 

Private Member Functions

 CUnitPatterns ()
 
 ~CUnitPatterns ()=default
 

Static Private Member Functions

static int32_t prvMaxWiredChannels (iv::units::eUnitType unitType)
 

Private Attributes

std::map< iv::units::eUnitType, CUnitPatternm_unitPatterns
 TODO RAG: Pq esta clase no es directamente un map de eUnitType a CUnitPattern?
 

Detailed Description

Singleton class defining the patterns for each type of unit and providing only consulting methods.

Constructor & Destructor Documentation

◆ CUnitPatterns() [1/3]

CUnitPatterns::CUnitPatterns ( const CUnitPatterns & other)
delete

◆ CUnitPatterns() [2/3]

CUnitPatterns::CUnitPatterns ( CUnitPatterns && other)
delete

◆ CUnitPatterns() [3/3]

CUnitPatterns::CUnitPatterns ( )
private

◆ ~CUnitPatterns()

CUnitPatterns::~CUnitPatterns ( )
privatedefault

Member Function Documentation

◆ getDefaultUnitChannel()

std::pair< uint16_t, uint16_t > CUnitPatterns::getDefaultUnitChannel ( )
static

◆ getEmptyUnitChannel()

std::pair< uint16_t, uint16_t > CUnitPatterns::getEmptyUnitChannel ( )
static

◆ getInstance()

const CUnitPatterns & CUnitPatterns::getInstance ( )
static

◆ getNonWiredChannelTypesAllowed()

std::vector< iv::channels::eChannelSpecificType > CUnitPatterns::getNonWiredChannelTypesAllowed ( iv::units::eUnitType unitType) const
nodiscard

◆ getPattern()

const CUnitPattern & CUnitPatterns::getPattern ( iv::units::eUnitType unitType) const
nodiscard

◆ getWiredChannelType()

const CUnitPattern::SChannelTypeWired * CUnitPatterns::getWiredChannelType ( iv::units::eUnitType unitType,
uint16_t channelId ) const
nodiscard

◆ isWiredChannelWATankChangeable()

bool CUnitPatterns::isWiredChannelWATankChangeable ( iv::units::eUnitType unitType,
uint16_t channelId ) const
nodiscard

◆ operator=() [1/2]

CUnitPatterns & CUnitPatterns::operator= ( const CUnitPatterns & other)
delete

◆ operator=() [2/2]

CUnitPatterns & CUnitPatterns::operator= ( CUnitPatterns && other)
delete

◆ prvMaxWiredChannels()

int32_t CUnitPatterns::prvMaxWiredChannels ( iv::units::eUnitType unitType)
staticprivate

Member Data Documentation

◆ kChannelsEmptyId

uint16_t CUnitPatterns::kChannelsEmptyId = 0
staticconstexpr

◆ kChannelsStartId

uint16_t CUnitPatterns::kChannelsStartId = 1
staticconstexpr

◆ kMaxChannelsAIM18

uint16_t CUnitPatterns::kMaxChannelsAIM18 = 18
staticconstexpr

◆ kMaxChannelsDIM36

uint16_t CUnitPatterns::kMaxChannelsDIM36 = 36
staticconstexpr

◆ kMaxChannelsDIOM24

uint16_t CUnitPatterns::kMaxChannelsDIOM24 = 24
staticconstexpr

◆ kMaxChannelsPMM

uint16_t CUnitPatterns::kMaxChannelsPMM = 27
staticconstexpr

◆ kMaxChannelsSLIM

uint16_t CUnitPatterns::kMaxChannelsSLIM = 4
staticconstexpr

◆ kMaxChannelsTIM28

uint16_t CUnitPatterns::kMaxChannelsTIM28 = 32
staticconstexpr

◆ kUnitsEmptyId

uint16_t CUnitPatterns::kUnitsEmptyId = 0
staticconstexpr

◆ kUnitsStartId

uint32_t CUnitPatterns::kUnitsStartId = 1
staticconstexpr

◆ m_unitPatterns

std::map<iv::units::eUnitType, CUnitPattern> CUnitPatterns::m_unitPatterns
private

TODO RAG: Pq esta clase no es directamente un map de eUnitType a CUnitPattern?


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