aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/dataloader/NodeTools.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-10-15 22:40:25 +0200
committer GitHub <noreply@github.com>2023-10-15 22:40:25 +0200
commit7c1b2d8cd4a543d201ada8325bcf29e2662d0b46 (patch)
treed8a60c3c32989fd48d71be1c9177cfc68bd038c7 /src/openvic-simulation/dataloader/NodeTools.hpp
parentd1125bf50be8fd415e2ce5179fdf446918e16d93 (diff)
parent104ae73748d350b5cc292646f5f851bff96ee947 (diff)
Merge pull request #53 from OpenVicProject/allow-empty
allow_empty option for expect_identifier_or_string
Diffstat (limited to 'src/openvic-simulation/dataloader/NodeTools.hpp')
-rw-r--r--src/openvic-simulation/dataloader/NodeTools.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/dataloader/NodeTools.hpp b/src/openvic-simulation/dataloader/NodeTools.hpp
index e98a4b0..42e7c5d 100644
--- a/src/openvic-simulation/dataloader/NodeTools.hpp
+++ b/src/openvic-simulation/dataloader/NodeTools.hpp
@@ -33,7 +33,7 @@ namespace OpenVic {
node_callback_t expect_identifier(callback_t<std::string_view> callback);
node_callback_t expect_string(callback_t<std::string_view> callback, bool allow_empty = true);
- node_callback_t expect_identifier_or_string(callback_t<std::string_view> callback);
+ node_callback_t expect_identifier_or_string(callback_t<std::string_view> callback, bool allow_empty = false);
node_callback_t expect_bool(callback_t<bool> callback);
node_callback_t expect_int_bool(callback_t<bool> callback);