Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
StationLomFileCoder.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_LOGIC_FILES_STATIONLOMFILECODER_HPP_
2#define IV_SRC_LOGIC_FILES_STATIONLOMFILECODER_HPP_
3
5
6namespace iv::logic::files
7{
8
14{
15public:
21 static iv::logic::files::StationLomFile readStationLomFile(std::string_view lomFilePath);
22
29 static bool writeStationLomFile(const iv::logic::files::StationLomFile &lomFile, std::string_view lomFilePath);
30
31private:
32 struct Keys
33 {
34 struct LogicInfo
35 {
36 static constexpr std::string_view name {"Name"};
37 static constexpr std::string_view unit {"Unit"};
38 static constexpr std::string_view author {"Author"};
39 static constexpr std::string_view file {"File"};
40 static constexpr std::string_view date {"Date"};
41 static constexpr std::string_view time {"Time"};
42 static constexpr std::string_view version {"Version"};
43 static constexpr std::string_view description {"Description"};
44 };
46 {
47 static constexpr std::string_view orderOfExecution {"Order"};
48 static constexpr std::string_view name {"Name"};
49 static constexpr std::string_view type {"Type"};
50 static constexpr std::string_view subType {"SubType"};
51 };
53 {
54 static constexpr std::string_view type {"Type"};
55 static constexpr std::string_view channelUnitId {"ChannelUnitId"};
56 static constexpr std::string_view channelId {"ChannelId"};
57 static constexpr std::string_view globalIdOrValue {"GlobalIdOrValue"};
58 static constexpr std::string_view channelType {"ChannelType"};
59 static constexpr std::string_view parameterDescription {"Description"};
60 static constexpr std::string_view sParamValue {"String6"};
61 static constexpr std::string_view text {"Text"};
62 };
63
64 static constexpr std::string_view root {"LimData"};
65 static constexpr std::string_view logicInfo {"Info"};
66 static constexpr std::string_view logicBlocks {"Blocks"};
67 static constexpr std::string_view logicBlock {"Block"};
68 static constexpr std::string_view logicParams {"Params"};
69 static constexpr std::string_view logicParam {"Param"};
70 };
72 {
73 static constexpr std::string string {};
75 {
76 static constexpr uint16_t orderOfExecution {0};
77 static constexpr std::string name {};
78 static constexpr uint8_t type {0};
79 static constexpr uint8_t subType {0};
80 };
82 {
83 static constexpr uint32_t type {0};
84 static constexpr uint16_t channelUnitId {0};
85 static constexpr uint16_t channelId {0};
86 static constexpr uint32_t globalIdOrValue {0};
87 static constexpr std::string channelType {};
88 static constexpr std::string parameterDescription {};
89 static constexpr std::string sParamValue {};
90 static constexpr std::string text {};
91 };
92 };
93};
94
95}// namespace iv::logic::files
96
97#endif//IV_SRC_LOGIC_FILES_STATIONLOMFILECODER_HPP_
Class to encode and decode Station LOM files.
Definition StationLomFileCoder.hpp:14
static bool writeStationLomFile(const iv::logic::files::StationLomFile &lomFile, std::string_view lomFilePath)
Write a Station LOM file.
Definition StationLomFileCoder.cpp:68
static iv::logic::files::StationLomFile readStationLomFile(std::string_view lomFilePath)
Read a Station LOM file.
Definition StationLomFileCoder.cpp:8
Definition LomFileCoder.cpp:13
static constexpr uint8_t subType
Definition StationLomFileCoder.hpp:79
static constexpr uint16_t orderOfExecution
Definition StationLomFileCoder.hpp:76
static constexpr std::string name
Definition StationLomFileCoder.hpp:77
static constexpr uint8_t type
Definition StationLomFileCoder.hpp:78
static constexpr std::string sParamValue
Definition StationLomFileCoder.hpp:89
static constexpr std::string text
Definition StationLomFileCoder.hpp:90
static constexpr std::string channelType
Definition StationLomFileCoder.hpp:87
static constexpr uint16_t channelId
Definition StationLomFileCoder.hpp:85
static constexpr uint32_t globalIdOrValue
Definition StationLomFileCoder.hpp:86
static constexpr uint16_t channelUnitId
Definition StationLomFileCoder.hpp:84
static constexpr std::string parameterDescription
Definition StationLomFileCoder.hpp:88
static constexpr uint32_t type
Definition StationLomFileCoder.hpp:83
Definition StationLomFileCoder.hpp:72
Definition StationLomFileCoder.hpp:46
static constexpr std::string_view name
Definition StationLomFileCoder.hpp:48
static constexpr std::string_view type
Definition StationLomFileCoder.hpp:49
static constexpr std::string_view subType
Definition StationLomFileCoder.hpp:50
static constexpr std::string_view orderOfExecution
Definition StationLomFileCoder.hpp:47
Definition StationLomFileCoder.hpp:35
static constexpr std::string_view description
Definition StationLomFileCoder.hpp:43
static constexpr std::string_view name
Definition StationLomFileCoder.hpp:36
static constexpr std::string_view file
Definition StationLomFileCoder.hpp:39
static constexpr std::string_view date
Definition StationLomFileCoder.hpp:40
static constexpr std::string_view unit
Definition StationLomFileCoder.hpp:37
static constexpr std::string_view version
Definition StationLomFileCoder.hpp:42
static constexpr std::string_view time
Definition StationLomFileCoder.hpp:41
static constexpr std::string_view author
Definition StationLomFileCoder.hpp:38
static constexpr std::string_view text
Definition StationLomFileCoder.hpp:61
static constexpr std::string_view channelId
Definition StationLomFileCoder.hpp:56
static constexpr std::string_view globalIdOrValue
Definition StationLomFileCoder.hpp:57
static constexpr std::string_view channelUnitId
Definition StationLomFileCoder.hpp:55
static constexpr std::string_view parameterDescription
Definition StationLomFileCoder.hpp:59
static constexpr std::string_view channelType
Definition StationLomFileCoder.hpp:58
static constexpr std::string_view type
Definition StationLomFileCoder.hpp:54
static constexpr std::string_view sParamValue
Definition StationLomFileCoder.hpp:60
Definition StationLomFileCoder.hpp:33
static constexpr std::string_view logicInfo
Definition StationLomFileCoder.hpp:65
static constexpr std::string_view logicParams
Definition StationLomFileCoder.hpp:68
static constexpr std::string_view logicParam
Definition StationLomFileCoder.hpp:69
static constexpr std::string_view logicBlock
Definition StationLomFileCoder.hpp:67
static constexpr std::string_view logicBlocks
Definition StationLomFileCoder.hpp:66
static constexpr std::string_view root
Definition StationLomFileCoder.hpp:64
Main structure of the Station Logic LOM file. This file contains the needed information to execute th...
Definition structs.hpp:223