From: curt Date: Sat, 15 Feb 2003 18:43:06 +0000 (+0000) Subject: James Turner: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d10dda5a1200ec5fe800fda1c6007f52a78cf96;p=simgear.git James Turner: - added a 'filename' helper to SGPath, corresponding to the 'directory' helper but returning just the filename portion of the name. --- diff --git a/simgear/misc/sg_path.hxx b/simgear/misc/sg_path.hxx index 4b92f033..429097f4 100644 --- a/simgear/misc/sg_path.hxx +++ b/simgear/misc/sg_path.hxx @@ -100,6 +100,12 @@ public: */ string dir(); + /** + * Return the filename part of the path. + * @return file name string + */ + string filename(); + /** Get the path string * @return path string */