aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/interface/LoadBase.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-01-25 22:12:26 +0100
committer GitHub <noreply@github.com>2024-01-25 22:12:26 +0100
commitbe24f8d1871b318ee241c03f6722ad2394a820f2 (patch)
tree97a1bff45f91d4b02ef62c4dd9a8e584699e5fdd /src/openvic-simulation/interface/LoadBase.hpp
parent3e2ee2cd3553cb0a5949d7a34c5ef2f10ff5c949 (diff)
parent14ba9531d118fab87b360db4aae765807fca3cec (diff)
Merge pull request #140 from OpenVicProject/case-rework
Added StringMapCase and case insensitive expect_dictionary_keys
Diffstat (limited to 'src/openvic-simulation/interface/LoadBase.hpp')
-rw-r--r--src/openvic-simulation/interface/LoadBase.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openvic-simulation/interface/LoadBase.hpp b/src/openvic-simulation/interface/LoadBase.hpp
index 3363651..10b0169 100644
--- a/src/openvic-simulation/interface/LoadBase.hpp
+++ b/src/openvic-simulation/interface/LoadBase.hpp
@@ -10,14 +10,14 @@ namespace OpenVic {
protected:
LoadBase() = default;
- virtual bool _fill_key_map(NodeTools::key_map_t&, Context...) = 0;
+ virtual bool _fill_key_map(NodeTools::case_insensitive_key_map_t&, Context...) = 0;
public:
LoadBase(LoadBase&&) = default;
virtual ~LoadBase() = default;
bool load(ast::NodeCPtr node, Context... context) {
- NodeTools::key_map_t key_map;
+ NodeTools::case_insensitive_key_map_t key_map;
bool ret = _fill_key_map(key_map, context...);
ret &= NodeTools::expect_dictionary_key_map(std::move(key_map))(node);
return ret;
@@ -45,7 +45,7 @@ namespace OpenVic {
protected:
Named() = default;
- virtual bool _fill_key_map(NodeTools::key_map_t& key_map, Context...) override {
+ virtual bool _fill_key_map(NodeTools::case_insensitive_key_map_t& key_map, Context...) override {
using namespace OpenVic::NodeTools;
return add_key_map_entries(key_map, "name", ONE_EXACTLY, expect_string(assign_variable_callback_string(name)));
}