Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
DynamicText_1_0.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MIMICS_RETRO_ELEMENTS_DYNAMICTEXT_1_0_HPP_
2#define IV_SRC_MIMICS_RETRO_ELEMENTS_DYNAMICTEXT_1_0_HPP_
3
4#include "mimics/enums.hpp"
8
9namespace iv::mimics::retro
10{
11
13{
14public:
16 ~DynamicText_1_0() override = default;
17
18 bool load(const iv::file::xml::node &nodeControlMimic) override;
19 bool save(iv::file::xml::node &nodeControlMimic) const override;
20 [[nodiscard]] iv::mimics::retro::stringMimicElementType getElementType() const override;
21
22 [[nodiscard]] std::shared_ptr<AbstractRetroMimicElement> toNextVersion() const override;
23 [[nodiscard]] std::shared_ptr<iv::mimics::AbstractMimicElement> toMimicElement() const override;
24
25 // iv::mimics::AbstractMimicElement
28
31
34
35 // iv::mimics::Text
37
42
43 // iv::mimics::elements::DynamicText
44 std::map<iv::types::order, iv::mimics::support::DynamicTextCondition> m_conditions;
45 std::string m_defaultMessage;
46
47 struct Keys
48 {
49 // iv::mimics::AbstractMimicElement
50 static constexpr std::string_view mimicElementType {"Type"};
51 static constexpr std::string_view width {"Width"};
52 static constexpr std::string_view height {"Height"};
53
54 // iv::mimics::Text
55 static constexpr std::string_view textColor {"Color"};
56 static constexpr std::string_view hasBackground {"HasBackground"};
57 static constexpr std::string_view backgroundColor {"BackgroundColor"};
58 static constexpr std::string_view hasUnderline {"HasUnderline"};
59 static constexpr std::string_view underlineColor {"UnderlineColor"};
60 static constexpr std::string_view lengthLine {"UnderlineLength"};
61 static constexpr std::string_view lineWidth {"UnderlineWidth"};
62
63 // iv::mimics::elements::DynamicText
64 static constexpr std::string_view defaultMessage {"DefaultMessage"};
65 };
67 {
68 // iv::mimics::AbstractMimicElement
69 static constexpr std::string string {};
70 static constexpr std::string mimicElementType = {"DynamicText"};
71 static constexpr iv::types::width width {50};
72 static constexpr iv::types::height height {50};
73
74 // iv::mimics::Text
76 static constexpr bool hasUnderline {false};
78 static constexpr iv::types::length lengthLine {50};
79 static constexpr iv::types::width lineWidth {3};
80
81 // iv::mimics::elements::DynamicText
82 static constexpr std::string defaultMessage {"###"};
83 };
84 struct Sections
85 {
86 // iv::mimics::AbstractMimicElement
87 static constexpr std::string_view titleSettings {"TitleSettings"};
88 static constexpr std::string_view location {"Location"};
89 static constexpr std::string_view onlineVariables {"OnlineVariables"};
90 static constexpr std::string_view addedAlarms {"AddedAlarms"};
91 static constexpr std::string_view addedChannel {"AddedChannel"};
92
93 // iv::mimics::Text
94 static constexpr std::string_view textAttributes {"TextAttributes"};
95
96 // iv::mimics::elements::DynamicText
97 static constexpr std::string_view dynamicTextIndicator {"DynamicTextIndicator"};
98 static constexpr std::string_view conditions {"Conditions"};
99 static constexpr std::string_view condition {"Condition"};
100 };
101};
102
103}// namespace iv::mimics::retro
104
105#endif//IV_SRC_MIMICS_RETRO_ELEMENTS_DYNAMICTEXT_1_0_HPP_
Definition xmlFile.hpp:15
Definition AbstractRetroMimicElement.hpp:12
Definition DynamicText_1_0.hpp:13
iv::types::length m_underlineLength
Definition DynamicText_1_0.hpp:40
iv::mimics::retro::stringMimicElementType getElementType() const override
Definition DynamicText_1_0.cpp:125
iv::types::color m_textColor
Definition DynamicText_1_0.hpp:36
iv::mimics::Location m_location
Definition DynamicText_1_0.hpp:27
DynamicText_1_0()
Definition DynamicText_1_0.cpp:9
iv::types::color m_underlineColor
Definition DynamicText_1_0.hpp:39
std::shared_ptr< iv::mimics::AbstractMimicElement > toMimicElement() const override
Definition DynamicText_1_0.cpp:187
iv::mimics::Background m_background
Definition DynamicText_1_0.hpp:33
bool m_hasUnderline
Definition DynamicText_1_0.hpp:38
iv::types::width m_width
Definition DynamicText_1_0.hpp:29
iv::types::width m_underlineWidth
Definition DynamicText_1_0.hpp:41
iv::mimics::TitleSettings m_titleSettings
Definition DynamicText_1_0.hpp:32
iv::mimics::eMimicElementType m_mimicElementType
Definition DynamicText_1_0.hpp:26
std::map< iv::types::order, iv::mimics::support::DynamicTextCondition > m_conditions
Definition DynamicText_1_0.hpp:44
bool save(iv::file::xml::node &nodeControlMimic) const override
Definition DynamicText_1_0.cpp:87
~DynamicText_1_0() override=default
iv::types::height m_height
Definition DynamicText_1_0.hpp:30
bool load(const iv::file::xml::node &nodeControlMimic) override
Definition DynamicText_1_0.cpp:30
std::shared_ptr< AbstractRetroMimicElement > toNextVersion() const override
Definition DynamicText_1_0.cpp:130
std::string m_defaultMessage
Definition DynamicText_1_0.hpp:45
constexpr iv::types::color White
Definition color.hpp:222
constexpr iv::types::color Red
Definition color.hpp:179
Definition AbstractRetroMimicElement.hpp:9
std::string stringMimicElementType
Definition types.hpp:9
eMimicElementType
Definition enums.hpp:8
double height
Definition types.hpp:14
double length
Definition types.hpp:15
double width
Definition types.hpp:23
uint32_t color
Definition types.hpp:12
Definition structs.hpp:176
Definition structs.hpp:15
Definition structs.hpp:67
Definition DynamicText_1_0.hpp:67
static constexpr iv::types::length lengthLine
Definition DynamicText_1_0.hpp:78
static constexpr iv::types::width lineWidth
Definition DynamicText_1_0.hpp:79
static constexpr bool hasUnderline
Definition DynamicText_1_0.hpp:76
static constexpr std::string mimicElementType
Definition DynamicText_1_0.hpp:70
static constexpr std::string defaultMessage
Definition DynamicText_1_0.hpp:82
static constexpr iv::types::color textColor
Definition DynamicText_1_0.hpp:75
static constexpr iv::types::height height
Definition DynamicText_1_0.hpp:72
static constexpr iv::types::width width
Definition DynamicText_1_0.hpp:71
static constexpr iv::types::color underlineColor
Definition DynamicText_1_0.hpp:77
Definition DynamicText_1_0.hpp:48
static constexpr std::string_view backgroundColor
Definition DynamicText_1_0.hpp:57
static constexpr std::string_view lineWidth
Definition DynamicText_1_0.hpp:61
static constexpr std::string_view underlineColor
Definition DynamicText_1_0.hpp:59
static constexpr std::string_view mimicElementType
Definition DynamicText_1_0.hpp:50
static constexpr std::string_view lengthLine
Definition DynamicText_1_0.hpp:60
static constexpr std::string_view textColor
Definition DynamicText_1_0.hpp:55
static constexpr std::string_view hasBackground
Definition DynamicText_1_0.hpp:56
static constexpr std::string_view hasUnderline
Definition DynamicText_1_0.hpp:58
static constexpr std::string_view width
Definition DynamicText_1_0.hpp:51
static constexpr std::string_view defaultMessage
Definition DynamicText_1_0.hpp:64
static constexpr std::string_view height
Definition DynamicText_1_0.hpp:52
Definition DynamicText_1_0.hpp:85
static constexpr std::string_view dynamicTextIndicator
Definition DynamicText_1_0.hpp:97
static constexpr std::string_view condition
Definition DynamicText_1_0.hpp:99
static constexpr std::string_view addedChannel
Definition DynamicText_1_0.hpp:91
static constexpr std::string_view onlineVariables
Definition DynamicText_1_0.hpp:89
static constexpr std::string_view addedAlarms
Definition DynamicText_1_0.hpp:90
static constexpr std::string_view conditions
Definition DynamicText_1_0.hpp:98
static constexpr std::string_view titleSettings
Definition DynamicText_1_0.hpp:87
static constexpr std::string_view location
Definition DynamicText_1_0.hpp:88
static constexpr std::string_view textAttributes
Definition DynamicText_1_0.hpp:94