From 534f9d8db025d58c9ce23f3b81a37e8c34386a27 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 13 Apr 2015 10:29:25 +0200 Subject: Add initial import support --- build/name | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build/name') 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; -- cgit v1.1