|
Last change
on this file since 467 was 467, checked in by dai_9181, 18 years ago |
|
いくつかのグローバル変数をProgram/Debuggerクラスにまとめた。
|
|
File size:
1.4 KB
|
| 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 isDebugRun;
|
|---|
| 12 | bool isAttach;
|
|---|
| 13 | DWORD attachProcessId;
|
|---|
| 14 | bool isClipCompileView;
|
|---|
| 15 | std::string includeDir;
|
|---|
| 16 |
|
|---|
| 17 | public:
|
|---|
| 18 | static Jenga::Common::Logger logger;
|
|---|
| 19 |
|
|---|
| 20 | Program()
|
|---|
| 21 | : isKickedFromEditor( false )
|
|---|
| 22 | , isDebugRun( false )
|
|---|
| 23 | , isAttach( false )
|
|---|
| 24 | , attachProcessId( 0 )
|
|---|
| 25 | , isClipCompileView( false )
|
|---|
| 26 | {
|
|---|
| 27 | }
|
|---|
| 28 |
|
|---|
| 29 | bool AnalysisCommandLines();
|
|---|
| 30 |
|
|---|
| 31 | const std::string &GetSourceFilePath() const
|
|---|
| 32 | {
|
|---|
| 33 | return sourceFilePath;
|
|---|
| 34 | }
|
|---|
| 35 | void SetSourceFilePath( const std::string &sourceFilePath )
|
|---|
| 36 | {
|
|---|
| 37 | this->sourceFilePath = sourceFilePath;
|
|---|
| 38 | }
|
|---|
| 39 | const std::string &GetOutputFilePath() const
|
|---|
| 40 | {
|
|---|
| 41 | return outputFilePath;
|
|---|
| 42 | }
|
|---|
| 43 | void SetOutputFilePath( const std::string &outputFilePath )
|
|---|
| 44 | {
|
|---|
| 45 | this->outputFilePath = outputFilePath;
|
|---|
| 46 | }
|
|---|
| 47 |
|
|---|
| 48 | bool IsKickedFromEditor() const
|
|---|
| 49 | {
|
|---|
| 50 | return isKickedFromEditor;
|
|---|
| 51 | }
|
|---|
| 52 |
|
|---|
| 53 | bool IsDebugRun() const
|
|---|
| 54 | {
|
|---|
| 55 | return isDebugRun;
|
|---|
| 56 | }
|
|---|
| 57 |
|
|---|
| 58 | bool IsAttach() const
|
|---|
| 59 | {
|
|---|
| 60 | return isAttach;
|
|---|
| 61 | }
|
|---|
| 62 |
|
|---|
| 63 | DWORD GetAttachProcessId() const
|
|---|
| 64 | {
|
|---|
| 65 | return attachProcessId;
|
|---|
| 66 | }
|
|---|
| 67 |
|
|---|
| 68 | bool IsClipCompileView() const
|
|---|
| 69 | {
|
|---|
| 70 | return isClipCompileView;
|
|---|
| 71 | }
|
|---|
| 72 |
|
|---|
| 73 | const std::string &GetIncludeDir() const
|
|---|
| 74 | {
|
|---|
| 75 | return includeDir;
|
|---|
| 76 | }
|
|---|
| 77 | void SetIncludeDir( const std::string &includeDir )
|
|---|
| 78 | {
|
|---|
| 79 | this->includeDir = includeDir;
|
|---|
| 80 | }
|
|---|
| 81 | };
|
|---|
| 82 |
|
|---|
| 83 | extern Program program;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.