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