From 5d10dda5a1200ec5fe800fda1c6007f52a78cf96 Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 15 Feb 2003 18:43:06 +0000 Subject: [PATCH] James Turner: - added a 'filename' helper to SGPath, corresponding to the 'directory' helper but returning just the filename portion of the name. --- simgear/misc/sg_path.hxx | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ -- 2.39.5