Changeset 637 in dev for trunk/ab5.0/abdev/ab_common/include/Lexical/NativeCode.h
- Timestamp:
- Jun 11, 2008, 10:10:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/include/Lexical/NativeCode.h
r636 r637 123 123 class SourceLine 124 124 { 125 int lineNum;126 125 long nativeCodePos; 127 int relationalObjectModuleIndex;128 long sourceCodePos;129 126 DWORD codeType; 127 SourceCodePosition sourceCodePosition; 130 128 131 129 // XMLシリアライズ用 … … 136 134 trace_for_serialize( "serializing - SourceLine" ); 137 135 138 ar & BOOST_SERIALIZATION_NVP( lineNum );139 136 ar & BOOST_SERIALIZATION_NVP( nativeCodePos ); 140 ar & BOOST_SERIALIZATION_NVP( relationalObjectModuleIndex );141 ar & BOOST_SERIALIZATION_NVP( sourceCodePos );142 137 ar & BOOST_SERIALIZATION_NVP( codeType ); 143 } 144 145 public: 146 SourceLine( int lineNum, int nativeCodePos, int relationalObjectModuleIndex, int sourceCodePos, DWORD codeType ) 147 : lineNum( lineNum ) 148 , nativeCodePos( nativeCodePos ) 149 , relationalObjectModuleIndex( relationalObjectModuleIndex ) 150 , sourceCodePos( sourceCodePos ) 138 ar & BOOST_SERIALIZATION_NVP( sourceCodePosition ); 139 } 140 141 public: 142 SourceLine( int nativeCodePos, DWORD codeType, const SourceCodePosition &sourceCodePosition ) 143 : nativeCodePos( nativeCodePos ) 151 144 , codeType( codeType ) 145 , sourceCodePosition( sourceCodePosition ) 152 146 { 153 147 } … … 156 150 } 157 151 158 int GetLineNum() const159 {160 return lineNum;161 }162 152 long GetNativeCodePos() const 163 153 { 164 154 return nativeCodePos; 165 155 } 166 int GetRelationalObjectModuleIndex() const167 {168 return relationalObjectModuleIndex;169 }170 void SetRelationalObjectModuleIndex( int relationalObjectModuleIndex )171 {172 this->relationalObjectModuleIndex = relationalObjectModuleIndex;173 }174 long GetSourceCodePos() const175 {176 return sourceCodePos;177 }178 void SetSourceCodePos( int sourceCodePos )179 {180 this->sourceCodePos = sourceCodePos;181 }182 156 DWORD GetCodeType() const 183 157 { 184 158 return codeType; 159 } 160 const SourceCodePosition &GetSourceCodePosition() const 161 { 162 return sourceCodePosition; 163 } 164 SourceCodePosition &GetSourceCodePosition() 165 { 166 return sourceCodePosition; 167 } 168 void SetSourceCodePosition( const SourceCodePosition &sourceCodePosition ) 169 { 170 this->sourceCodePosition = sourceCodePosition; 185 171 } 186 172 bool IsInSystemProc() const … … 256 242 return sourceLines; 257 243 } 258 void NextSourceLine( int currentSourceIndex, int nowLine);244 void NextSourceLine( const SourceCodePosition &sourceCodePosition ); 259 245 260 246 void ResetDataSectionBaseOffset( long dataSectionBaseOffset ); 261 void ResetSourceIndexes( const std::vector<int> &relationTable ); 247 void ResetRelationalObjectModuleIndex( const std::vector<int> &relationTable ); 248 249 void Resolve(); 262 250 };
Note:
See TracChangeset
for help on using the changeset viewer.