X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fpath.h;h=6cc14ad609bc0f6daa3c4ea1ee7c88aa551abb45;hp=ed9cc7985b62d863f86a6bc19726de692791d077;hb=eeb6ed7b20d56578ff8c68f3c94e887d5ac768ee;hpb=e1452710edb6b1d0ebceb4b9273dae4b2f899630 diff --git a/source/fs/path.h b/source/fs/path.h index ed9cc79..6cc14ad 100644 --- a/source/fs/path.h +++ b/source/fs/path.h @@ -66,10 +66,8 @@ public: Path operator/(const Path &p) const; Path &operator/=(const Path &); - /** - Extracts a single component from the path. Negative indices count from the - end of the path. - */ + /** Extracts a single component from the path. Negative indices count from + the end of the path. */ std::string operator[](int) const; bool operator==(const Path &) const; @@ -77,6 +75,9 @@ public: Iterator end() const; private: void init(const std::string &); + + /** Adds a component to the path. It must not contain the directory + separator character. */ void add_component(const std::string &); };