Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
structs.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_TANKS_STRUCTS_HPP_
2#define IV_SRC_TANKS_STRUCTS_HPP_
3
6#include "tanks/enums.hpp"
7
8#include <memory>
9
10namespace iv::tanks
11{
12
14{
15 double xMin;
16 double yMin;
17 double zMin;
18 double xMax;
19 double yMax;
20 double zMax;
21
22 double capacity;
23 double thickness;
25};
26
28{
29 bool load(const iv::file::xml::node &node);
30 bool save(iv::file::xml::node &node) const;
31
32 std::weak_ptr<iv::channels::AbstractChannel> sensorChannelRef;
35
36private:
37 struct Sections
38 {
39 static constexpr std::string_view sensorChannel {"SensorChannel"};
40 };
41 struct Keys
42 {
43 static constexpr std::string_view sensorType {"SensorType"};
44 static constexpr std::string_view channelRef {"ChannelRef"};
45 static constexpr std::string_view atmosphericBarOpt {"AtmosphericBarOpt"};
46 };
48 {
49 static constexpr std::string channelRef {};
50 static constexpr std::string sensorTypeString {"Sounding"};
52 static constexpr double atmosphericBarOpt {1};
53 };
54};
55
56}// namespace iv::tanks
57
58#endif//IV_SRC_TANKS_STRUCTS_HPP_
Definition xmlFile.hpp:15
Definition enums.hpp:5
eSensorType
Definition enums.hpp:8
static constexpr std::string channelRef
Definition structs.hpp:49
static constexpr std::string sensorTypeString
Definition structs.hpp:50
static constexpr iv::tanks::eSensorType sensorType
Definition structs.hpp:51
static constexpr double atmosphericBarOpt
Definition structs.hpp:52
Definition structs.hpp:42
static constexpr std::string_view sensorType
Definition structs.hpp:43
static constexpr std::string_view channelRef
Definition structs.hpp:44
static constexpr std::string_view atmosphericBarOpt
Definition structs.hpp:45
static constexpr std::string_view sensorChannel
Definition structs.hpp:39
Definition structs.hpp:28
bool load(const iv::file::xml::node &node)
Definition structs.cpp:10
std::weak_ptr< iv::channels::AbstractChannel > sensorChannelRef
Definition structs.hpp:32
iv::tanks::eSensorType sensorType
Definition structs.hpp:33
double atmosphericBarOpt
Definition structs.hpp:34
bool save(iv::file::xml::node &node) const
Definition structs.cpp:29
Definition structs.hpp:14
double zMin
Definition structs.hpp:17
double yMax
Definition structs.hpp:19
double capacity
Definition structs.hpp:22
double zMax
Definition structs.hpp:20
double yMin
Definition structs.hpp:16
double xMax
Definition structs.hpp:18
double xMin
Definition structs.hpp:15
double permeability
Definition structs.hpp:24
double thickness
Definition structs.hpp:23