Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
FeedbackRunningStopped.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MIMICS_MODEL_TRAITS_FEEDBACKRUNNINGSTOPPED_HPP_
2#define IV_SRC_MIMICS_MODEL_TRAITS_FEEDBACKRUNNINGSTOPPED_HPP_
3
5#include "mimics/structs.hpp"
7
8namespace iv::mimics::traits
9{
10
12{
13public:
15
16 bool loadFeedbackRunningStopped(const iv::file::xml::node &nodeStartStop);
17 bool saveFeedbackRunningStopped(iv::file::xml::node &nodeStartStop) const;
18
19 //Controller
21 const std::shared_ptr<std::vector<std::weak_ptr<iv::channels::AbstractChannel>>> &channelsInControl) const;
23 const std::function<void(std::weak_ptr<iv::channels::AbstractChannel> &)> &mapFunction);
24 [[nodiscard]] eRunningStoppedState getState() const;
25 [[nodiscard]] bool hasLinkedChannels() const;
26
27 // UI
29
31
34
35private:
36 struct Keys
37 {
38 static constexpr std::string_view hasStoppedFeedback {"HasStoppedFeedback"};
39 };
41 {
42 static constexpr bool hasStoppedFeedback {
43 true};//de momento hasta que se ponga el checkbox en el panel de edición de elementos.
44 };
45 struct Sections
46 {
47 static constexpr std::string_view runFeedback {"RunFeedback"};
48 static constexpr std::string_view stoppedFeedback {"StoppedFeedback"};
49 };
50};
51
52}// namespace iv::mimics::traits
53
54#endif//IV_SRC_MIMICS_MODEL_TRAITS_FEEDBACKRUNNINGSTOPPED_HPP_
Definition AbstractComponentGUI.hpp:30
Definition xmlFile.hpp:15
Definition Channel.hpp:12
Definition FeedbackRunningStopped.hpp:12
eRunningStoppedState getState() const
Definition FeedbackRunningStopped.cpp:91
iv::mimics::Channel m_runFeedback
Definition FeedbackRunningStopped.hpp:30
bool saveFeedbackRunningStopped(iv::file::xml::node &nodeStartStop) const
Definition FeedbackRunningStopped.cpp:31
void mapChannelsFeedbackRunningStopped(const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction)
Definition FeedbackRunningStopped.cpp:58
AbstractComponentGUI * panelEditFeedback()
Definition FeedbackRunningStopped.cpp:69
void getChannelsFeedbackRunningStopped(const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const
Definition FeedbackRunningStopped.cpp:45
bool hasLinkedChannels() const
Definition FeedbackRunningStopped.cpp:150
FeedbackRunningStopped()
Definition FeedbackRunningStopped.cpp:12
iv::mimics::Channel m_stoppedFeedback
Definition FeedbackRunningStopped.hpp:33
bool m_hasStoppedFeedback
Definition FeedbackRunningStopped.hpp:32
bool loadFeedbackRunningStopped(const iv::file::xml::node &nodeStartStop)
Definition FeedbackRunningStopped.cpp:17
Definition enums.hpp:200
eRunningStoppedState
Definition enums.hpp:211
Definition FeedbackRunningStopped.hpp:41
static constexpr bool hasStoppedFeedback
Definition FeedbackRunningStopped.hpp:42
Definition FeedbackRunningStopped.hpp:37
static constexpr std::string_view hasStoppedFeedback
Definition FeedbackRunningStopped.hpp:38
Definition FeedbackRunningStopped.hpp:46
static constexpr std::string_view stoppedFeedback
Definition FeedbackRunningStopped.hpp:48
static constexpr std::string_view runFeedback
Definition FeedbackRunningStopped.hpp:47