diff options
author | hop311 <hop3114@gmail.com> | 2024-10-27 12:59:12 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-10-29 23:55:20 +0100 |
commit | 129a1c321498ff627b785ae998801d83f9926bb9 (patch) | |
tree | 7f3226794139e08a16106fc39d9adcf43c099df7 /src/openvic-simulation/scripts/ConditionalWeight.hpp | |
parent | 9a5468ceb4361059fcefae1a383a7c29b4f4e7be (diff) |
Finish ConditionalWeight base key parsing (including days/months/years)condition-scripts-prep-work
Diffstat (limited to 'src/openvic-simulation/scripts/ConditionalWeight.hpp')
-rw-r--r-- | src/openvic-simulation/scripts/ConditionalWeight.hpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/openvic-simulation/scripts/ConditionalWeight.hpp b/src/openvic-simulation/scripts/ConditionalWeight.hpp index f667cd7..fcab0a6 100644 --- a/src/openvic-simulation/scripts/ConditionalWeight.hpp +++ b/src/openvic-simulation/scripts/ConditionalWeight.hpp @@ -14,7 +14,7 @@ namespace OpenVic { using condition_weight_item_t = std::variant<condition_weight_t, condition_weight_group_t>; enum class base_key_t : uint8_t { - BASE, FACTOR, MONTHS + BASE, FACTOR, TIME }; using enum base_key_t; @@ -31,15 +31,6 @@ namespace OpenVic { ConditionalWeight(scope_type_t new_initial_scope, scope_type_t new_this_scope, scope_type_t new_from_scope); ConditionalWeight(ConditionalWeight&&) = default; - static constexpr std::string_view base_key_to_string(base_key_t base_key) { - switch (base_key) { - case base_key_t::BASE: return "base"; - case base_key_t::FACTOR: return "factor"; - case base_key_t::MONTHS: return "months"; // TODO - add functionality for days or months or years - default: return "INVALID BASE KEY"; - } - } - NodeTools::node_callback_t expect_conditional_weight(base_key_t base_key); bool parse_scripts(DefinitionManager const& definition_manager); |