From 6ac4f3bcc0bd1306bf1a8dd1bebae1a00081c6b7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 8 Jan 2019 15:30:40 +0300 Subject: Add support for filtering during manifest parsing and serialization --- libbutl/manifest-serializer.ixx | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 libbutl/manifest-serializer.ixx (limited to 'libbutl/manifest-serializer.ixx') diff --git a/libbutl/manifest-serializer.ixx b/libbutl/manifest-serializer.ixx new file mode 100644 index 0000000..1108ba1 --- /dev/null +++ b/libbutl/manifest-serializer.ixx @@ -0,0 +1,13 @@ +// file : libbutl/manifest-serializer.ixx -*- C++ -*- +// copyright : Copyright (c) 2014-2018 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +namespace butl +{ + inline void manifest_serializer:: + next (const std::string& n, const std::string& v) + { + if (!filter_ || filter_ (n, v)) + write_next (n, v); + } +} -- cgit v1.1