#include <AbstractChannel.hpp>
|
virtual | ~AbstractChannel ()=default |
|
virtual void | update (AbstractChannel &other) |
|
virtual bool | load (const iv::file::xml::node &nodeChannel) |
|
virtual bool | save (iv::file::xml::node &nodeChannel) const |
|
virtual std::shared_ptr< AbstractChannel > | clone ()=0 |
|
void | deinitialize () |
|
virtual void | processAlarm (std::shared_ptr< iv::alarms::AlarmsManager > alarmManager)=0 |
|
virtual void | processValue ()=0 |
|
void | setValue (std::optional< iv::types::channelValue > value, const std::optional< iv::alarms::Alarm > &alarm, const std::optional< iv::types::networkId > &networkOrigin) |
|
virtual void | calculateAlarm () |
|
template<typename T >
requires std::is_same_v<T, bool> || std::is_same_v<T, int32_t> || std::is_same_v<T, uint32_t> || std::is_same_v<T, float> || std::is_same_v<T, uint64_t> || std::is_same_v<T, double> || std::is_same_v<T, std::string> || std::is_same_v<T, const char *> |
T | getValue () const |
|
iv::types::channelValue | getRawData () const |
|
virtual std::string | getRawDataUnit () const |
|
const iv::types::channelId & | getChannelId () const |
|
iv::types::channelOrder | getChannelOrder () const |
|
const iv::channels::ChannelAlarmParameters & | getAlarmParameters () const |
|
const std::map< iv::types::networkId, std::shared_ptr< iv::channels::INetworkInfo > > & | channelsNetwork () const |
|
bool | isWired () const |
|
bool | isVirtual () const |
|
bool | isAnalog () const |
|
bool | isDigital () const |
|
bool | isString () const |
|
bool | isSerialLine () const |
|
bool | isAlarmCalculated () const |
|
bool | hasValue () const |
|
std::string | getAlarmIconName () const |
|
iv::types::color | getColorStateRgb () const |
|
iv::alarms::eAlarmPriority | getAlarmPriority () const |
|
iv::alarms::eAlarmState | getAlarmState () const |
|
iv::alarms::eAlarmType | getAlarmType () const |
| TODO: Por defecto tal vez debería haber un undefined o algo así, pq en detalles del canal se dibuja — cd no es valido.
|
|
iv::channels::eInhibitionCondition | getInhibitionConditionState () const |
|
std::weak_ptr< iv::units::Unit > | getUnit () const |
|
virtual std::string | getEngineeringUnitsStr () const |
|
virtual std::string | formatValue () const =0 |
|
virtual iv::channels::FormattedValue | formattedValue () const =0 |
|
◆ ~AbstractChannel()
virtual iv::channels::AbstractChannel::~AbstractChannel |
( |
| ) |
|
|
virtualdefault |
◆ AbstractChannel() [1/2]
◆ AbstractChannel() [2/2]
◆ calculateAlarm()
void iv::channels::AbstractChannel::calculateAlarm |
( |
| ) |
|
|
virtual |
◆ channelsNetwork()
◆ clone()
virtual std::shared_ptr< AbstractChannel > iv::channels::AbstractChannel::clone |
( |
| ) |
|
|
pure virtual |
◆ deinitialize()
void iv::channels::AbstractChannel::deinitialize |
( |
| ) |
|
◆ formattedValue()
◆ formatValue()
virtual std::string iv::channels::AbstractChannel::formatValue |
( |
| ) |
const |
|
nodiscardpure virtual |
◆ getAlarmIconName()
std::string iv::channels::AbstractChannel::getAlarmIconName |
( |
| ) |
const |
|
nodiscard |
◆ getAlarmParameters()
◆ getAlarmPriority()
◆ getAlarmState()
◆ getAlarmType()
TODO: Por defecto tal vez debería haber un undefined o algo así, pq en detalles del canal se dibuja — cd no es valido.
◆ getChannelId()
◆ getChannelOrder()
◆ getColorStateRgb()
◆ getEngineeringUnitsStr()
std::string iv::channels::AbstractChannel::getEngineeringUnitsStr |
( |
| ) |
const |
|
nodiscardvirtual |
◆ getInhibitionConditionState()
◆ getRawData()
◆ getRawDataUnit()
std::string iv::channels::AbstractChannel::getRawDataUnit |
( |
| ) |
const |
|
virtual |
◆ getUnit()
std::weak_ptr< iv::units::Unit > iv::channels::AbstractChannel::getUnit |
( |
| ) |
const |
|
nodiscard |
◆ getValue()
template<typename T >
requires std::is_same_v<T, bool> || std::is_same_v<T, int32_t> || std::is_same_v<T, uint32_t> || std::is_same_v<T, float> || std::is_same_v<T, uint64_t> || std::is_same_v<T, double> || std::is_same_v<T, std::string> || std::is_same_v<T, const char *>
T iv::channels::AbstractChannel::getValue |
( |
| ) |
const |
◆ hasValue()
bool iv::channels::AbstractChannel::hasValue |
( |
| ) |
const |
|
nodiscard |
◆ isAlarmCalculated()
bool iv::channels::AbstractChannel::isAlarmCalculated |
( |
| ) |
const |
◆ isAnalog()
bool iv::channels::AbstractChannel::isAnalog |
( |
| ) |
const |
|
nodiscard |
◆ isDigital()
bool iv::channels::AbstractChannel::isDigital |
( |
| ) |
const |
|
nodiscard |
◆ isSerialLine()
bool iv::channels::AbstractChannel::isSerialLine |
( |
| ) |
const |
◆ isString()
bool iv::channels::AbstractChannel::isString |
( |
| ) |
const |
|
nodiscard |
◆ isVirtual()
bool iv::channels::AbstractChannel::isVirtual |
( |
| ) |
const |
|
nodiscard |
◆ isWired()
bool iv::channels::AbstractChannel::isWired |
( |
| ) |
const |
|
nodiscard |
◆ load()
◆ processAlarm()
◆ processValue()
virtual void iv::channels::AbstractChannel::processValue |
( |
| ) |
|
|
pure virtual |
◆ save()
◆ setRawData()
◆ setValue()
◆ shouldStoreAlarm()
bool iv::channels::AbstractChannel::shouldStoreAlarm |
( |
iv::alarms::Alarm & | alarm | ) |
const |
|
protected |
◆ update()
◆ iv::channels::controller::AbstractChannel
◆ m_alarm
◆ m_alarmParameters
◆ m_area
◆ m_baseType
◆ m_channelOrder
◆ m_channelsNetwork
◆ m_controller
◆ m_deinitTimeout
◆ m_idUnit
Info redundant for performance
◆ m_indexChannel
◆ m_info
◆ m_inhibitionChannel
std::weak_ptr<AbstractChannel> iv::channels::AbstractChannel::m_inhibitionChannel |
◆ m_isEnabled
bool iv::channels::AbstractChannel::m_isEnabled |
◆ m_lastNetworkOrigin
◆ m_lastReceivedAlarm
◆ m_lastReceivedValue
◆ m_lastStationOrigin
◆ m_mutexUpdate
std::mutex iv::channels::AbstractChannel::m_mutexUpdate |
◆ m_networkOrigin
◆ m_shipyardTag
std::string iv::channels::AbstractChannel::m_shipyardTag |
◆ m_shouldCalculateAlarm
std::atomic<bool> iv::channels::AbstractChannel::m_shouldCalculateAlarm |
◆ m_specificType
◆ m_stationOrigin
◆ m_tag
◆ m_value
◆ m_verificationStatus
The documentation for this class was generated from the following files: