Ignore:
Timestamp:
Mar 27, 2008, 2:29:35 AM (16 years ago)
Author:
dai_9181
Message:

いくつかのグローバル変数をProgram/Debuggerクラスにまとめた。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Program.h

    r215 r467  
    55class Program
    66{
     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
    717public:
    818    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    }
    981};
     82
     83extern Program program;
Note: See TracChangeset for help on using the changeset viewer.