Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
ControlManager.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MODEL_CONTROL_CONTROLMANAGER_HPP_
2#define IV_SRC_MODEL_CONTROL_CONTROLMANAGER_HPP_
3
4#include "core/types.hpp"
8
9#include <map>
10#include <memory>
11#include <set>
12
13namespace iv::model::control
14{
15
17{
18public:
20 ~ControlManager() = default;
21
22 void update(const ControlManager &other);
23 bool load(std::string_view pathControls);
24 bool save(std::string_view pathControls,
25 const std::optional<std::shared_ptr<std::vector<std::shared_ptr<iv::file::xml::File>>>> &savingFilesOut =
26 std::nullopt) const;
27
28 [[nodiscard]] std::shared_ptr<iv::model::control::ValveManager> getValveManager() const;
29 [[nodiscard]] std::shared_ptr<iv::model::control::DamperManager> getDamperManager() const;
30
31private:
32 std::shared_ptr<iv::model::control::ValveManager> m_valveManager;
33 std::shared_ptr<iv::model::control::DamperManager> m_damperManager;
34
35 struct Sections
36 {
37 static constexpr std::string_view valves {"Valves"};
38 static constexpr std::string_view dampers {"Dampers"};
39 };
40};
41
42}// namespace iv::model::control
43
44#endif//IV_SRC_MODEL_CONTROL_CONTROLMANAGER_HPP_
Definition ControlManager.hpp:17
ControlManager()
Definition ControlManager.cpp:6
bool load(std::string_view pathControls)
Definition ControlManager.cpp:12
std::shared_ptr< iv::model::control::DamperManager > m_damperManager
Definition ControlManager.hpp:33
std::shared_ptr< iv::model::control::ValveManager > m_valveManager
Definition ControlManager.hpp:32
bool save(std::string_view pathControls, const std::optional< std::shared_ptr< std::vector< std::shared_ptr< iv::file::xml::File > > > > &savingFilesOut=std::nullopt) const
Definition ControlManager.cpp:37
std::shared_ptr< iv::model::control::ValveManager > getValveManager() const
Definition ControlManager.cpp:60
std::shared_ptr< iv::model::control::DamperManager > getDamperManager() const
Definition ControlManager.cpp:65
void update(const ControlManager &other)
Definition ControlManager.cpp:70
Definition ControlManager.cpp:4
Definition ControlManager.hpp:36
static constexpr std::string_view valves
Definition ControlManager.hpp:37
static constexpr std::string_view dampers
Definition ControlManager.hpp:38