EHM DAL 0.2.3
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
height.h
1#pragma once
2
3// Application headers
4#include "include/data_types/attribute/attribute.h"
5
6namespace ehm_dal::data_types {
10class Height : public Attribute<quint8>
11{
12public:
13 Height(quint8 height_centimetres = 0);
14
18 double toMetres() const;
19
20private:
21 inline constexpr quint8 upperLimit() const override { return 255; }
22};
23
24} // namespace ehm_dal::data_types
The Attribute class is a template class for attribute-like values with lower and upper limit values.
Definition: attribute.h:12
The Height class stores height in centimetres.
Definition: height.h:11
double toMetres() const
Returns the height in metres.
namespace ehm_dal::data_types
Definition: attribute.h:6