Ignore:
Timestamp:
Aug 2, 2007, 4:17:27 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

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

    r256 r257  
    2222        UserProc,       // ユーザ定義関数呼び出し側スケジュール
    2323        AddressOf,      // ユーザ定義関数位置スケジュール
     24        DllProc,        // DLL関数位置スケジュール
    2425    };
    2526
     
    6263    }
    6364    Schedule( const ::DllProc *pDllProc, long offest )
    64         : type( Schedule::UserProc )
     65        : type( Schedule::DllProc )
    6566        , offset( offset )
    6667        , pDllProc( pDllProc )
     
    6970    ~Schedule()
    7071    {
     72    }
     73
     74    Type GetType() const
     75    {
     76        return type;
     77    }
     78    long GetOffset() const
     79    {
     80        return offset;
     81    }
     82    const ::DllProc &GetDllProc() const
     83    {
     84        if( type != Schedule::DllProc )
     85        {
     86            SetError();
     87        }
     88        return *pDllProc;
     89    }
     90    const ::UserProc &GetUserProc() const
     91    {
     92        if( type != Schedule::UserProc )
     93        {
     94            SetError();
     95        }
     96        return *pUserProc;
    7197    }
    7298
     
    188214        return size;
    189215    }
     216    const Schedules &GetSchedules() const
     217    {
     218        return schedules;
     219    }
    190220
    191221    long GetLong( int codePos ) const
     
    233263        ObpPlus( size );
    234264    }
    235     void Put( const NativeCode &nativeCode )
    236     {
    237         Put( nativeCode.codeBuffer, nativeCode.size );
    238     }
     265    void Put( const NativeCode &nativeCode );
    239266    void Put( _int64 i64data )
    240267    {
Note: See TracChangeset for help on using the changeset viewer.