Ignore:
Timestamp:
Aug 14, 2007, 8:37:08 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

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

    r279 r280  
    1313    DataTable dataTable;
    1414
     15private:
    1516    // ソースコード
    16     BasicSource source;
     17    int currentSourceIndex;
     18    BasicSources sources;
    1719
    1820    // XMLシリアライズ用
     
    3032        ar & BOOST_SERIALIZATION_NVP( globalNativeCode );
    3133        ar & BOOST_SERIALIZATION_NVP( dataTable );
    32         ar & BOOST_SERIALIZATION_NVP( source );
     34        ar & BOOST_SERIALIZATION_NVP( currentSourceIndex );
     35        ar & BOOST_SERIALIZATION_NVP( sources );
    3336    }
    3437
    3538public:
    3639    void StaticLink( ObjectModule &objectModule );
     40
     41    int GetCurrentSourceIndex() const
     42    {
     43        return currentSourceIndex;
     44    }
     45    const BasicSource &GetCurrentSource() const
     46    {
     47        return sources[currentSourceIndex];
     48    }
     49    BasicSource &GetCurrentSource()
     50    {
     51        return sources[currentSourceIndex];
     52    }
     53    void SetCurrentSourceIndex( int currentSourceIndex )
     54    {
     55        this->currentSourceIndex = currentSourceIndex;
     56    }
     57    const BasicSource &GetSource( int sourceIndex ) const
     58    {
     59        return sources[sourceIndex];
     60    }
     61    BasicSources &GetSources()
     62    {
     63        return sources;
     64    }
    3765
    3866    bool Read( const std::string &filePath );
Note: See TracChangeset for help on using the changeset viewer.