Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
OrderStartStop.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MIMICS_MODEL_TRAITS_ORDERSTARTSTOP_HPP_
2#define IV_SRC_MIMICS_MODEL_TRAITS_ORDERSTARTSTOP_HPP_
3
5#include "mimics/structs.hpp"
7
8namespace iv::mimics::traits
9{
10
12{
13public:
15
16 bool loadOrderStartStop(const iv::file::xml::node &nodeStartStop);
17 bool saveOrderStartStop(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 mapChannelsOrderStartStop(const std::function<void(std::weak_ptr<iv::channels::AbstractChannel> &)> &mapFunction);
24
25 // UI
27
30
31private:
32 struct Sections
33 {
34 static constexpr std::string_view startOrder {"StartOrder"};
35 static constexpr std::string_view stopOrder {"StopOrder"};
36 };
37};
38
39}// namespace iv::mimics::traits
40
41#endif//IV_SRC_MIMICS_MODEL_TRAITS_ORDERSTARTSTOP_HPP_
Definition AbstractComponentGUI.hpp:30
Definition xmlFile.hpp:15
Definition Channel.hpp:12
Definition OrderStartStop.hpp:12
bool saveOrderStartStop(iv::file::xml::node &nodeStartStop) const
Definition OrderStartStop.cpp:27
AbstractComponentGUI * panelEditOrder()
Definition OrderStartStop.cpp:57
void getChannelsOrderStartStop(const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const
Definition OrderStartStop.cpp:40
void mapChannelsOrderStartStop(const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction)
Definition OrderStartStop.cpp:50
iv::mimics::Channel m_stopOrder
Definition OrderStartStop.hpp:29
iv::mimics::Channel m_startOrder
Definition OrderStartStop.hpp:28
bool loadOrderStartStop(const iv::file::xml::node &nodeStartStop)
Definition OrderStartStop.cpp:14
Definition enums.hpp:200
Definition OrderStartStop.hpp:33
static constexpr std::string_view startOrder
Definition OrderStartStop.hpp:34
static constexpr std::string_view stopOrder
Definition OrderStartStop.hpp:35