Changeset 636 in dev for trunk/ab5.0/abdev/ab_common/include/Lexical/ObjectModule.h
- Timestamp:
- Jun 10, 2008, 11:40:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/include/Lexical/ObjectModule.h
r632 r636 6 6 // オブジェクトモジュール名 7 7 std::string name; 8 9 // 関連オブジェクトモジュールの名前リスト 10 Jenga::Common::Strings relationalObjectModuleNames; 8 11 9 12 // メタ情報 … … 18 21 private: 19 22 // ソースコード 20 int currentSourceIndex; 21 BasicSources sources; 23 BasicSource source; 22 24 23 25 // XMLシリアライズ用 … … 33 35 34 36 ar & BOOST_SERIALIZATION_NVP( name ); 37 ar & BOOST_SERIALIZATION_NVP( relationalObjectModuleNames ); 35 38 ar & BOOST_SERIALIZATION_NVP( meta ); 36 39 ar & BOOST_SERIALIZATION_NVP( globalNativeCode ); 37 40 ar & BOOST_SERIALIZATION_NVP( dataTable ); 38 ar & BOOST_SERIALIZATION_NVP( currentSourceIndex ); 39 ar & BOOST_SERIALIZATION_NVP( sources ); 41 ar & BOOST_SERIALIZATION_NVP( source ); 40 42 } 41 43 … … 51 53 this->name = name; 52 54 } 53 int GetCurrentSourceIndex() const55 const BasicSource &GetSource() const 54 56 { 55 return currentSourceIndex;57 return source; 56 58 } 57 const BasicSource &GetCurrentSource() const59 BasicSource &GetSource() 58 60 { 59 return source s[currentSourceIndex];61 return source; 60 62 } 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 ); 77 67 78 68 bool Read( const std::string &filePath );
Note:
See TracChangeset
for help on using the changeset viewer.