Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
FeedbackOpCl.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MIMICS_MODEL_TRAITS_FEEDBACKOPCL_HPP_
2#define IV_SRC_MIMICS_MODEL_TRAITS_FEEDBACKOPCL_HPP_
3
4#include "mimics/enums.hpp"
7
8namespace iv::mimics::traits
9{
10
12{
13public:
15
16 bool loadFeedbackOpCl(const iv::file::xml::node &nodeStartStop);
17 bool saveFeedbackOpCl(iv::file::xml::node &nodeStartStop) const;
18
19 //Controller
21 const std::shared_ptr<std::vector<std::weak_ptr<iv::channels::AbstractChannel>>> &channelsInControl) const;
22 void
23 mapChannelsFeedbackOpCl(const std::function<void(std::weak_ptr<iv::channels::AbstractChannel> &)> &mapFunction);
24 [[nodiscard]] eOpClState getState() const;
25 [[nodiscard]] bool hasLinkedChannels() const;
26
27 // UI
29
32
33private:
34 struct Sections
35 {
36 static constexpr std::string_view openFeedback {"OpenFeedback"};
37 static constexpr std::string_view closeFeedback {"CloseFeedback"};
38 };
39};
40
41}// namespace iv::mimics::traits
42
43#endif//IV_SRC_MIMICS_MODEL_TRAITS_FEEDBACKOPCL_HPP_
Definition AbstractComponentGUI.hpp:30
Definition xmlFile.hpp:15
Definition Channel.hpp:12
Definition FeedbackOpCl.hpp:12
void mapChannelsFeedbackOpCl(const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction)
Definition FeedbackOpCl.cpp:50
bool loadFeedbackOpCl(const iv::file::xml::node &nodeStartStop)
Definition FeedbackOpCl.cpp:14
iv::mimics::Channel m_closeFeedback
Definition FeedbackOpCl.hpp:31
bool saveFeedbackOpCl(iv::file::xml::node &nodeStartStop) const
Definition FeedbackOpCl.cpp:27
iv::mimics::Channel m_openFeedback
Definition FeedbackOpCl.hpp:30
eOpClState getState() const
Definition FeedbackOpCl.cpp:75
void getChannelsFeedbackOpCl(const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const
Definition FeedbackOpCl.cpp:40
AbstractComponentGUI * panelEditFeedbacks()
Definition FeedbackOpCl.cpp:57
bool hasLinkedChannels() const
Definition FeedbackOpCl.cpp:134
Definition enums.hpp:200
eOpClState
Definition enums.hpp:203
Definition FeedbackOpCl.hpp:35
static constexpr std::string_view openFeedback
Definition FeedbackOpCl.hpp:36
static constexpr std::string_view closeFeedback
Definition FeedbackOpCl.hpp:37