/** \file Utility functions for handling file names \author Lukas Nellen \version $Id: FileName.h 14717 2009-09-17 20:24:36Z lukas $ \date 31 Jan 2004 */ #ifndef _utl_FileName_h_ #define _utl_FileName_h_ static const char CVSId_utl_FileName[] = "$Id: FileName.h 14717 2009-09-17 20:24:36Z lukas $"; #include #include namespace utl { /// Compute the full path, but strip the extension from the leaf boost::filesystem::path BareFilePath(const boost::filesystem::path& thePath); /// Compute the leaf and strip the extension std::string BareFileName(const boost::filesystem::path& thePath); /// Return the extension of the path std::string FileExtension(const boost::filesystem::path& thePath); /// Add string (e.g. an extension) to a path boost::filesystem::path operator+(const boost::filesystem::path& thePath, const std::string& extra); } // utl #endif // _utl_FileName_h_ // Configure (x)emacs for this file ... // Local Variables: // mode:c++ // compile-command: "make -C .. -k" // End: