From 1cb8a4c73ce7e326ad015b57595bb24afbb153d6 Mon Sep 17 00:00:00 2001 From: Claudius Holeksa Date: Tue, 23 May 2023 23:09:06 +0200 Subject: General setup of files --- src/block.h | 10 ++++++++++ src/descriptor.h | 6 ++++++ src/lbm_unit.h | 31 +++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 src/block.h create mode 100644 src/descriptor.h create mode 100644 src/lbm_unit.h (limited to 'src') diff --git a/src/block.h b/src/block.h new file mode 100644 index 0000000..0d9de22 --- /dev/null +++ b/src/block.h @@ -0,0 +1,10 @@ +#pragma once + +#include "descriptor.h" + +namespace kel { +template +class block; + + +} diff --git a/src/descriptor.h b/src/descriptor.h new file mode 100644 index 0000000..4ef41e5 --- /dev/null +++ b/src/descriptor.h @@ -0,0 +1,6 @@ +#pragma once + +namespace kel { +template +class descriptor {}; +} diff --git a/src/lbm_unit.h b/src/lbm_unit.h new file mode 100644 index 0000000..20c6e70 --- /dev/null +++ b/src/lbm_unit.h @@ -0,0 +1,31 @@ +#pragma once + +#include + +#include + +namespace kel { +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