EHM DAL 0.2.3
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
reputation_200.h
1#pragma once
2
3// Application headers
4#include "include/data_types/attribute/attribute.h"
5
6namespace ehm_dal::data_types {
10template<class T>
11class Reputation200 : public Attribute<T>
12{
13public:
14 Reputation200(const T value = 0)
16 {}
17
18private:
19 inline constexpr T upperLimit() const override { return static_cast<T>(200); }
20};
21
22} // 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
T value() const
Returns the raw value which can otherwise be accessed via QVariant data(const qint32 role).
Definition: data_type.h:33
The Reputation200 class is a template class for 0-200 reputation attribute ranges.
Definition: reputation_200.h:12
namespace ehm_dal::data_types
Definition: attribute.h:6