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

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

デプロイ時にcore.lib/cored.libのビルドもできるようにした。

File size: 1.5 KB
Line 
1#pragma once
2
3#include <logger.h>
4
5class 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
18public:
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 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.