aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-11 20:26:36 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-11 20:26:36 +0300
commit657a7161bd0fe58ee88e68bcb6b1c68d4f97f30a (patch)
treeab491bf84a13d4424146e917442a350db4bdeec1
parent686c2a4a8bf2ba291149b51c0c97ac2ed2ebb157 (diff)
Add unknown_name_mode for manifest parsing
-rw-r--r--libbutl/manifest-forward.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/libbutl/manifest-forward.hxx b/libbutl/manifest-forward.hxx
index 68864a1..c5aa356 100644
--- a/libbutl/manifest-forward.hxx
+++ b/libbutl/manifest-forward.hxx
@@ -10,6 +10,16 @@ namespace butl
class manifest_parser;
class manifest_serializer;
class manifest_name_value;
+
+ // The way manifest implementation should proceed when unknown value name is
+ // encountered during parsing.
+ //
+ enum class unknown_name_mode
+ {
+ skip,
+ stop,
+ fail
+ };
}
#endif // LIBBUTL_MANIFEST_FORWARD_HXX