X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fpath.h;h=9e1e3747fed37c0b6687ee48c0925071bbccd6ea;hp=511d5e02ff403ed23f7212f5497316b1278836c2;hb=4cc2d6ced17e8cbe1ae3251069131d22a292b857;hpb=9a8993b390544fb3e6b23ed562e2a2d4a62e4a7c diff --git a/source/path.h b/source/path.h index 511d5e0..9e1e374 100644 --- a/source/path.h +++ b/source/path.h @@ -1,3 +1,8 @@ +/* +This file is part of libmsppath +Copyright © 2006 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ #ifndef MSP_PATH_PATH_H_ #define MSP_PATH_PATH_H_ @@ -40,7 +45,8 @@ public: Path(const std::string &p) { init(p); } Path(const char *p) { init(p); } const std::string &str() const { return path; } - unsigned size() const; + unsigned size() const; + bool empty() const { return path.empty(); } bool is_absolute() const; Path subpath(unsigned, unsigned =(unsigned)-1) const; Path operator/(const Path &p) const { Path a=*this; a/=p; return a; }