Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
Maintenance.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MIMICS_SUPPORT_MAINTENANCE_HPP_
2#define IV_SRC_MIMICS_SUPPORT_MAINTENANCE_HPP_
3
6
8{
9
11{
12public:
14
15 bool load(const iv::file::xml::node &nodeMaintenance);
16 bool save(iv::file::xml::node &nodeMaintenance) 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 hasMaintenance {"HasMaintenance"};
34 };
36 {
37 static constexpr bool hasMaintenance {false};
38 };
39 struct Sections
40 {
41 static constexpr std::string_view runningHours {"RunningHours"};
42 static constexpr std::string_view resetRunningHours {"ResetRunningHours"};
43 };
44};
45
46}// namespace iv::mimics::support
47
48#endif//IV_SRC_MIMICS_SUPPORT_MAINTENANCE_HPP_
Definition AbstractComponentGUI.hpp:30
Definition xmlFile.hpp:15
Definition Channel.hpp:12
Definition Maintenance.hpp:11
Maintenance()
Definition Maintenance.cpp:12
bool load(const iv::file::xml::node &nodeMaintenance)
Definition Maintenance.cpp:17
iv::mimics::Channel m_resetRunningHours
Definition Maintenance.hpp:29
iv::mimics::Channel m_runningHours
Definition Maintenance.hpp:28
AbstractComponentGUI * panelEditMaintenance()
Definition Maintenance.cpp:68
bool m_hasMaintenance
Definition Maintenance.hpp:27
bool save(iv::file::xml::node &nodeMaintenance) const
Definition Maintenance.cpp:31
void getChannels(const std::shared_ptr< std::vector< std::weak_ptr< iv::channels::AbstractChannel > > > &channelsInControl) const
Definition Maintenance.cpp:45
void mapChannels(const std::function< void(std::weak_ptr< iv::channels::AbstractChannel > &)> &mapFunction)
Definition Maintenance.cpp:58
Definition Attempt.cpp:9
static constexpr bool hasMaintenance
Definition Maintenance.hpp:37
Definition Maintenance.hpp:32
static constexpr std::string_view hasMaintenance
Definition Maintenance.hpp:33
Definition Maintenance.hpp:40
static constexpr std::string_view resetRunningHours
Definition Maintenance.hpp:42
static constexpr std::string_view runningHours
Definition Maintenance.hpp:41