Debian Codegraph @

CodeLite/LSP/IPathConverter.hpp

raw
1 #ifndef IPATHCONVERTER_HPP
2 #define IPATHCONVERTER_HPP
3
4 #include "LSP/FilePath.hpp"
5 #include <codelite_exports.h>
6 #include <wx/sharedptr.h>
7 #include <wx/string.h>
8
9 class WXDLLIMPEXP_CL IPathConverter
10 {
11 public:
12 typedef wxSharedPtr<IPathConverter> Ptr_t;
13
14 public:
15 IPathConverter() {}
16 virtual ~IPathConverter() {}
17
18 /**
19 * @brief convert path from a given source to the known path by CodeLite (usually the system default path)
20 */
21 virtual LSP::FilePath ConvertFrom(const wxString& path) const = 0;
22
23 /**
24 * @brief convert path from CodeLite's native path to some other format
25 */
26 virtual LSP::FilePath ConvertTo(const wxString& path) const = 0;
27 };
28
29 #endif // IPATHCONVERTER_HPP