Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CLogicsComponentChannel.hpp
Go to the documentation of this file.
1#ifndef LIBS_LOGIC_CLOGICSCOMPONENTCHANNEL_HPP_
2#define LIBS_LOGIC_CLOGICSCOMPONENTCHANNEL_HPP_
3
6
7#include <memory>
8#include <string>
9
16{
17public:
18 static inline const std::string kUnsetChannel = "???";
19
20 explicit CLogicsComponentChannel(const iv::types::logic::ComponentType &componentType);
22 const std::string &name);
24 ~CLogicsComponentChannel() override = default;
29
30 iv::file::xml::node read(const iv::file::xml::node &node) override;
31 iv::file::xml::node save(iv::file::xml::node &node) const override;
32
33 [[nodiscard]] std::string maxText() const override;
34
35 [[nodiscard]] std::string toString() const;
36
37 void setChannel(const std::weak_ptr<iv::channels::AbstractChannel> &channel);
38
39 [[nodiscard]] std::string getTag() const;
40 [[nodiscard]] std::string getType() const;
41
42 [[nodiscard]] const std::weak_ptr<iv::channels::AbstractChannel> &getChannel() const;
43 uint32_t getFirmwareGlobalId() const;
44
45 std::string getMainText() const override;
46 std::string getDescriptiveText() const override;
47
48private:
49 std::weak_ptr<iv::channels::AbstractChannel> m_channelRef;
50};
51
52#endif /* LIBS_LOGIC_CLOGICSCOMPONENTCHANNEL_HPP_ */
uint32_t TId
Definition AbstractCanvasItem.hpp:47
Definition CLogicsComponentChannel.hpp:16
CLogicsComponentChannel()=delete
void setChannel(const std::weak_ptr< iv::channels::AbstractChannel > &channel)
Definition CLogicsComponentChannel.cpp:109
static const std::string kUnsetChannel
Definition CLogicsComponentChannel.hpp:18
std::string getDescriptiveText() const override
Definition CLogicsComponentChannel.cpp:154
CLogicsComponentChannel & operator=(const CLogicsComponentChannel &other)=delete
CLogicsComponentChannel & operator=(CLogicsComponentChannel &&other)=delete
std::string maxText() const override
Definition CLogicsComponentChannel.cpp:80
CLogicsComponentChannel(CLogicsComponentChannel &&other)=delete
CLogicsComponentChannel(const CLogicsComponentChannel &other)=delete
std::string getTag() const
Definition CLogicsComponentChannel.cpp:114
std::weak_ptr< iv::channels::AbstractChannel > m_channelRef
Definition CLogicsComponentChannel.hpp:49
iv::file::xml::node save(iv::file::xml::node &node) const override
Definition CLogicsComponentChannel.cpp:56
iv::file::xml::node read(const iv::file::xml::node &node) override
Definition CLogicsComponentChannel.cpp:31
const std::weak_ptr< iv::channels::AbstractChannel > & getChannel() const
Definition CLogicsComponentChannel.cpp:134
std::string getType() const
Definition CLogicsComponentChannel.cpp:124
uint32_t getFirmwareGlobalId() const
Definition CLogicsComponentChannel.cpp:139
std::string toString() const
Definition CLogicsComponentChannel.cpp:99
std::string getMainText() const override
Definition CLogicsComponentChannel.cpp:149
~CLogicsComponentChannel() override=default
Definition CLogicsComponentOthers.hpp:12
Definition xmlFile.hpp:15
Tuple containing the type of logic component (logic blocks, library blocks & others blocks).
Definition types.hpp:22