source: dev/trunk/ab5.0/abdev/BasicCompiler_Common/include/Program.h@ 522

Last change on this file since 522 was 522, checked in by dai_9181, 16 years ago

ヘッダファイルを整理中

File size: 1.5 KB
Line 
1#pragma once
2
3class Program
4{
5 std::string sourceFilePath;
6 std::string outputFilePath;
7
8 bool isKickedFromEditor;
9 bool isShowDlg;
10 bool isDebugRun;
11 bool isAttach;
12 DWORD attachProcessId;
13 bool isClipCompileView;
14 std::string includeDir;
15
16public:
17 static Jenga::Common::Logger logger;
18
19 Program()
20 : isKickedFromEditor( false )
21 , isShowDlg( false )
22 , isDebugRun( false )
23 , isAttach( false )
24 , attachProcessId( 0 )
25 , isClipCompileView( false )
26 {
27 }
28
29 void Configurate();
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
55 bool IsShowDlg() const
56 {
57 return isShowDlg;
58 }
59
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 }
88
89 int GetExitCode() const;
90};
91
92extern Program program;
Note: See TracBrowser for help on using the repository browser.