diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-13 10:29:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-13 10:29:25 +0200 |
commit | 534f9d8db025d58c9ce23f3b81a37e8c34386a27 (patch) | |
tree | e7d0c7871a7caf3b3e41c8d00548212f1ca7aa83 /build/name | |
parent | b4ceb7b6aecb7492b28d7a0f6c53fa657a2cd2e5 (diff) |
Add initial import support
Diffstat (limited to 'build/name')
-rw-r--r-- | build/name | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; |