aboutsummaryrefslogtreecommitdiff
path: root/build/name
diff options
context:
space:
mode:
Diffstat (limited to 'build/name')
-rw-r--r--build/name10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/name b/build/name
index f45930e..cf7427b 100644
--- a/build/name
+++ b/build/name
@@ -33,6 +33,16 @@ namespace build
name (std::string t, path d, std::string v)
: type (std::move (t)), dir (std::move (d)), value (std::move (v)) {}
+ bool
+ empty () const {type.empty () && dir.empty () && value.empty ();}
+
+ bool
+ simple () const {return type.empty () && dir.empty ();}
+
+ bool
+ directory () const
+ {return type.empty () && !dir.empty () && value.empty ();}
+
std::string type;
path dir;
std::string value;