1#ifndef IV_SRC_UNITS_MODEL_STRUCTS_HPP_
2#define IV_SRC_UNITS_MODEL_STRUCTS_HPP_
19 UnitLogicInfo(std::string_view _name, std::string_view _version, std::string_view _author,
67 static constexpr std::string_view
name {
"Name"};
68 static constexpr std::string_view
version {
"Version"};
69 static constexpr std::string_view
author {
"Author"};
70 static constexpr std::string_view
description {
"Description"};
71 static constexpr std::string_view
date {
"Date"};
76 static constexpr std::string
name {};
78 static constexpr std::string
author {};
88 UnitData(std::string_view product_, std::string_view firmware_,
const char serialNumber_[4],
132 static constexpr std::string_view
product {
"Product"};
133 static constexpr std::string_view
firmware {
"Firmware"};
Definition xmlFile.hpp:15
T getAttribute(const std::string_view key, T defaultValue) const
Definition xmlFile.hpp:33
bool addAttribute(const std::string_view key, T value)
Definition xmlFile.hpp:77
uint64_t timestamp
Definition types.hpp:21
uint16_t unitId
Definition types.hpp:77
Definition AbstractChannel.hpp:16
Definition structs.hpp:138
static constexpr std::string firmware
Definition structs.hpp:140
static constexpr std::string product
Definition structs.hpp:139
static constexpr std::string serialNumber
Definition structs.hpp:141
static constexpr std::string pcbVersion
Definition structs.hpp:142
Definition structs.hpp:131
static constexpr std::string_view serialNumber
Definition structs.hpp:134
static constexpr std::string_view product
Definition structs.hpp:132
static constexpr std::string_view firmware
Definition structs.hpp:133
static constexpr std::string_view pcbVersion
Definition structs.hpp:135
Definition structs.hpp:127
static constexpr std::string_view unitLogicInfo
Definition structs.hpp:128
Definition structs.hpp:85
char serialNumber[4]
Definition structs.hpp:120
UnitData(const UnitData &data)
Definition structs.hpp:95
UnitData(std::string_view product_, std::string_view firmware_, const char serialNumber_[4], std::string_view pcbVersion_, iv::units::UnitLogicInfo &logic)
Definition structs.hpp:88
std::string pcbVersion
Definition structs.hpp:121
iv::types::timestamp lastProjectUpdate
Definition structs.hpp:122
UnitData & operator=(const UnitData &data)
Definition structs.hpp:104
std::string firmware
Definition structs.hpp:119
std::string product
Definition structs.hpp:118
iv::units::UnitLogicInfo unitLogicInfo
Definition structs.hpp:123
Definition structs.hpp:147
iv::types::unitId id
Definition structs.hpp:153
bool enabled
Definition structs.hpp:152
std::string name
Definition structs.hpp:154
UnitIdAndName()
Definition structs.hpp:148
std::string description
Definition structs.hpp:155
Definition structs.hpp:75
static constexpr std::string name
Definition structs.hpp:76
static constexpr std::string description
Definition structs.hpp:79
static constexpr std::string version
Definition structs.hpp:77
static constexpr iv::types::timestamp date
Definition structs.hpp:80
static constexpr std::string author
Definition structs.hpp:78
Definition structs.hpp:66
static constexpr std::string_view description
Definition structs.hpp:70
static constexpr std::string_view name
Definition structs.hpp:67
static constexpr std::string_view date
Definition structs.hpp:71
static constexpr std::string_view version
Definition structs.hpp:68
static constexpr std::string_view author
Definition structs.hpp:69
Definition structs.hpp:14
UnitLogicInfo(const UnitLogicInfo &data)
Definition structs.hpp:25
bool load(const iv::file::xml::node &node)
Definition structs.hpp:36
UnitLogicInfo(std::string_view _name, std::string_view _version, std::string_view _author, std::string_view _description, iv::types::timestamp _date)
Definition structs.hpp:19
UnitLogicInfo & operator=(const UnitLogicInfo &data)=default
iv::types::timestamp date
Definition structs.hpp:62
std::string description
Definition structs.hpp:61
std::string name
Definition structs.hpp:58
std::string author
Definition structs.hpp:60
bool save(iv::file::xml::node &node) const
Definition structs.hpp:47
std::string version
Definition structs.hpp:59
UnitLogicInfo()
Definition structs.hpp:15