Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
ControlLock.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MIMICS_MODEL_TRAITS_CONTROLLOCK_HPP_
2#define IV_SRC_MIMICS_MODEL_TRAITS_CONTROLLOCK_HPP_
3
6
7namespace iv::mimics::traits
8{
9
11{
12public:
14
15 bool loadControlLock(const iv::file::xml::node &nodeControlLock);
16 bool saveControlLock(iv::file::xml::node &nodeControlLock) const;
17
18 //Controller
20 const std::shared_ptr<std::vector<std::weak_ptr<iv::channels::AbstractChannel>>> &channelsInControl) const;
21 void mapChannelsControlLock(const std::function<void(std::weak_ptr<iv::channels::AbstractChannel> &)> &mapFunction);
22
23 // UI
25
27
29
30private:
31 struct Keys
32 {
33 static constexpr std::string_view hasControlLock {"WithCommandReset"};
34 };
36 {
37 static constexpr bool hasControlLock {false};
38 };
39 struct Sections
40 {
41 static constexpr std::string_view tripFeedback {"TripFeedback"};
42 static constexpr std::string_view controlLock {"ResetCommand"};
43 };
44};
45
46}// namespace iv::mimics::traits
47
48#endif//IV_SRC_MIMICS_MODEL_TRAITS_CONTROLLOCK_HPP_
Definition AbstractComponentGUI.hpp:30
Definition xmlFile.hpp:15
Definition Channel.hpp:12
Definition ControlLock.hpp:11
bool m_hasControlLock
Definition ControlLock.hpp:26
void getChannelsControlLock(const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const
Definition ControlLock.cpp:38
bool saveControlLock(iv::file::xml::node &nodeControlLock) const
Definition ControlLock.cpp:27
iv::mimics::Channel m_controlLock
Definition ControlLock.hpp:28
AbstractComponentGUI * panelEditControlLock()
Definition ControlLock.cpp:57
void mapChannelsControlLock(const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction)
Definition ControlLock.cpp:48
ControlLock()
Definition ControlLock.cpp:11
bool loadControlLock(const iv::file::xml::node &nodeControlLock)
Definition ControlLock.cpp:16
Definition enums.hpp:200
static constexpr bool hasControlLock
Definition ControlLock.hpp:37
Definition ControlLock.hpp:32
static constexpr std::string_view hasControlLock
Definition ControlLock.hpp:33
Definition ControlLock.hpp:40
static constexpr std::string_view tripFeedback
Definition ControlLock.hpp:41
static constexpr std::string_view controlLock
Definition ControlLock.hpp:42