| 1 |
#ifndef CLFILENAME_HPP |
| 2 |
#define CLFILENAME_HPP |
| 3 |
|
| 4 |
#include "codelite_exports.h" |
| 5 |
|
| 6 |
#include <wx/filename.h> |
| 7 |
|
| 8 |
class WXDLLIMPEXP_CL clFileName : public wxFileName |
| 9 |
{ |
| 10 |
public: |
| 11 |
clFileName(const wxString& fullpath); |
| 12 |
clFileName(const wxString& dir, const wxString& name); |
| 13 |
clFileName(); |
| 14 |
virtual ~clFileName(); |
| 15 |
|
| 16 |
/** |
| 17 |
* @brief attempt to convert cygwin path to Windows native path |
| 18 |
*/ |
| 19 |
static wxString FromCygwin(const wxString& fullpath); |
| 20 |
|
| 21 |
/** |
| 22 |
* @brief covnert to cygwin path |
| 23 |
*/ |
| 24 |
static wxString ToCygwin(const wxString& fullpath); |
| 25 |
static wxString ToCygwin(const wxFileName& fullpath); |
| 26 |
}; |
| 27 |
|
| 28 |
#endif // CLFILENAME_HPP |