Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::alarms::WatchcallNode Struct Reference

#include <WatchcallNode.hpp>

Collaboration diagram for iv::alarms::WatchcallNode:
[legend]

Classes

struct  DefaultValues
 
struct  Keys
 
struct  Sections
 

Public Member Functions

 WatchcallNode ()=default
 
 WatchcallNode (const iv::types::repeaterId &repeaterId)
 
 WatchcallNode (const WatchcallNode &other)
 
 WatchcallNode (WatchcallNode &&other) noexcept
 
WatchcallNodeoperator= (const WatchcallNode &other)
 
WatchcallNodeoperator= (WatchcallNode &&other) noexcept
 
bool load (const iv::file::xml::node &node)
 
bool save (iv::file::xml::node &node) const
 
bool isOn () const
 
void setHeartbeatChannel (const std::shared_ptr< iv::channels::AbstractChannel > &channel)
 
void setCommFailureChannel (const std::shared_ptr< iv::channels::AbstractChannel > &channel)
 
std::weak_ptr< iv::channels::AbstractChannelgetHeartbeatChannel () const
 
std::weak_ptr< iv::channels::AbstractChannelgetCommFailureChannel () const
 

Public Attributes

iv::types::repeaterId repeaterId {DefaultValues::repeaterId}
 
iv::model::LocalizedText names
 
bool isChief {DefaultValues::isChief}
 
bool isMessRoom {DefaultValues::isMessRoom}
 
iv::alarms::watchcallNodeStatus nodeStatus {}
 
iv::model::eShipArea area {DefaultValues::area}
 
iv::alarms::eWatchCallNodeTypes nodeType {DefaultValues::nodeType}
 
std::optional< iv::types::ipAddressipAddress {std::nullopt}
 
std::optional< iv::types::ipPortipPort {std::nullopt}
 
std::optional< std::weak_ptr< iv::model::comms::NetworkData > > networkData {std::nullopt}
 
iv::types::timestamp lastHeartbeat {0}
 

Private Attributes

std::weak_ptr< iv::channels::AbstractChannelheartbeatChannel
 
std::weak_ptr< iv::channels::AbstractChannelcommFailureChannel
 

Constructor & Destructor Documentation

◆ WatchcallNode() [1/4]

iv::alarms::WatchcallNode::WatchcallNode ( )
default

◆ WatchcallNode() [2/4]

iv::alarms::WatchcallNode::WatchcallNode ( const iv::types::repeaterId & repeaterId)
explicit

◆ WatchcallNode() [3/4]

iv::alarms::WatchcallNode::WatchcallNode ( const WatchcallNode & other)

◆ WatchcallNode() [4/4]

iv::alarms::WatchcallNode::WatchcallNode ( WatchcallNode && other)
noexcept

Member Function Documentation

◆ getCommFailureChannel()

std::weak_ptr< iv::channels::AbstractChannel > iv::alarms::WatchcallNode::getCommFailureChannel ( ) const

◆ getHeartbeatChannel()

std::weak_ptr< iv::channels::AbstractChannel > iv::alarms::WatchcallNode::getHeartbeatChannel ( ) const

◆ isOn()

bool iv::alarms::WatchcallNode::isOn ( ) const

◆ load()

bool iv::alarms::WatchcallNode::load ( const iv::file::xml::node & node)

◆ operator=() [1/2]

WatchcallNode & iv::alarms::WatchcallNode::operator= ( const WatchcallNode & other)

◆ operator=() [2/2]

WatchcallNode & iv::alarms::WatchcallNode::operator= ( WatchcallNode && other)
noexcept

◆ save()

bool iv::alarms::WatchcallNode::save ( iv::file::xml::node & node) const

◆ setCommFailureChannel()

void iv::alarms::WatchcallNode::setCommFailureChannel ( const std::shared_ptr< iv::channels::AbstractChannel > & channel)

◆ setHeartbeatChannel()

void iv::alarms::WatchcallNode::setHeartbeatChannel ( const std::shared_ptr< iv::channels::AbstractChannel > & channel)

Member Data Documentation

◆ area

iv::model::eShipArea iv::alarms::WatchcallNode::area {DefaultValues::area}

◆ commFailureChannel

std::weak_ptr<iv::channels::AbstractChannel> iv::alarms::WatchcallNode::commFailureChannel
private

◆ heartbeatChannel

std::weak_ptr<iv::channels::AbstractChannel> iv::alarms::WatchcallNode::heartbeatChannel
private

◆ ipAddress

std::optional<iv::types::ipAddress> iv::alarms::WatchcallNode::ipAddress {std::nullopt}

◆ ipPort

std::optional<iv::types::ipPort> iv::alarms::WatchcallNode::ipPort {std::nullopt}

◆ isChief

bool iv::alarms::WatchcallNode::isChief {DefaultValues::isChief}

◆ isMessRoom

bool iv::alarms::WatchcallNode::isMessRoom {DefaultValues::isMessRoom}

◆ lastHeartbeat

iv::types::timestamp iv::alarms::WatchcallNode::lastHeartbeat {0}

◆ names

iv::model::LocalizedText iv::alarms::WatchcallNode::names

◆ networkData

std::optional<std::weak_ptr<iv::model::comms::NetworkData> > iv::alarms::WatchcallNode::networkData {std::nullopt}

◆ nodeStatus

iv::alarms::watchcallNodeStatus iv::alarms::WatchcallNode::nodeStatus {}

◆ nodeType

iv::alarms::eWatchCallNodeTypes iv::alarms::WatchcallNode::nodeType {DefaultValues::nodeType}

◆ repeaterId

iv::types::repeaterId iv::alarms::WatchcallNode::repeaterId {DefaultValues::repeaterId}

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