From e7f5a1110bfafcd605b9330f9c7d3f5147298ed3 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 2 Apr 2025 23:36:32 +0200 Subject: Reworking the current structure --- c++/lbm_unit.hpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 c++/lbm_unit.hpp (limited to 'c++/lbm_unit.hpp') diff --git a/c++/lbm_unit.hpp b/c++/lbm_unit.hpp new file mode 100644 index 0000000..c4d09f6 --- /dev/null +++ b/c++/lbm_unit.hpp @@ -0,0 +1,33 @@ +#pragma once + +#include + +#include + +namespace kel { +namespace lbm { +namespace lbm_type { +struct meter { + static constexpr std::string_view name = "meter_l"; + static constexpr std::string_view short_name = "m_l"; +}; + +struct second { + static constexpr std::string_view name = "second_l"; + static constexpr std::string_view short_name = "s_l"; +}; +} + +template +using lbm_meter = unit>; + +template +using lbm_second = unit>; + +template +using lbm_velocity = unit, unit_component>; + +template +using lbm_acceleration = unit, unit_component>; +} +} -- cgit v1.2.3