Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
ChannelInterface.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MIMICS_CHANNELINTERFACE_HPP_
2#define IV_SRC_MIMICS_CHANNELINTERFACE_HPP_
3
6
7#include <memory>
8#include <optional>
9#include <string>
10#include <vector>
11
12namespace iv::mimics
13{
14
16{
17public:
18 ChannelInterface() = default;
19 ChannelInterface(const ChannelInterface &other) = default;
20 ~ChannelInterface() = default;
21
22 bool load(const iv::file::xml::node &nodeChannelInterface);
23 bool save(iv::file::xml::node &nodeChannelInterface) const;
24
25 std::optional<std::weak_ptr<iv::channels::AbstractChannel>> m_channelRefOpt;
26
27private:
28 struct Keys
29 {
30 static constexpr std::string_view channelId {"ChannelId"};
31 };
33 {
34 static constexpr iv::types::channelId channelId {};
35 };
36};
37
38}// namespace iv::mimics
39
40#endif//IV_SRC_MIMICS_CHANNELINTERFACE_HPP_
Definition xmlFile.hpp:15
Definition ChannelInterface.hpp:16
std::optional< std::weak_ptr< iv::channels::AbstractChannel > > m_channelRefOpt
Definition ChannelInterface.hpp:25
bool load(const iv::file::xml::node &nodeChannelInterface)
Definition ChannelInterface.cpp:8
bool save(iv::file::xml::node &nodeChannelInterface) const
Definition ChannelInterface.cpp:21
ChannelInterface(const ChannelInterface &other)=default
Definition GeneratorPmsBuilders.cpp:9
std::string channelId
Definition types.hpp:66
Definition ChannelInterface.hpp:33
static constexpr iv::types::channelId channelId
Definition ChannelInterface.hpp:34
Definition ChannelInterface.hpp:29
static constexpr std::string_view channelId
Definition ChannelInterface.hpp:30