Ignore:
Timestamp:
Jun 10, 2008, 11:40:17 PM (16 years ago)
Author:
dai_9181
Message:

libファイルを跨ったテンプレート展開に対応。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/ab_common/include/Lexical/ObjectModule.h

    r632 r636  
    66    // オブジェクトモジュール名
    77    std::string name;
     8
     9    // 関連オブジェクトモジュールの名前リスト
     10    Jenga::Common::Strings relationalObjectModuleNames;
    811
    912    // メタ情報
     
    1821private:
    1922    // ソースコード
    20     int currentSourceIndex;
    21     BasicSources sources;
     23    BasicSource source;
    2224
    2325    // XMLシリアライズ用
     
    3335
    3436        ar & BOOST_SERIALIZATION_NVP( name );
     37        ar & BOOST_SERIALIZATION_NVP( relationalObjectModuleNames );
    3538        ar & BOOST_SERIALIZATION_NVP( meta );
    3639        ar & BOOST_SERIALIZATION_NVP( globalNativeCode );
    3740        ar & BOOST_SERIALIZATION_NVP( dataTable );
    38         ar & BOOST_SERIALIZATION_NVP( currentSourceIndex );
    39         ar & BOOST_SERIALIZATION_NVP( sources );
     41        ar & BOOST_SERIALIZATION_NVP( source );
    4042    }
    4143
     
    5153        this->name = name;
    5254    }
    53     int GetCurrentSourceIndex() const
     55    const BasicSource &GetSource() const
    5456    {
    55         return currentSourceIndex;
     57        return source;
    5658    }
    57     const BasicSource &GetCurrentSource() const
     59    BasicSource &GetSource()
    5860    {
    59         return sources[currentSourceIndex];
     61        return source;
    6062    }
    61     BasicSource &GetCurrentSource()
    62     {
    63         return sources[currentSourceIndex];
    64     }
    65     void SetCurrentSourceIndex( int currentSourceIndex )
    66     {
    67         this->currentSourceIndex = currentSourceIndex;
    68     }
    69     const BasicSource &GetSource( int sourceIndex ) const
    70     {
    71         return sources[sourceIndex];
    72     }
    73     BasicSources &GetSources()
    74     {
    75         return sources;
    76     }
     63
     64    // 下記の関連になるようなテーブルを取得する
     65    // 要素 = 古いインデックス、値 = 新しいインデックス
     66    const std::vector<int> GetRelationTable( const Jenga::Common::Strings &oldRelationalObjectModule );
    7767
    7868    bool Read( const std::string &filePath );
Note: See TracChangeset for help on using the changeset viewer.