Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
Attempt.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MIMICS_SUPPORT_ATTEMPT_HPP_
2#define IV_SRC_MIMICS_SUPPORT_ATTEMPT_HPP_
3
6
8{
9
11{
12public:
13 Attempt();
14
15 bool load(const iv::file::xml::node &nodeAttempt);
16 bool save(iv::file::xml::node &nodeAttempt) const;
17
18 //controller
19 void getChannels(
20 const std::shared_ptr<std::vector<std::weak_ptr<iv::channels::AbstractChannel>>> &channelsInControl) const;
21 void mapChannels(const std::function<void(std::weak_ptr<iv::channels::AbstractChannel> &)> &mapFunction);
22
23 // UI
25
26private:
30
31 struct Keys
32 {
33 static constexpr std::string_view hasAttempts {"HasAttempts"};
34 };
36 {
37 static constexpr bool hasAttempts {false};
38 };
39 struct Sections
40 {
41 static constexpr std::string_view attemptsToStart {"AttemptsToStart"};
42 static constexpr std::string_view resetAttemptsToStart {"ResetAttemptsToStart"};
43 };
44};
45
46}// namespace iv::mimics::support
47
48#endif//IV_SRC_MIMICS_SUPPORT_ATTEMPT_HPP_
Definition AbstractComponentGUI.hpp:30
Definition xmlFile.hpp:15
Definition Channel.hpp:12
Definition Attempt.hpp:11
bool m_hasAttempts
Definition Attempt.hpp:27
void mapChannels(const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction)
Definition Attempt.cpp:57
bool save(iv::file::xml::node &nodeAttempt) const
Definition Attempt.cpp:30
iv::mimics::Channel m_attemptsToStart
Definition Attempt.hpp:28
bool load(const iv::file::xml::node &nodeAttempt)
Definition Attempt.cpp:16
void getChannels(const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const
Definition Attempt.cpp:44
Attempt()
Definition Attempt.cpp:11
AbstractComponentGUI * panelEditAttempt()
Definition Attempt.cpp:67
iv::mimics::Channel m_resetAttemptsToStart
Definition Attempt.hpp:29
Definition Attempt.cpp:9
static constexpr bool hasAttempts
Definition Attempt.hpp:37
Definition Attempt.hpp:32
static constexpr std::string_view hasAttempts
Definition Attempt.hpp:33
static constexpr std::string_view attemptsToStart
Definition Attempt.hpp:41
static constexpr std::string_view resetAttemptsToStart
Definition Attempt.hpp:42