]> git.mxchange.org Git - simgear.git/commitdiff
James Turner:
authorcurt <curt>
Sat, 15 Feb 2003 18:43:06 +0000 (18:43 +0000)
committercurt <curt>
Sat, 15 Feb 2003 18:43:06 +0000 (18:43 +0000)
- 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

index 4b92f033344d14aef68168d4dee52faa2e346908..429097f4d7c1736c51c5843db3ffb2c02cd2c36b 100644 (file)
@@ -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
      */