Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 | #include <logger.h>
|
---|
4 |
|
---|
5 | class Program
|
---|
6 | {
|
---|
7 | std::string sourceFilePath;
|
---|
8 | std::string outputFilePath;
|
---|
9 |
|
---|
10 | bool isKickedFromEditor;
|
---|
11 | bool isShowDlg;
|
---|
12 | bool isDebugRun;
|
---|
13 | bool isAttach;
|
---|
14 | DWORD attachProcessId;
|
---|
15 | bool isClipCompileView;
|
---|
16 | std::string includeDir;
|
---|
17 |
|
---|
18 | public:
|
---|
19 | static Jenga::Common::Logger logger;
|
---|
20 |
|
---|
21 | Program()
|
---|
22 | : isKickedFromEditor( false )
|
---|
23 | , isShowDlg( false )
|
---|
24 | , isDebugRun( false )
|
---|
25 | , isAttach( false )
|
---|
26 | , attachProcessId( 0 )
|
---|
27 | , isClipCompileView( false )
|
---|
28 | {
|
---|
29 | }
|
---|
30 |
|
---|
31 | void Configurate();
|
---|
32 |
|
---|
33 | bool AnalysisCommandLines();
|
---|
34 |
|
---|
35 | const std::string &GetSourceFilePath() const
|
---|
36 | {
|
---|
37 | return sourceFilePath;
|
---|
38 | }
|
---|
39 | void SetSourceFilePath( const std::string &sourceFilePath )
|
---|
40 | {
|
---|
41 | this->sourceFilePath = sourceFilePath;
|
---|
42 | }
|
---|
43 | const std::string &GetOutputFilePath() const
|
---|
44 | {
|
---|
45 | return outputFilePath;
|
---|
46 | }
|
---|
47 | void SetOutputFilePath( const std::string &outputFilePath )
|
---|
48 | {
|
---|
49 | this->outputFilePath = outputFilePath;
|
---|
50 | }
|
---|
51 |
|
---|
52 | bool IsKickedFromEditor() const
|
---|
53 | {
|
---|
54 | return isKickedFromEditor;
|
---|
55 | }
|
---|
56 |
|
---|
57 | bool IsShowDlg() const
|
---|
58 | {
|
---|
59 | return isShowDlg;
|
---|
60 | }
|
---|
61 |
|
---|
62 | bool IsDebugRun() const
|
---|
63 | {
|
---|
64 | return isDebugRun;
|
---|
65 | }
|
---|
66 |
|
---|
67 | bool IsAttach() const
|
---|
68 | {
|
---|
69 | return isAttach;
|
---|
70 | }
|
---|
71 |
|
---|
72 | DWORD GetAttachProcessId() const
|
---|
73 | {
|
---|
74 | return attachProcessId;
|
---|
75 | }
|
---|
76 |
|
---|
77 | bool IsClipCompileView() const
|
---|
78 | {
|
---|
79 | return isClipCompileView;
|
---|
80 | }
|
---|
81 |
|
---|
82 | const std::string &GetIncludeDir() const
|
---|
83 | {
|
---|
84 | return includeDir;
|
---|
85 | }
|
---|
86 | void SetIncludeDir( const std::string &includeDir )
|
---|
87 | {
|
---|
88 | this->includeDir = includeDir;
|
---|
89 | }
|
---|
90 |
|
---|
91 | int GetExitCode() const;
|
---|
92 | };
|
---|
93 |
|
---|
94 | extern Program program;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.