Ignore:
Timestamp:
Aug 7, 2007, 4:14:06 AM (17 years ago)
Author:
dai_9181
Message:

BasicSourceのシリアライズがうまくいっていない

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/include/Compiler.h

    r265 r266  
    2222        : pObjectModule( new ObjectModule )
    2323        , pNowObjectModule( pObjectModule )
     24        , targetModuleType( Exe )
    2425    {
    2526    }
     
    4041    Linker linker;
    4142
     43    // オブジェクトモジュール
    4244    ObjectModule &GetObjectModule()
    4345    {
     
    4951    }
    5052
     53
     54    // ターゲット
     55    enum TargetModuleType
     56    {
     57        Exe,
     58        Dll,
     59        StaticLibrary,
     60    };
     61
     62    TargetModuleType targetModuleType;
     63
     64    bool IsExe() const
     65    {
     66        if( targetModuleType == Exe )
     67        {
     68            return true;
     69        }
     70        return false;
     71    }
     72    bool IsDll() const
     73    {
     74        if( targetModuleType == Dll )
     75        {
     76            return true;
     77        }
     78        return false;
     79    }
     80    bool IsStaticLibrary() const
     81    {
     82        if( targetModuleType == StaticLibrary )
     83        {
     84            return true;
     85        }
     86        return false;
     87    }
     88    void SetTargetModuleType( TargetModuleType targetModuleType )
     89    {
     90        this->targetModuleType = targetModuleType;
     91    }
     92
     93
     94
    5195    static bool StringToType( const std::string &typeName, Type &type );
    5296    static const std::string TypeToString( const Type &type );
Note: See TracChangeset for help on using the changeset viewer.