summaryrefslogtreecommitdiff
path: root/LiteEditor/macromanager.h
blob: 3d897fa616dd450a0918eb5cd728099eec393064 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef MACROMANAGER_H
#define MACROMANAGER_H

#include "imacromanager.h" // Base class: IMacroManager
#include <wx/string.h>

class IManager;
class MacroManager : public IMacroManager {

	static MacroManager* ms_instance;

public:
	static MacroManager* Instance();
	static void Release();

private:
	MacroManager();
	virtual ~MacroManager();

public:
	/*
	 * The following macro will be expanded into their real values:
	 * $(ProjectPath)
	 * $(WorkspacePath)
	 * $(ProjectName)
	 * $(IntermediateDirectory)
	 * $(ConfigurationName)
	 * $(OutDir)
	 * $(ProjectFiles)
	 * $(ProjectFiles)
	 * $(ProjectFilesAbs)
	 * $(CurrentFileName)
	 * $(CurrentFilePath)
	 * $(CurrentFileExt)
	 * $(CurrentFileFullPath)
	 * $(User)
	 * $(Date)
	 * $(CodeLitePath)
	 * $(CurrentSelection)
	 * $(ProjectOutputFile)
	 */
	wxString Expand(const wxString &expression, IManager *manager, const wxString &project, const wxString &confToBuild = wxEmptyString);
};

#endif // MACROMANAGER_H